mirror of
https://github.com/RGBCube/serenity
synced 2025-07-24 22:17:42 +00:00
LibProtocol: Rename namespace LibProtocol => Protocol
This commit is contained in:
parent
f6ce24eb48
commit
5b7924b9e7
7 changed files with 9 additions and 9 deletions
|
@ -39,7 +39,7 @@ ResourceLoader& ResourceLoader::the()
|
||||||
}
|
}
|
||||||
|
|
||||||
ResourceLoader::ResourceLoader()
|
ResourceLoader::ResourceLoader()
|
||||||
: m_protocol_client(LibProtocol::Client::construct())
|
: m_protocol_client(Protocol::Client::construct())
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -30,7 +30,7 @@
|
||||||
#include <AK/URL.h>
|
#include <AK/URL.h>
|
||||||
#include <LibCore/CObject.h>
|
#include <LibCore/CObject.h>
|
||||||
|
|
||||||
namespace LibProtocol {
|
namespace Protocol {
|
||||||
class Client;
|
class Client;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -50,6 +50,6 @@ private:
|
||||||
|
|
||||||
int m_pending_loads { 0 };
|
int m_pending_loads { 0 };
|
||||||
|
|
||||||
LibProtocol::Client& protocol_client() { return *m_protocol_client; }
|
Protocol::Client& protocol_client() { return *m_protocol_client; }
|
||||||
RefPtr<LibProtocol::Client> m_protocol_client;
|
RefPtr<Protocol::Client> m_protocol_client;
|
||||||
};
|
};
|
||||||
|
|
|
@ -28,7 +28,7 @@
|
||||||
#include <LibProtocol/Client.h>
|
#include <LibProtocol/Client.h>
|
||||||
#include <LibProtocol/Download.h>
|
#include <LibProtocol/Download.h>
|
||||||
|
|
||||||
namespace LibProtocol {
|
namespace Protocol {
|
||||||
|
|
||||||
Client::Client()
|
Client::Client()
|
||||||
: IServerConnection(*this, "/tmp/portal/protocol")
|
: IServerConnection(*this, "/tmp/portal/protocol")
|
||||||
|
|
|
@ -30,7 +30,7 @@
|
||||||
#include <ProtocolServer/ProtocolClientEndpoint.h>
|
#include <ProtocolServer/ProtocolClientEndpoint.h>
|
||||||
#include <ProtocolServer/ProtocolServerEndpoint.h>
|
#include <ProtocolServer/ProtocolServerEndpoint.h>
|
||||||
|
|
||||||
namespace LibProtocol {
|
namespace Protocol {
|
||||||
|
|
||||||
class Download;
|
class Download;
|
||||||
|
|
||||||
|
|
|
@ -28,7 +28,7 @@
|
||||||
#include <LibProtocol/Client.h>
|
#include <LibProtocol/Client.h>
|
||||||
#include <LibProtocol/Download.h>
|
#include <LibProtocol/Download.h>
|
||||||
|
|
||||||
namespace LibProtocol {
|
namespace Protocol {
|
||||||
|
|
||||||
Download::Download(Client& client, i32 download_id)
|
Download::Download(Client& client, i32 download_id)
|
||||||
: m_client(client.make_weak_ptr())
|
: m_client(client.make_weak_ptr())
|
||||||
|
|
|
@ -36,7 +36,7 @@ namespace AK {
|
||||||
class SharedBuffer;
|
class SharedBuffer;
|
||||||
}
|
}
|
||||||
|
|
||||||
namespace LibProtocol {
|
namespace Protocol {
|
||||||
|
|
||||||
class Client;
|
class Client;
|
||||||
|
|
||||||
|
|
|
@ -46,7 +46,7 @@ int main(int argc, char** argv)
|
||||||
}
|
}
|
||||||
|
|
||||||
Core::EventLoop loop;
|
Core::EventLoop loop;
|
||||||
auto protocol_client = LibProtocol::Client::construct();
|
auto protocol_client = Protocol::Client::construct();
|
||||||
|
|
||||||
auto download = protocol_client->start_download(url.to_string());
|
auto download = protocol_client->start_download(url.to_string());
|
||||||
download->on_progress = [](u32 total_size, u32 downloaded_size) {
|
download->on_progress = [](u32 total_size, u32 downloaded_size) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue