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

Unified Diff: components/filesystem/file_system_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 | « components/devtools_service/devtools_service_delegate.cc ('k') | components/filesystem/file_system_app.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/filesystem/file_system_app.h
diff --git a/components/filesystem/file_system_app.h b/components/filesystem/file_system_app.h
index b8ef41c75ff0baac430f4ae339d22b6a2ce829ce..44da313ba316c667589c19afb94d71290d236a32 100644
--- a/components/filesystem/file_system_app.h
+++ b/components/filesystem/file_system_app.h
@@ -10,8 +10,8 @@
#include "components/filesystem/file_system_impl.h"
#include "components/filesystem/public/interfaces/file_system.mojom.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.h"
+#include "mojo/shell/public/cpp/shell_client.h"
namespace mojo {
class Shell;
@@ -19,7 +19,7 @@ class Shell;
namespace filesystem {
-class FileSystemApp : public mojo::ApplicationDelegate,
+class FileSystemApp : public mojo::ShellClient,
public mojo::InterfaceFactory<FileSystem> {
public:
FileSystemApp();
@@ -34,15 +34,14 @@ class FileSystemApp : public mojo::ApplicationDelegate,
// that we can QuitNow() once the last DirectoryImpl has closed itself.
void OnDirectoryConnectionError(DirectoryImpl* directory);
- // |ApplicationDelegate| override:
+ // |mojo::ShellClient| override:
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;
bool ShellConnectionLost() override;
// |InterfaceFactory<Files>| implementation:
- void Create(mojo::ApplicationConnection* connection,
+ void Create(mojo::Connection* connection,
mojo::InterfaceRequest<FileSystem> request) override;
// Use a vector to work around map not letting us use FileSystemClientPtr as
« no previous file with comments | « components/devtools_service/devtools_service_delegate.cc ('k') | components/filesystem/file_system_app.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698