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

Unified Diff: mandoline/services/core_services/core_services_application_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: mandoline/services/core_services/core_services_application_delegate.h
diff --git a/mandoline/services/core_services/core_services_application_delegate.h b/mandoline/services/core_services/core_services_application_delegate.h
index b50b491c022963a6eaa7f6276f6bfea8a2f39288..55f53879255f2bbac31347b529cf1343351bd204 100644
--- a/mandoline/services/core_services/core_services_application_delegate.h
+++ b/mandoline/services/core_services/core_services_application_delegate.h
@@ -11,8 +11,8 @@
#include "components/clipboard/public/interfaces/clipboard.mojom.h"
#include "mojo/common/weak_binding_set.h"
#include "mojo/services/tracing/public/cpp/tracing_impl.h"
-#include "mojo/shell/public/cpp/application_delegate.h"
#include "mojo/shell/public/cpp/interface_factory_impl.h"
+#include "mojo/shell/public/cpp/shell_client.h"
#include "mojo/shell/public/interfaces/content_handler.mojom.h"
namespace core_services {
@@ -22,7 +22,7 @@ class ApplicationThread;
// The CoreServices application is a singleton ServiceProvider. There is one
// instance of the CoreServices ServiceProvider.
class CoreServicesApplicationDelegate
- : public mojo::ApplicationDelegate,
+ : public mojo::ShellClient,
public mojo::InterfaceFactory<mojo::shell::mojom::ContentHandler>,
public mojo::shell::mojom::ContentHandler {
public:
@@ -32,16 +32,15 @@ class CoreServicesApplicationDelegate
void ApplicationThreadDestroyed(ApplicationThread* thread);
private:
- // Overridden from mojo::ApplicationDelegate:
+ // Overridden from mojo::ShellClient:
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;
// Overridden from mojo::InterfaceFactory<mojo::shell::mojom::ContentHandler>:
void Create(
- mojo::ApplicationConnection* connection,
+ mojo::Connection* connection,
mojo::InterfaceRequest<mojo::shell::mojom::ContentHandler>
request) override;

Powered by Google App Engine
This is Rietveld 408576698