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

Unified Diff: components/devtools_service/devtools_service_delegate.h

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
Index: components/devtools_service/devtools_service_delegate.h
diff --git a/components/devtools_service/devtools_service_delegate.h b/components/devtools_service/devtools_service_delegate.h
index a500a7fe3e011867234859990b506b2dab59ee93..5ae52f98de2ebb53fd9ca8aff4f642eb1d3ad83f 100644
--- a/components/devtools_service/devtools_service_delegate.h
+++ b/components/devtools_service/devtools_service_delegate.h
@@ -8,15 +8,15 @@
#include "base/macros.h"
#include "base/memory/scoped_ptr.h"
#include "components/devtools_service/public/interfaces/devtools_service.mojom.h"
-#include "mojo/shell/public/cpp/application_delegate.h"
#include "mojo/shell/public/cpp/interface_factory.h"
+#include "mojo/shell/public/cpp/shell_client.h"
namespace devtools_service {
class DevToolsService;
class DevToolsServiceDelegate
- : public mojo::ApplicationDelegate,
+ : public mojo::ShellClient,
public mojo::InterfaceFactory<DevToolsRegistry>,
public mojo::InterfaceFactory<DevToolsCoordinator> {
public:
@@ -24,19 +24,18 @@ class DevToolsServiceDelegate
~DevToolsServiceDelegate() override;
private:
- // mojo::ApplicationDelegate implementation.
+ // mojo::Connection implementation.
void Initialize(mojo::Shell* shell, const std::string& url,
uint32_t id) override;
- bool AcceptConnection(
- mojo::ApplicationConnection* connection) override;
+ bool AcceptConnection(mojo::Connection* connection) override;
void Quit() override;
// mojo::InterfaceFactory<DevToolsRegistry> implementation.
- void Create(mojo::ApplicationConnection* connection,
+ void Create(mojo::Connection* connection,
mojo::InterfaceRequest<DevToolsRegistry> request) override;
// mojo::InterfaceFactory<DevToolsCoordinator> implementation.
- void Create(mojo::ApplicationConnection* connection,
+ void Create(mojo::Connection* connection,
mojo::InterfaceRequest<DevToolsCoordinator> request) override;
scoped_ptr<DevToolsService> service_;
« no previous file with comments | « components/clipboard/clipboard_application_delegate.cc ('k') | components/devtools_service/devtools_service_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698