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

Unified Diff: content/renderer/render_thread_impl.cc

Issue 1146813003: Remove mojo::InterfaceImpl from render_thread_impl and web_ui_mojo_browsertest. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 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/browser/webui/web_ui_mojo_browsertest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/render_thread_impl.cc
diff --git a/content/renderer/render_thread_impl.cc b/content/renderer/render_thread_impl.cc
index bb9e409d7024de96fb77b1aafc2828dc972909d6..377bfde1ec137dc49688661609c4a5d640e8b484 100644
--- a/content/renderer/render_thread_impl.cc
+++ b/content/renderer/render_thread_impl.cc
@@ -138,6 +138,7 @@
#include "third_party/WebKit/public/web/WebSecurityPolicy.h"
#include "third_party/WebKit/public/web/WebView.h"
#include "third_party/icu/source/i18n/unicode/timezone.h"
+#include "third_party/mojo/src/mojo/public/cpp/bindings/strong_binding.h"
#include "third_party/skia/include/core/SkGraphics.h"
#include "ui/base/layout.h"
#include "ui/base/ui_base_switches.h"
@@ -340,11 +341,11 @@ void LowMemoryNotificationOnThisThread() {
isolate->LowMemoryNotification();
}
-class RenderFrameSetupImpl : public mojo::InterfaceImpl<RenderFrameSetup> {
+class RenderFrameSetupImpl : public RenderFrameSetup {
public:
- RenderFrameSetupImpl()
- : routing_id_highmark_(-1) {
- }
+ explicit RenderFrameSetupImpl(
+ mojo::InterfaceRequest<RenderFrameSetup> request)
+ : routing_id_highmark_(-1), binding_(this, request.Pass()) {}
void ExchangeServiceProviders(
int32_t frame_routing_id,
@@ -371,10 +372,11 @@ class RenderFrameSetupImpl : public mojo::InterfaceImpl<RenderFrameSetup> {
private:
int32_t routing_id_highmark_;
+ mojo::StrongBinding<RenderFrameSetup> binding_;
};
void CreateRenderFrameSetup(mojo::InterfaceRequest<RenderFrameSetup> request) {
- mojo::BindToRequest(new RenderFrameSetupImpl(), &request);
+ new RenderFrameSetupImpl(request.Pass());
}
blink::WebGraphicsContext3D::Attributes GetOffscreenAttribs() {
« no previous file with comments | « content/browser/webui/web_ui_mojo_browsertest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698