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

Unified Diff: device/devices_app/devices_app.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
« no previous file with comments | « content/shell/utility/shell_content_utility_client.cc ('k') | device/devices_app/devices_app.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/devices_app/devices_app.h
diff --git a/device/devices_app/devices_app.h b/device/devices_app/devices_app.h
index d2477028412a7117b9a16e57b03b773259d86da7..0fecb426b3685c00739edefbcd5d519127c78901 100644
--- a/device/devices_app/devices_app.h
+++ b/device/devices_app/devices_app.h
@@ -11,8 +11,8 @@
#include "base/macros.h"
#include "base/memory/ref_counted.h"
#include "base/memory/scoped_ptr.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 mojo {
class Shell;
@@ -24,7 +24,7 @@ namespace usb {
class DeviceManager;
}
-class DevicesApp : public mojo::ApplicationDelegate,
+class DevicesApp : public mojo::ShellClient,
public mojo::InterfaceFactory<usb::DeviceManager> {
public:
DevicesApp();
@@ -33,15 +33,15 @@ class DevicesApp : public mojo::ApplicationDelegate,
private:
class USBServiceInitializer;
- // mojo::ApplicationDelegate:
+ // 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;
// mojo::InterfaceFactory<usb::DeviceManager>:
- void Create(mojo::ApplicationConnection* connection,
+ void Create(mojo::Connection* connection,
mojo::InterfaceRequest<usb::DeviceManager> request) override;
// Mojo error handler to track device manager count.
« no previous file with comments | « content/shell/utility/shell_content_utility_client.cc ('k') | device/devices_app/devices_app.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698