| 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 231 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 242 | 242 |
| 243 // Invoked when new FaviconURL candidates are received from the renderer. | 243 // Invoked when new FaviconURL candidates are received from the renderer. |
| 244 virtual void DidUpdateFaviconURL(int32 page_id, | 244 virtual void DidUpdateFaviconURL(int32 page_id, |
| 245 const std::vector<FaviconURL>& candidates) {} | 245 const std::vector<FaviconURL>& candidates) {} |
| 246 | 246 |
| 247 // Invoked when a pepper plugin creates and shows or destroys a fullscreen | 247 // Invoked when a pepper plugin creates and shows or destroys a fullscreen |
| 248 // render widget. | 248 // render widget. |
| 249 virtual void DidShowFullscreenWidget(int routing_id) {} | 249 virtual void DidShowFullscreenWidget(int routing_id) {} |
| 250 virtual void DidDestroyFullscreenWidget(int routing_id) {} | 250 virtual void DidDestroyFullscreenWidget(int routing_id) {} |
| 251 | 251 |
| 252 // Invoked when visible SSL state (as defined by SSLStatus) changes. |
| 253 virtual void DidChangeVisibleSSLState() {} |
| 254 |
| 252 // IPC::Listener implementation. | 255 // IPC::Listener implementation. |
| 253 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; | 256 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; |
| 254 | 257 |
| 255 // IPC::Sender implementation. | 258 // IPC::Sender implementation. |
| 256 virtual bool Send(IPC::Message* message) OVERRIDE; | 259 virtual bool Send(IPC::Message* message) OVERRIDE; |
| 257 int routing_id() const; | 260 int routing_id() const; |
| 258 | 261 |
| 259 protected: | 262 protected: |
| 260 // Use this constructor when the object is tied to a single WebContents for | 263 // Use this constructor when the object is tied to a single WebContents for |
| 261 // its entire lifetime. | 264 // its entire lifetime. |
| (...skipping 19 matching lines...) Expand all Loading... |
| 281 void WebContentsImplDestroyed(); | 284 void WebContentsImplDestroyed(); |
| 282 | 285 |
| 283 WebContentsImpl* web_contents_; | 286 WebContentsImpl* web_contents_; |
| 284 | 287 |
| 285 DISALLOW_COPY_AND_ASSIGN(WebContentsObserver); | 288 DISALLOW_COPY_AND_ASSIGN(WebContentsObserver); |
| 286 }; | 289 }; |
| 287 | 290 |
| 288 } // namespace content | 291 } // namespace content |
| 289 | 292 |
| 290 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_OBSERVER_H_ | 293 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_OBSERVER_H_ |
| OLD | NEW |