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_BROWSER_WEB_CONTENTS_OBSERVER_H_ | 5 #ifndef CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_OBSERVER_H_ |
6 #define CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_OBSERVER_H_ | 6 #define CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_OBSERVER_H_ |
7 | 7 |
8 #include "base/process.h" | 8 #include "base/process.h" |
9 #include "base/process_util.h" | 9 #include "base/process_util.h" |
10 #include "content/common/content_export.h" | 10 #include "content/common/content_export.h" |
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
145 // Indicates that client 3D APIs (Pepper 3D, WebGL) were just | 145 // Indicates that client 3D APIs (Pepper 3D, WebGL) were just |
146 // blocked on the current page, specifically because the GPU was | 146 // blocked on the current page, specifically because the GPU was |
147 // reset recently. | 147 // reset recently. |
148 virtual void DidBlock3DAPIs(const GURL& url, | 148 virtual void DidBlock3DAPIs(const GURL& url, |
149 ThreeDAPIType requester) {} | 149 ThreeDAPIType requester) {} |
150 | 150 |
151 // Invoked when new FaviconURL candidates are received from the renderer. | 151 // Invoked when new FaviconURL candidates are received from the renderer. |
152 virtual void DidUpdateFaviconURL(int32 page_id, | 152 virtual void DidUpdateFaviconURL(int32 page_id, |
153 const std::vector<FaviconURL>& candidates) {} | 153 const std::vector<FaviconURL>& candidates) {} |
154 | 154 |
155 // Invoked when a plugin like PepperFlash creates and shows or destroys a | |
jam
2013/01/23 21:22:50
nit: don't mention PepperFlash directly, but just
justinlin
2013/01/23 22:20:10
Done.
| |
156 // a fullscreen render widget. | |
157 virtual void DidShowFullscreenWidget(int routing_id) {} | |
158 virtual void DidDestroyFullscreenWidget(int routing_id) {} | |
159 | |
155 // IPC::Listener implementation. | 160 // IPC::Listener implementation. |
156 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; | 161 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; |
157 | 162 |
158 // IPC::Sender implementation. | 163 // IPC::Sender implementation. |
159 virtual bool Send(IPC::Message* message) OVERRIDE; | 164 virtual bool Send(IPC::Message* message) OVERRIDE; |
160 int routing_id() const; | 165 int routing_id() const; |
161 | 166 |
162 protected: | 167 protected: |
163 // Use this constructor when the object is tied to a single WebContents for | 168 // Use this constructor when the object is tied to a single WebContents for |
164 // its entire lifetime. | 169 // its entire lifetime. |
(...skipping 19 matching lines...) Expand all Loading... | |
184 void WebContentsImplDestroyed(); | 189 void WebContentsImplDestroyed(); |
185 | 190 |
186 WebContentsImpl* web_contents_; | 191 WebContentsImpl* web_contents_; |
187 | 192 |
188 DISALLOW_COPY_AND_ASSIGN(WebContentsObserver); | 193 DISALLOW_COPY_AND_ASSIGN(WebContentsObserver); |
189 }; | 194 }; |
190 | 195 |
191 } // namespace content | 196 } // namespace content |
192 | 197 |
193 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_OBSERVER_H_ | 198 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_OBSERVER_H_ |
OLD | NEW |