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

Unified Diff: mojo/shell/standalone/test/pingable_app.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/shell/standalone/android/android_handler.cc ('k') | mojo/shell/static_application_loader.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/shell/standalone/test/pingable_app.cc
diff --git a/mojo/shell/standalone/test/pingable_app.cc b/mojo/shell/standalone/test/pingable_app.cc
index 31613b872682213107e663c1a7dc98d0c2211c6e..9b43df1d359c590b6eb684668b4ab3e198fc431a 100644
--- a/mojo/shell/standalone/test/pingable_app.cc
+++ b/mojo/shell/standalone/test/pingable_app.cc
@@ -6,10 +6,10 @@
#include "mojo/public/cpp/bindings/callback.h"
#include "mojo/public/cpp/bindings/interface_request.h"
#include "mojo/public/cpp/bindings/strong_binding.h"
-#include "mojo/shell/public/cpp/application_delegate.h"
#include "mojo/shell/public/cpp/application_runner.h"
#include "mojo/shell/public/cpp/interface_factory.h"
#include "mojo/shell/public/cpp/shell.h"
+#include "mojo/shell/public/cpp/shell_client.h"
#include "mojo/shell/standalone/test/pingable.mojom.h"
namespace mojo {
@@ -36,25 +36,25 @@ class PingableImpl : public Pingable {
std::string connection_url_;
};
-class PingableApp : public mojo::ApplicationDelegate,
+class PingableApp : public mojo::ShellClient,
public mojo::InterfaceFactory<Pingable> {
public:
PingableApp() {}
~PingableApp() override {}
private:
- // ApplicationDelegate:
+ // mojo::ShellClient:
void Initialize(Shell* shell, const std::string& url, uint32_t id) override {
app_url_ = url;
}
- bool AcceptConnection(mojo::ApplicationConnection* connection) override {
+ bool AcceptConnection(mojo::Connection* connection) override {
connection->AddService(this);
return true;
}
// InterfaceFactory<Pingable>:
- void Create(mojo::ApplicationConnection* connection,
+ void Create(mojo::Connection* connection,
mojo::InterfaceRequest<Pingable> request) override {
new PingableImpl(std::move(request), app_url_,
connection->GetConnectionURL());
« no previous file with comments | « mojo/shell/standalone/android/android_handler.cc ('k') | mojo/shell/static_application_loader.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698