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

Unified Diff: content/renderer/web_ui_setup_impl.h

Issue 236813002: Move Mojo channel initialization closer to IPC::Channel setup (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: more missing deps Created 6 years, 8 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/renderer/render_thread_impl.cc ('k') | content/renderer/web_ui_setup_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/web_ui_setup_impl.h
diff --git a/content/renderer/web_ui_setup_impl.h b/content/renderer/web_ui_setup_impl.h
new file mode 100644
index 0000000000000000000000000000000000000000..1bfc6caac4a4b45ca00647d823e960ed8a308336
--- /dev/null
+++ b/content/renderer/web_ui_setup_impl.h
@@ -0,0 +1,39 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CONTENT_RENDERER_WEB_UI_SETUP_IMPL_H_
+#define CONTENT_RENDERER_WEB_UI_SETUP_IMPL_H_
+
+#include "base/basictypes.h"
+#include "content/common/web_ui_setup.mojom.h"
+#include "mojo/public/cpp/bindings/error_handler.h"
+#include "mojo/public/cpp/bindings/remote_ptr.h"
+
+namespace content {
+
+class WebUISetupImpl : public WebUISetup,
+ public mojo::ErrorHandler {
+ public:
+ static void Bind(mojo::ScopedMessagePipeHandle handle);
+
+ private:
+ explicit WebUISetupImpl(mojo::ScopedMessagePipeHandle handle);
+ virtual ~WebUISetupImpl();
+
+ // WebUISetup methods:
+ virtual void SetWebUIHandle(
+ int32_t view_routing_id,
+ mojo::ScopedMessagePipeHandle web_ui_handle) OVERRIDE;
+
+ // mojo::ErrorHandler methods:
+ virtual void OnError() OVERRIDE;
+
+ mojo::RemotePtr<WebUISetupClient> client_;
+
+ DISALLOW_COPY_AND_ASSIGN(WebUISetupImpl);
+};
+
+} // namespace content
+
+#endif // CONTENT_RENDERER_WEB_UI_SETUP_IMPL_H_
« no previous file with comments | « content/renderer/render_thread_impl.cc ('k') | content/renderer/web_ui_setup_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698