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

Side by Side Diff: components/guest_view/renderer/guest_view_container_dispatcher.h

Issue 1602663003: Framelet Prototype 2016 using Mojo IPC Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased. Disabled oilpan Created 4 years, 11 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef COMPONENTS_GUEST_VIEW_RENDERER_GUEST_VIEW_CONTAINER_DISPATCHER_H_ 5 #ifndef COMPONENTS_GUEST_VIEW_RENDERER_GUEST_VIEW_CONTAINER_DISPATCHER_H_
6 #define COMPONENTS_GUEST_VIEW_RENDERER_GUEST_VIEW_CONTAINER_DISPATCHER_H_ 6 #define COMPONENTS_GUEST_VIEW_RENDERER_GUEST_VIEW_CONTAINER_DISPATCHER_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "base/memory/linked_ptr.h" 9 #include "base/memory/linked_ptr.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
11 #include "content/public/renderer/render_process_observer.h" 11 #include "content/public/renderer/render_process_observer.h"
12 #include "ipc/ipc_message.h" 12 #include "ipc/ipc_message.h"
13 13
14 namespace guest_view { 14 namespace guest_view {
15 15
16 // Dispatcher used to route messages to GuestViewContainer. 16 // Dispatcher used to route messages to GuestViewContainer.
17 class GuestViewContainerDispatcher : public content::RenderProcessObserver { 17 class GuestViewContainerDispatcher : public content::RenderProcessObserver {
18 public: 18 public:
19 GuestViewContainerDispatcher(); 19 GuestViewContainerDispatcher();
20 ~GuestViewContainerDispatcher() override; 20 ~GuestViewContainerDispatcher() override;
21 21
22 protected: 22 protected:
23 // Returns true if |message| is handled for a GuestViewContainer. 23 // Returns true if |message| is handled for a GuestViewContainer.
24 virtual bool HandlesMessage(const IPC::Message& message); 24 virtual bool HandlesMessage(const IPC::Message& message);
25 25
26 private:
27 // content::RenderProcessObserver implementation. 26 // content::RenderProcessObserver implementation.
28 bool OnControlMessageReceived(const IPC::Message& message) override; 27 bool OnControlMessageReceived(const IPC::Message& message) override;
29 28
30 DISALLOW_COPY_AND_ASSIGN(GuestViewContainerDispatcher); 29 DISALLOW_COPY_AND_ASSIGN(GuestViewContainerDispatcher);
31 }; 30 };
32 31
33 } // namespace guest_view 32 } // namespace guest_view
34 33
35 #endif // COMPONENTS_GUEST_VIEW_RENDERER_GUEST_VIEW_CONTAINER_DISPATCHER_H_ 34 #endif // COMPONENTS_GUEST_VIEW_RENDERER_GUEST_VIEW_CONTAINER_DISPATCHER_H_
OLDNEW
« no previous file with comments | « components/guest_view/browser/guest_view_base.h ('k') | components/resources/components_scaled_resources.grd » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698