OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 EXTENSIONS_BROWSER_EXTENSION_WEB_CONTENTS_OBSERVER_H_ | 5 #ifndef EXTENSIONS_BROWSER_EXTENSION_WEB_CONTENTS_OBSERVER_H_ |
6 #define EXTENSIONS_BROWSER_EXTENSION_WEB_CONTENTS_OBSERVER_H_ | 6 #define EXTENSIONS_BROWSER_EXTENSION_WEB_CONTENTS_OBSERVER_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 // ExtensionFunctionDispatcher::Delegate overrides. | 53 // ExtensionFunctionDispatcher::Delegate overrides. |
54 content::WebContents* GetAssociatedWebContents() const override; | 54 content::WebContents* GetAssociatedWebContents() const override; |
55 | 55 |
56 // content::WebContentsObserver overrides. | 56 // content::WebContentsObserver overrides. |
57 | 57 |
58 // A subclass should invoke this method to finish extension process setup. | 58 // A subclass should invoke this method to finish extension process setup. |
59 void RenderViewCreated(content::RenderViewHost* render_view_host) override; | 59 void RenderViewCreated(content::RenderViewHost* render_view_host) override; |
60 | 60 |
61 void RenderFrameCreated(content::RenderFrameHost* render_frame_host) override; | 61 void RenderFrameCreated(content::RenderFrameHost* render_frame_host) override; |
62 void RenderFrameDeleted(content::RenderFrameHost* render_frame_host) override; | 62 void RenderFrameDeleted(content::RenderFrameHost* render_frame_host) override; |
| 63 void RenderFrameHostChanged(content::RenderFrameHost* old_host, |
| 64 content::RenderFrameHost* new_host) override; |
| 65 void DidNavigateAnyFrame(content::RenderFrameHost* render_frame_host, |
| 66 const content::LoadCommittedDetails& details, |
| 67 const content::FrameNavigateParams& params) override; |
63 | 68 |
64 // Subclasses should call this first before doing their own message handling. | 69 // Subclasses should call this first before doing their own message handling. |
65 bool OnMessageReceived(const IPC::Message& message, | 70 bool OnMessageReceived(const IPC::Message& message, |
66 content::RenderFrameHost* render_frame_host) override; | 71 content::RenderFrameHost* render_frame_host) override; |
67 | 72 |
68 // Per the documentation in WebContentsObserver, these two methods are invoked | 73 // Per the documentation in WebContentsObserver, these two methods are invoked |
69 // when a Pepper plugin instance is attached/detached in the page DOM. | 74 // when a Pepper plugin instance is attached/detached in the page DOM. |
70 void PepperInstanceCreated() override; | 75 void PepperInstanceCreated() override; |
71 void PepperInstanceDeleted() override; | 76 void PepperInstanceDeleted() override; |
72 | 77 |
(...skipping 28 matching lines...) Expand all Loading... |
101 content::BrowserContext* browser_context_; | 106 content::BrowserContext* browser_context_; |
102 | 107 |
103 ExtensionFunctionDispatcher dispatcher_; | 108 ExtensionFunctionDispatcher dispatcher_; |
104 | 109 |
105 DISALLOW_COPY_AND_ASSIGN(ExtensionWebContentsObserver); | 110 DISALLOW_COPY_AND_ASSIGN(ExtensionWebContentsObserver); |
106 }; | 111 }; |
107 | 112 |
108 } // namespace extensions | 113 } // namespace extensions |
109 | 114 |
110 #endif // EXTENSIONS_BROWSER_EXTENSION_WEB_CONTENTS_OBSERVER_H_ | 115 #endif // EXTENSIONS_BROWSER_EXTENSION_WEB_CONTENTS_OBSERVER_H_ |
OLD | NEW |