| 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/kill.h" | 8 #include "base/process/kill.h" |
| 9 #include "base/process/process_handle.h" | 9 #include "base/process/process_handle.h" |
| 10 #include "content/common/content_export.h" | 10 #include "content/common/content_export.h" |
| (...skipping 304 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 315 const std::vector<AXEventNotificationDetails>& details) {} | 315 const std::vector<AXEventNotificationDetails>& details) {} |
| 316 | 316 |
| 317 // Invoked when theme color is changed to |theme_color|. | 317 // Invoked when theme color is changed to |theme_color|. |
| 318 virtual void DidChangeThemeColor(SkColor theme_color) {} | 318 virtual void DidChangeThemeColor(SkColor theme_color) {} |
| 319 | 319 |
| 320 // Invoked if an IPC message is coming from a specific RenderFrameHost. | 320 // Invoked if an IPC message is coming from a specific RenderFrameHost. |
| 321 virtual bool OnMessageReceived(const IPC::Message& message, | 321 virtual bool OnMessageReceived(const IPC::Message& message, |
| 322 RenderFrameHost* render_frame_host); | 322 RenderFrameHost* render_frame_host); |
| 323 | 323 |
| 324 // IPC::Listener implementation. | 324 // IPC::Listener implementation. |
| 325 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; | 325 virtual bool OnMessageReceived(const IPC::Message& message) override; |
| 326 | 326 |
| 327 // IPC::Sender implementation. | 327 // IPC::Sender implementation. |
| 328 virtual bool Send(IPC::Message* message) OVERRIDE; | 328 virtual bool Send(IPC::Message* message) override; |
| 329 int routing_id() const; | 329 int routing_id() const; |
| 330 | 330 |
| 331 WebContents* web_contents() const; | 331 WebContents* web_contents() const; |
| 332 | 332 |
| 333 protected: | 333 protected: |
| 334 // Use this constructor when the object is tied to a single WebContents for | 334 // Use this constructor when the object is tied to a single WebContents for |
| 335 // its entire lifetime. | 335 // its entire lifetime. |
| 336 explicit WebContentsObserver(WebContents* web_contents); | 336 explicit WebContentsObserver(WebContents* web_contents); |
| 337 | 337 |
| 338 // Use this constructor when the object wants to observe a WebContents for | 338 // Use this constructor when the object wants to observe a WebContents for |
| (...skipping 12 matching lines...) Expand all Loading... |
| 351 void ResetWebContents(); | 351 void ResetWebContents(); |
| 352 | 352 |
| 353 WebContentsImpl* web_contents_; | 353 WebContentsImpl* web_contents_; |
| 354 | 354 |
| 355 DISALLOW_COPY_AND_ASSIGN(WebContentsObserver); | 355 DISALLOW_COPY_AND_ASSIGN(WebContentsObserver); |
| 356 }; | 356 }; |
| 357 | 357 |
| 358 } // namespace content | 358 } // namespace content |
| 359 | 359 |
| 360 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_OBSERVER_H_ | 360 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_OBSERVER_H_ |
| OLD | NEW |