Chromium Code Reviews| 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 234 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 245 // Invoked when visible SSL state (as defined by SSLStatus) changes. | 245 // Invoked when visible SSL state (as defined by SSLStatus) changes. |
| 246 virtual void DidChangeVisibleSSLState() {} | 246 virtual void DidChangeVisibleSSLState() {} |
| 247 | 247 |
| 248 // Invoked when an interstitial page is attached or detached. | 248 // Invoked when an interstitial page is attached or detached. |
| 249 virtual void DidAttachInterstitialPage() {} | 249 virtual void DidAttachInterstitialPage() {} |
| 250 virtual void DidDetachInterstitialPage() {} | 250 virtual void DidDetachInterstitialPage() {} |
| 251 | 251 |
| 252 // Invoked before a form repost warning is shown. | 252 // Invoked before a form repost warning is shown. |
| 253 virtual void BeforeFormRepostWarningShow() {} | 253 virtual void BeforeFormRepostWarningShow() {} |
| 254 | 254 |
| 255 // Invoked when a system drag ends that was started in the WebContents. | |
| 256 virtual void SystemDragEnded() {} | |
|
Fady Samuel
2013/04/18 18:22:56
Is this necessary?
mthiesse
2013/04/18 18:36:32
Missed cleanup of this, wasn't used.
| |
| 257 | |
| 255 // IPC::Listener implementation. | 258 // IPC::Listener implementation. |
| 256 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; | 259 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; |
| 257 | 260 |
| 258 // IPC::Sender implementation. | 261 // IPC::Sender implementation. |
| 259 virtual bool Send(IPC::Message* message) OVERRIDE; | 262 virtual bool Send(IPC::Message* message) OVERRIDE; |
| 260 int routing_id() const; | 263 int routing_id() const; |
| 261 | 264 |
| 262 protected: | 265 protected: |
| 263 // Use this constructor when the object is tied to a single WebContents for | 266 // Use this constructor when the object is tied to a single WebContents for |
| 264 // its entire lifetime. | 267 // its entire lifetime. |
| (...skipping 19 matching lines...) Expand all Loading... | |
| 284 void WebContentsImplDestroyed(); | 287 void WebContentsImplDestroyed(); |
| 285 | 288 |
| 286 WebContentsImpl* web_contents_; | 289 WebContentsImpl* web_contents_; |
| 287 | 290 |
| 288 DISALLOW_COPY_AND_ASSIGN(WebContentsObserver); | 291 DISALLOW_COPY_AND_ASSIGN(WebContentsObserver); |
| 289 }; | 292 }; |
| 290 | 293 |
| 291 } // namespace content | 294 } // namespace content |
| 292 | 295 |
| 293 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_OBSERVER_H_ | 296 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_OBSERVER_H_ |
| OLD | NEW |