1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 11:58:12 +00:00

LibProtocol: Rename namespace LibProtocol => Protocol

This commit is contained in:
Andreas Kling 2020-02-05 18:21:30 +01:00
parent f6ce24eb48
commit 5b7924b9e7
7 changed files with 9 additions and 9 deletions

View file

@ -39,7 +39,7 @@ ResourceLoader& ResourceLoader::the()
}
ResourceLoader::ResourceLoader()
: m_protocol_client(LibProtocol::Client::construct())
: m_protocol_client(Protocol::Client::construct())
{
}

View file

@ -30,7 +30,7 @@
#include <AK/URL.h>
#include <LibCore/CObject.h>
namespace LibProtocol {
namespace Protocol {
class Client;
}
@ -50,6 +50,6 @@ private:
int m_pending_loads { 0 };
LibProtocol::Client& protocol_client() { return *m_protocol_client; }
RefPtr<LibProtocol::Client> m_protocol_client;
Protocol::Client& protocol_client() { return *m_protocol_client; }
RefPtr<Protocol::Client> m_protocol_client;
};

View file

@ -28,7 +28,7 @@
#include <LibProtocol/Client.h>
#include <LibProtocol/Download.h>
namespace LibProtocol {
namespace Protocol {
Client::Client()
: IServerConnection(*this, "/tmp/portal/protocol")

View file

@ -30,7 +30,7 @@
#include <ProtocolServer/ProtocolClientEndpoint.h>
#include <ProtocolServer/ProtocolServerEndpoint.h>
namespace LibProtocol {
namespace Protocol {
class Download;

View file

@ -28,7 +28,7 @@
#include <LibProtocol/Client.h>
#include <LibProtocol/Download.h>
namespace LibProtocol {
namespace Protocol {
Download::Download(Client& client, i32 download_id)
: m_client(client.make_weak_ptr())

View file

@ -36,7 +36,7 @@ namespace AK {
class SharedBuffer;
}
namespace LibProtocol {
namespace Protocol {
class Client;

View file

@ -46,7 +46,7 @@ int main(int argc, char** argv)
}
Core::EventLoop loop;
auto protocol_client = LibProtocol::Client::construct();
auto protocol_client = Protocol::Client::construct();
auto download = protocol_client->start_download(url.to_string());
download->on_progress = [](u32 total_size, u32 downloaded_size) {