Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1190)

Unified Diff: mojo/services/network/network_service_delegate.cc

Issue 1675083002: Rename ApplicationDelegate to ShellClient (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@delegate
Patch Set: . Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « mojo/services/network/network_service_delegate.h ('k') | mojo/services/network/udp_socket_apptest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/services/network/network_service_delegate.cc
diff --git a/mojo/services/network/network_service_delegate.cc b/mojo/services/network/network_service_delegate.cc
index d677f01837ae24495d3770acf76ebcff7cb86dcd..8caebfbd01e15a33f06d18260d7256b93fbf8faf 100644
--- a/mojo/services/network/network_service_delegate.cc
+++ b/mojo/services/network/network_service_delegate.cc
@@ -20,7 +20,7 @@
#include "mojo/services/network/network_service_impl.h"
#include "mojo/services/network/url_loader_factory_impl.h"
#include "mojo/services/network/web_socket_factory_impl.h"
-#include "mojo/shell/public/cpp/application_connection.h"
+#include "mojo/shell/public/cpp/connection.h"
#include "mojo/util/capture_util.h"
#include "sql/mojo/mojo_vfs.h"
@@ -131,8 +131,7 @@ void NetworkServiceDelegate::Initialize(Shell* shell, const std::string& url,
tracing_.Initialize(shell_, url);
}
-bool NetworkServiceDelegate::AcceptConnection(
- ApplicationConnection* connection) {
+bool NetworkServiceDelegate::AcceptConnection(Connection* connection) {
DCHECK(context_);
connection->AddService<CookieStore>(this);
connection->AddService<NetworkService>(this);
@@ -155,12 +154,12 @@ void NetworkServiceDelegate::Quit() {
context_.reset();
}
-void NetworkServiceDelegate::Create(ApplicationConnection* connection,
+void NetworkServiceDelegate::Create(Connection* connection,
InterfaceRequest<NetworkService> request) {
new NetworkServiceImpl(shell_->CreateAppRefCount(), std::move(request));
}
-void NetworkServiceDelegate::Create(ApplicationConnection* connection,
+void NetworkServiceDelegate::Create(Connection* connection,
InterfaceRequest<CookieStore> request) {
new CookieStoreImpl(
context_.get(), GURL(connection->GetRemoteApplicationURL()).GetOrigin(),
@@ -168,14 +167,14 @@ void NetworkServiceDelegate::Create(ApplicationConnection* connection,
}
void NetworkServiceDelegate::Create(
- ApplicationConnection* connection,
+ Connection* connection,
InterfaceRequest<WebSocketFactory> request) {
new WebSocketFactoryImpl(context_.get(), shell_->CreateAppRefCount(),
std::move(request));
}
void NetworkServiceDelegate::Create(
- ApplicationConnection* connection,
+ Connection* connection,
InterfaceRequest<URLLoaderFactory> request) {
new URLLoaderFactoryImpl(context_.get(), shell_->CreateAppRefCount(),
std::move(request));
« no previous file with comments | « mojo/services/network/network_service_delegate.h ('k') | mojo/services/network/udp_socket_apptest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698