Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef COMPONENTS_GUEST_VIEW_RENDERER_GUEST_VIEW_CONTAINER_OBSERVER_H_ | |
| 6 #define COMPONENTS_GUEST_VIEW_RENDERER_GUEST_VIEW_CONTAINER_OBSERVER_H_ | |
| 7 | |
| 8 #include "base/memory/linked_ptr.h" | |
| 9 #include "base/memory/scoped_ptr.h" | |
| 10 #include "content/public/renderer/render_process_observer.h" | |
| 11 #include "ipc/ipc_message.h" | |
| 12 | |
| 13 namespace guest_view { | |
| 14 | |
| 15 // Observer used to route messages to GuestViewContainer. | |
|
Fady Samuel
2015/06/01 11:32:25
This is a dispatcher for GuestViewContainer, not a
lazyboy
2015/06/01 16:00:07
Done.
| |
| 16 class GuestViewContainerObserver : public content::RenderProcessObserver { | |
| 17 public: | |
| 18 GuestViewContainerObserver(); | |
| 19 ~GuestViewContainerObserver() override; | |
| 20 | |
| 21 protected: | |
| 22 // Returns true if |message| is handled for a GuestViewContainer. | |
| 23 virtual bool HandlesMessage(const IPC::Message& message) = 0; | |
| 24 | |
| 25 private: | |
| 26 // content::RenderProcessObserver implementation. | |
| 27 bool OnControlMessageReceived(const IPC::Message& message) override; | |
| 28 | |
| 29 DISALLOW_COPY_AND_ASSIGN(GuestViewContainerObserver); | |
| 30 }; | |
| 31 | |
| 32 } // namespace guest_view | |
| 33 | |
| 34 #endif // COMPONENTS_GUEST_VIEW_RENDERER_GUEST_VIEW_CONTAINER_OBSERVER_H_ | |
| OLD | NEW |