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

Unified Diff: components/html_viewer/html_document_application_delegate.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
Index: components/html_viewer/html_document_application_delegate.cc
diff --git a/components/html_viewer/html_document_application_delegate.cc b/components/html_viewer/html_document_application_delegate.cc
index 5da6b38e5c205f633aeff50c8dd5eb9ac2748410..e1208d2c85799a8f615e6f42a6539a83d67c2354 100644
--- a/components/html_viewer/html_document_application_delegate.cc
+++ b/components/html_viewer/html_document_application_delegate.cc
@@ -10,9 +10,7 @@
#include "base/macros.h"
#include "components/html_viewer/global_state.h"
#include "components/html_viewer/html_document.h"
-#include "mojo/shell/public/cpp/application_connection.h"
-#include "mojo/shell/public/cpp/application_delegate.h"
-#include "mojo/shell/public/cpp/connect.h"
+#include "mojo/shell/public/cpp/shell_client.h"
namespace html_viewer {
@@ -25,7 +23,7 @@ class HTMLDocumentApplicationDelegate::ServiceConnectorQueue
ServiceConnectorQueue() {}
~ServiceConnectorQueue() override {}
- void PushRequestsTo(mojo::ApplicationConnection* connection) {
+ void PushRequestsTo(mojo::Connection* connection) {
ScopedVector<Request> requests;
requests_.swap(requests);
for (Request* request : requests) {
@@ -41,7 +39,7 @@ class HTMLDocumentApplicationDelegate::ServiceConnectorQueue
};
// mojo::ServiceConnector:
- void ConnectToService(mojo::ApplicationConnection* application_connection,
+ void ConnectToService(mojo::Connection* connection,
const std::string& interface_name,
mojo::ScopedMessagePipeHandle handle) override {
scoped_ptr<Request> request(new Request);
@@ -85,14 +83,14 @@ HTMLDocumentApplicationDelegate::~HTMLDocumentApplicationDelegate() {
}
// Callback from the quit closure. We key off this rather than
-// ApplicationDelegate::Quit() as we don't want to shut down the messageloop
+// mojo::ShellClient::Quit() as we don't want to shut down the messageloop
// when we quit (the messageloop is shared among multiple
// HTMLDocumentApplicationDelegates).
void HTMLDocumentApplicationDelegate::OnTerminate() {
delete this;
}
-// ApplicationDelegate;
+// mojo::ShellClient;
void HTMLDocumentApplicationDelegate::Initialize(mojo::Shell* shell,
const std::string& url,
uint32_t id) {
@@ -100,7 +98,7 @@ void HTMLDocumentApplicationDelegate::Initialize(mojo::Shell* shell,
}
bool HTMLDocumentApplicationDelegate::AcceptConnection(
- mojo::ApplicationConnection* connection) {
+ mojo::Connection* connection) {
if (initial_response_) {
OnResponseReceived(nullptr, mojo::URLLoaderPtr(), connection, nullptr,
std::move(initial_response_));
@@ -157,7 +155,7 @@ void HTMLDocumentApplicationDelegate::OnHTMLDocumentDeleted2(
void HTMLDocumentApplicationDelegate::OnResponseReceived(
scoped_ptr<mojo::AppRefCount> app_refcount,
mojo::URLLoaderPtr loader,
- mojo::ApplicationConnection* connection,
+ mojo::Connection* connection,
scoped_ptr<ServiceConnectorQueue> connector_queue,
mojo::URLResponsePtr response) {
// HTMLDocument is destroyed when the hosting view is destroyed, or
« no previous file with comments | « components/html_viewer/html_document_application_delegate.h ('k') | components/html_viewer/html_frame_apptest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698