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 CHROME_BROWSER_EXTENSIONS_EXTENSION_HOST_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_HOST_H_ |
6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_HOST_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_HOST_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
131 | 131 |
132 // content::WebContentsObserver | 132 // content::WebContentsObserver |
133 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; | 133 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; |
134 virtual void RenderViewCreated( | 134 virtual void RenderViewCreated( |
135 content::RenderViewHost* render_view_host) OVERRIDE; | 135 content::RenderViewHost* render_view_host) OVERRIDE; |
136 virtual void RenderViewDeleted( | 136 virtual void RenderViewDeleted( |
137 content::RenderViewHost* render_view_host) OVERRIDE; | 137 content::RenderViewHost* render_view_host) OVERRIDE; |
138 virtual void RenderViewReady() OVERRIDE; | 138 virtual void RenderViewReady() OVERRIDE; |
139 virtual void RenderViewGone(base::TerminationStatus status) OVERRIDE; | 139 virtual void RenderViewGone(base::TerminationStatus status) OVERRIDE; |
140 virtual void DocumentAvailableInMainFrame() OVERRIDE; | 140 virtual void DocumentAvailableInMainFrame() OVERRIDE; |
141 virtual void DidStopLoading() OVERRIDE; | 141 virtual void DidStopLoading( |
| 142 content::RenderViewHost* render_view_host) OVERRIDE; |
142 | 143 |
143 // content::WebContentsDelegate | 144 // content::WebContentsDelegate |
144 virtual content::WebContents* OpenURLFromTab( | 145 virtual content::WebContents* OpenURLFromTab( |
145 content::WebContents* source, | 146 content::WebContents* source, |
146 const content::OpenURLParams& params) OVERRIDE; | 147 const content::OpenURLParams& params) OVERRIDE; |
147 virtual bool PreHandleKeyboardEvent( | 148 virtual bool PreHandleKeyboardEvent( |
148 const content::NativeWebKeyboardEvent& event, | 149 const content::NativeWebKeyboardEvent& event, |
149 bool* is_keyboard_shortcut) OVERRIDE; | 150 bool* is_keyboard_shortcut) OVERRIDE; |
150 virtual void HandleKeyboardEvent( | 151 virtual void HandleKeyboardEvent( |
151 const content::NativeWebKeyboardEvent& event) OVERRIDE; | 152 const content::NativeWebKeyboardEvent& event) OVERRIDE; |
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
249 // The relevant WebContents associated with this ExtensionHost, if any. | 250 // The relevant WebContents associated with this ExtensionHost, if any. |
250 content::WebContents* associated_web_contents_; | 251 content::WebContents* associated_web_contents_; |
251 | 252 |
252 // Used to measure how long it's been since the host was created. | 253 // Used to measure how long it's been since the host was created. |
253 PerfTimer since_created_; | 254 PerfTimer since_created_; |
254 | 255 |
255 DISALLOW_COPY_AND_ASSIGN(ExtensionHost); | 256 DISALLOW_COPY_AND_ASSIGN(ExtensionHost); |
256 }; | 257 }; |
257 | 258 |
258 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_HOST_H_ | 259 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_HOST_H_ |
OLD | NEW |