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

Unified Diff: components/web_view/frame_connection.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/web_view/frame_connection.cc
diff --git a/components/web_view/frame_connection.cc b/components/web_view/frame_connection.cc
index c3417d7337a43519191d071158bb3b2fadd727e2..a6049b7335c8320e24bbbcd975f29cd51994b1f7 100644
--- a/components/web_view/frame_connection.cc
+++ b/components/web_view/frame_connection.cc
@@ -22,7 +22,7 @@
#include "mojo/services/network/public/interfaces/url_loader_factory.mojom.h"
#include "mojo/services/network/public/interfaces/web_socket_factory.mojom.h"
#include "mojo/services/tracing/public/interfaces/tracing.mojom.h"
-#include "mojo/shell/public/cpp/application_connection.h"
+#include "mojo/shell/public/cpp/connection.h"
#include "mojo/shell/public/cpp/shell.h"
#if defined(OS_LINUX) && !defined(OS_ANDROID)
@@ -50,7 +50,7 @@ void OnGotContentHandlerForFrame(
} // namespace
-FrameConnection::FrameConnection() : application_connection_(nullptr) {
+FrameConnection::FrameConnection() : connection_(nullptr) {
}
FrameConnection::~FrameConnection() {
@@ -72,7 +72,7 @@ void FrameConnection::CreateConnectionForCanNavigateFrame(
void FrameConnection::Init(mojo::Shell* shell,
mojo::URLRequestPtr request,
const base::Closure& on_got_id_callback) {
- DCHECK(!application_connection_);
+ DCHECK(!connection_);
mojo::shell::mojom::CapabilityFilterPtr filter(
mojo::shell::mojom::CapabilityFilter::New());
@@ -119,22 +119,22 @@ void FrameConnection::Init(mojo::Shell* shell,
mojo::Shell::ConnectParams params(std::move(request));
params.set_filter(std::move(filter));
- application_connection_ = shell->ConnectToApplication(&params);
- application_connection_->ConnectToService(&frame_client_);
- application_connection_->AddRemoteIDCallback(on_got_id_callback);
+ connection_ = shell->ConnectToApplication(&params);
+ connection_->ConnectToService(&frame_client_);
+ connection_->AddRemoteIDCallback(on_got_id_callback);
}
mus::mojom::WindowTreeClientPtr FrameConnection::GetWindowTreeClient() {
- DCHECK(application_connection_);
+ DCHECK(connection_);
mus::mojom::WindowTreeClientPtr window_tree_client;
- application_connection_->ConnectToService(&window_tree_client);
+ connection_->ConnectToService(&window_tree_client);
return window_tree_client;
}
uint32_t FrameConnection::GetContentHandlerID() const {
uint32_t content_handler_id =
mojo::shell::mojom::Shell::kInvalidApplicationID;
- if (!application_connection_->GetRemoteContentHandlerID(&content_handler_id))
+ if (!connection_->GetRemoteContentHandlerID(&content_handler_id))
NOTREACHED();
return content_handler_id;
}
« no previous file with comments | « components/web_view/frame_connection.h ('k') | components/web_view/test_runner/test_runner_application_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698