OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 CONTENT_PUBLIC_RENDERER_RENDER_VIEW_OBSERVER_H_ | 5 #ifndef CONTENT_PUBLIC_RENDERER_RENDER_VIEW_OBSERVER_H_ |
6 #define CONTENT_PUBLIC_RENDERER_RENDER_VIEW_OBSERVER_H_ | 6 #define CONTENT_PUBLIC_RENDERER_RENDER_VIEW_OBSERVER_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
10 #include "content/common/content_export.h" | 10 #include "content/common/content_export.h" |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
91 | 91 |
92 // These match incoming IPCs. | 92 // These match incoming IPCs. |
93 virtual void Navigate(const GURL& url) {} | 93 virtual void Navigate(const GURL& url) {} |
94 virtual void ClosePage() {} | 94 virtual void ClosePage() {} |
95 virtual void OrientationChangeEvent() {} | 95 virtual void OrientationChangeEvent() {} |
96 virtual void Resized() {} | 96 virtual void Resized() {} |
97 | 97 |
98 virtual void OnStop() {} | 98 virtual void OnStop() {} |
99 | 99 |
100 // IPC::Listener implementation. | 100 // IPC::Listener implementation. |
101 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; | 101 virtual bool OnMessageReceived(const IPC::Message& message) override; |
102 | 102 |
103 // IPC::Sender implementation. | 103 // IPC::Sender implementation. |
104 virtual bool Send(IPC::Message* message) OVERRIDE; | 104 virtual bool Send(IPC::Message* message) override; |
105 | 105 |
106 RenderView* render_view() const; | 106 RenderView* render_view() const; |
107 int routing_id() const { return routing_id_; } | 107 int routing_id() const { return routing_id_; } |
108 | 108 |
109 protected: | 109 protected: |
110 explicit RenderViewObserver(RenderView* render_view); | 110 explicit RenderViewObserver(RenderView* render_view); |
111 virtual ~RenderViewObserver(); | 111 virtual ~RenderViewObserver(); |
112 | 112 |
113 // Sets |render_view_| to track. | 113 // Sets |render_view_| to track. |
114 // Removes itself of previous (if any) |render_view_| observer list and adds | 114 // Removes itself of previous (if any) |render_view_| observer list and adds |
(...skipping 11 matching lines...) Expand all Loading... |
126 RenderView* render_view_; | 126 RenderView* render_view_; |
127 // The routing ID of the associated RenderView. | 127 // The routing ID of the associated RenderView. |
128 int routing_id_; | 128 int routing_id_; |
129 | 129 |
130 DISALLOW_COPY_AND_ASSIGN(RenderViewObserver); | 130 DISALLOW_COPY_AND_ASSIGN(RenderViewObserver); |
131 }; | 131 }; |
132 | 132 |
133 } // namespace content | 133 } // namespace content |
134 | 134 |
135 #endif // CONTENT_PUBLIC_RENDERER_RENDER_VIEW_OBSERVER_H_ | 135 #endif // CONTENT_PUBLIC_RENDERER_RENDER_VIEW_OBSERVER_H_ |
OLD | NEW |