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

Unified Diff: media/mojo/services/mojo_media_application.h

Issue 2118083002: ShellClient -> Service (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@mus2
Patch Set: . Created 4 years, 5 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 | « mash/webtest/webtest.cc ('k') | media/mojo/services/mojo_media_application.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/mojo/services/mojo_media_application.h
diff --git a/media/mojo/services/mojo_media_application.h b/media/mojo/services/mojo_media_application.h
index 2b81824fcd2299e9213297602fdf3e758e539fe4..7533fcb6de5d305c80abc13d05f24ca32fffe339 100644
--- a/media/mojo/services/mojo_media_application.h
+++ b/media/mojo/services/mojo_media_application.h
@@ -15,7 +15,7 @@
#include "media/mojo/interfaces/service_factory.mojom.h"
#include "media/mojo/services/media_mojo_export.h"
#include "services/shell/public/cpp/interface_factory.h"
-#include "services/shell/public/cpp/shell_client.h"
+#include "services/shell/public/cpp/service.h"
#include "services/shell/public/cpp/shell_connection_ref.h"
#include "url/gurl.h"
@@ -25,7 +25,7 @@ class MediaLog;
class MojoMediaClient;
class MEDIA_MOJO_EXPORT MojoMediaApplication
- : public NON_EXPORTED_BASE(shell::ShellClient),
+ : public NON_EXPORTED_BASE(shell::Service),
public NON_EXPORTED_BASE(shell::InterfaceFactory<mojom::ServiceFactory>) {
public:
MojoMediaApplication(std::unique_ptr<MojoMediaClient> mojo_media_client,
@@ -33,12 +33,12 @@ class MEDIA_MOJO_EXPORT MojoMediaApplication
~MojoMediaApplication() final;
private:
- // shell::ShellClient implementation.
- void Initialize(shell::Connector* connector,
- const shell::Identity& identity,
- uint32_t id) final;
- bool AcceptConnection(shell::Connection* connection) final;
- bool ShellConnectionLost() final;
+ // shell::Service implementation.
+ void OnStart(shell::Connector* connector,
+ const shell::Identity& identity,
+ uint32_t id) final;
+ bool OnConnect(shell::Connection* connection) final;
+ bool OnStop() final;
// shell::InterfaceFactory<mojom::ServiceFactory> implementation.
void Create(shell::Connection* connection,
« no previous file with comments | « mash/webtest/webtest.cc ('k') | media/mojo/services/mojo_media_application.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698