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

Unified Diff: components/guest_view/renderer/guest_view_container_dispatcher.h

Issue 1161483004: Move guest view container message routing out of content/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove ChromeGVCDispatcher + sync 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
Index: components/guest_view/renderer/guest_view_container_dispatcher.h
diff --git a/components/guest_view/renderer/guest_view_container_dispatcher.h b/components/guest_view/renderer/guest_view_container_dispatcher.h
new file mode 100644
index 0000000000000000000000000000000000000000..1ca701822624cf2df1714dc6d22647468550e851
--- /dev/null
+++ b/components/guest_view/renderer/guest_view_container_dispatcher.h
@@ -0,0 +1,34 @@
+// Copyright 2015 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 COMPONENTS_GUEST_VIEW_RENDERER_GUEST_VIEW_CONTAINER_DISPATCHER_H_
+#define COMPONENTS_GUEST_VIEW_RENDERER_GUEST_VIEW_CONTAINER_DISPATCHER_H_
+
+#include "base/memory/linked_ptr.h"
+#include "base/memory/scoped_ptr.h"
+#include "content/public/renderer/render_process_observer.h"
+#include "ipc/ipc_message.h"
+
+namespace guest_view {
+
+// Dispatcher used to route messages to GuestViewContainer.
+class GuestViewContainerDispatcher : public content::RenderProcessObserver {
+ public:
+ GuestViewContainerDispatcher();
+ ~GuestViewContainerDispatcher() override;
+
+ protected:
+ // Returns true if |message| is handled for a GuestViewContainer.
+ virtual bool HandlesMessage(const IPC::Message& message);
+
+ private:
+ // content::RenderProcessObserver implementation.
+ bool OnControlMessageReceived(const IPC::Message& message) override;
+
+ DISALLOW_COPY_AND_ASSIGN(GuestViewContainerDispatcher);
+};
+
+} // namespace guest_view
+
+#endif // COMPONENTS_GUEST_VIEW_RENDERER_GUEST_VIEW_CONTAINER_DISPATCHER_H_

Powered by Google App Engine
This is Rietveld 408576698