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 241 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
252 // Invoked when visible SSL state (as defined by SSLStatus) changes. | 252 // Invoked when visible SSL state (as defined by SSLStatus) changes. |
253 virtual void DidChangeVisibleSSLState() {} | 253 virtual void DidChangeVisibleSSLState() {} |
254 | 254 |
255 // Invoked when an interstitial page is attached or detached. | 255 // Invoked when an interstitial page is attached or detached. |
256 virtual void DidAttachInterstitialPage() {} | 256 virtual void DidAttachInterstitialPage() {} |
257 virtual void DidDetachInterstitialPage() {} | 257 virtual void DidDetachInterstitialPage() {} |
258 | 258 |
259 // Invoked before a form repost warning is shown. | 259 // Invoked before a form repost warning is shown. |
260 virtual void BeforeFormRepostWarningShow() {} | 260 virtual void BeforeFormRepostWarningShow() {} |
261 | 261 |
| 262 // Invoked when the before unload fires. The time is from the renderer. |
| 263 virtual void BeforeUnloadFired(const base::TimeTicks& proceed_time) {} |
| 264 |
| 265 // Invoked when a user cancels a before unload dialog. |
| 266 virtual void BeforeUnloadDialogCancelled() {} |
| 267 |
262 // IPC::Listener implementation. | 268 // IPC::Listener implementation. |
263 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; | 269 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; |
264 | 270 |
265 // IPC::Sender implementation. | 271 // IPC::Sender implementation. |
266 virtual bool Send(IPC::Message* message) OVERRIDE; | 272 virtual bool Send(IPC::Message* message) OVERRIDE; |
267 int routing_id() const; | 273 int routing_id() const; |
268 | 274 |
269 protected: | 275 protected: |
270 // Use this constructor when the object is tied to a single WebContents for | 276 // Use this constructor when the object is tied to a single WebContents for |
271 // its entire lifetime. | 277 // its entire lifetime. |
(...skipping 19 matching lines...) Expand all Loading... |
291 void WebContentsImplDestroyed(); | 297 void WebContentsImplDestroyed(); |
292 | 298 |
293 WebContentsImpl* web_contents_; | 299 WebContentsImpl* web_contents_; |
294 | 300 |
295 DISALLOW_COPY_AND_ASSIGN(WebContentsObserver); | 301 DISALLOW_COPY_AND_ASSIGN(WebContentsObserver); |
296 }; | 302 }; |
297 | 303 |
298 } // namespace content | 304 } // namespace content |
299 | 305 |
300 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_OBSERVER_H_ | 306 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_OBSERVER_H_ |
OLD | NEW |