| 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 <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| (...skipping 344 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 355 // This methods is invoked when the title of the WebContents is set. If the | 355 // This methods is invoked when the title of the WebContents is set. If the |
| 356 // title was explicitly set, |explicit_set| is true, otherwise the title was | 356 // title was explicitly set, |explicit_set| is true, otherwise the title was |
| 357 // synthesized and |explicit_set| is false. | 357 // synthesized and |explicit_set| is false. |
| 358 virtual void TitleWasSet(NavigationEntry* entry, bool explicit_set) {} | 358 virtual void TitleWasSet(NavigationEntry* entry, bool explicit_set) {} |
| 359 | 359 |
| 360 virtual void AppCacheAccessed(const GURL& manifest_url, | 360 virtual void AppCacheAccessed(const GURL& manifest_url, |
| 361 bool blocked_by_policy) {} | 361 bool blocked_by_policy) {} |
| 362 | 362 |
| 363 // These methods are invoked when a Pepper plugin instance is created/deleted | 363 // These methods are invoked when a Pepper plugin instance is created/deleted |
| 364 // in the DOM. | 364 // in the DOM. |
| 365 virtual void PepperInstanceCreated() {} | 365 virtual void PepperInstanceCreated(int32_t pp_instance) {} |
| 366 virtual void PepperInstanceDeleted() {} | 366 virtual void PepperInstanceDeleted(int32_t pp_instance) {} |
| 367 | 367 |
| 368 // Notification that a plugin has crashed. | 368 // Notification that a plugin has crashed. |
| 369 // |plugin_pid| is the process ID identifying the plugin process. Note that | 369 // |plugin_pid| is the process ID identifying the plugin process. Note that |
| 370 // this ID is supplied by the renderer process, so should not be trusted. | 370 // this ID is supplied by the renderer process, so should not be trusted. |
| 371 // Besides, the corresponding process has probably died at this point. The ID | 371 // Besides, the corresponding process has probably died at this point. The ID |
| 372 // may even have been reused by a new process. | 372 // may even have been reused by a new process. |
| 373 virtual void PluginCrashed(const base::FilePath& plugin_path, | 373 virtual void PluginCrashed(const base::FilePath& plugin_path, |
| 374 base::ProcessId plugin_pid) {} | 374 base::ProcessId plugin_pid) {} |
| 375 | 375 |
| 376 // Notification that the given plugin has hung or become unhung. This | 376 // Notification that the given plugin has hung or become unhung. This |
| (...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 488 void ResetWebContents(); | 488 void ResetWebContents(); |
| 489 | 489 |
| 490 WebContentsImpl* web_contents_; | 490 WebContentsImpl* web_contents_; |
| 491 | 491 |
| 492 DISALLOW_COPY_AND_ASSIGN(WebContentsObserver); | 492 DISALLOW_COPY_AND_ASSIGN(WebContentsObserver); |
| 493 }; | 493 }; |
| 494 | 494 |
| 495 } // namespace content | 495 } // namespace content |
| 496 | 496 |
| 497 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_OBSERVER_H_ | 497 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_OBSERVER_H_ |
| OLD | NEW |