| 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 18 matching lines...) Expand all Loading... |
| 29 #include "chrome/browser/ui/android/extensions/extension_view_android.h" | 29 #include "chrome/browser/ui/android/extensions/extension_view_android.h" |
| 30 #endif | 30 #endif |
| 31 | 31 |
| 32 class Browser; | 32 class Browser; |
| 33 class PrefsTabHelper; | 33 class PrefsTabHelper; |
| 34 | 34 |
| 35 namespace content { | 35 namespace content { |
| 36 class RenderProcessHost; | 36 class RenderProcessHost; |
| 37 class RenderWidgetHostView; | 37 class RenderWidgetHostView; |
| 38 class SiteInstance; | 38 class SiteInstance; |
| 39 class WebIntentsDispatcher; | |
| 40 } | 39 } |
| 41 | 40 |
| 42 namespace extensions { | 41 namespace extensions { |
| 43 class Extension; | 42 class Extension; |
| 44 class WindowController; | 43 class WindowController; |
| 45 | 44 |
| 46 // This class is the browser component of an extension component's RenderView. | 45 // This class is the browser component of an extension component's RenderView. |
| 47 // It handles setting up the renderer process, if needed, with special | 46 // It handles setting up the renderer process, if needed, with special |
| 48 // privileges available to extensions. It may have a view to be shown in the | 47 // privileges available to extensions. It may have a view to be shown in the |
| 49 // browser UI, or it may be hidden. | 48 // browser UI, or it may be hidden. |
| (...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 161 const content::FileChooserParams& params) OVERRIDE; | 160 const content::FileChooserParams& params) OVERRIDE; |
| 162 virtual void AddNewContents(content::WebContents* source, | 161 virtual void AddNewContents(content::WebContents* source, |
| 163 content::WebContents* new_contents, | 162 content::WebContents* new_contents, |
| 164 WindowOpenDisposition disposition, | 163 WindowOpenDisposition disposition, |
| 165 const gfx::Rect& initial_pos, | 164 const gfx::Rect& initial_pos, |
| 166 bool user_gesture, | 165 bool user_gesture, |
| 167 bool* was_blocked) OVERRIDE; | 166 bool* was_blocked) OVERRIDE; |
| 168 virtual void CloseContents(content::WebContents* contents) OVERRIDE; | 167 virtual void CloseContents(content::WebContents* contents) OVERRIDE; |
| 169 virtual void OnStartDownload(content::WebContents* source, | 168 virtual void OnStartDownload(content::WebContents* source, |
| 170 content::DownloadItem* download) OVERRIDE; | 169 content::DownloadItem* download) OVERRIDE; |
| 171 virtual void WebIntentDispatch( | |
| 172 content::WebContents* web_contents, | |
| 173 content::WebIntentsDispatcher* intents_dispatcher) OVERRIDE; | |
| 174 virtual void RequestMediaAccessPermission( | 170 virtual void RequestMediaAccessPermission( |
| 175 content::WebContents* web_contents, | 171 content::WebContents* web_contents, |
| 176 const content::MediaStreamRequest& request, | 172 const content::MediaStreamRequest& request, |
| 177 const content::MediaResponseCallback& callback) OVERRIDE; | 173 const content::MediaResponseCallback& callback) OVERRIDE; |
| 178 | 174 |
| 179 // content::NotificationObserver | 175 // content::NotificationObserver |
| 180 virtual void Observe(int type, | 176 virtual void Observe(int type, |
| 181 const content::NotificationSource& source, | 177 const content::NotificationSource& source, |
| 182 const content::NotificationDetails& details) OVERRIDE; | 178 const content::NotificationDetails& details) OVERRIDE; |
| 183 | 179 |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 260 | 256 |
| 261 // Used to measure how long it's been since the host was created. | 257 // Used to measure how long it's been since the host was created. |
| 262 PerfTimer since_created_; | 258 PerfTimer since_created_; |
| 263 | 259 |
| 264 DISALLOW_COPY_AND_ASSIGN(ExtensionHost); | 260 DISALLOW_COPY_AND_ASSIGN(ExtensionHost); |
| 265 }; | 261 }; |
| 266 | 262 |
| 267 } // namespace extensions | 263 } // namespace extensions |
| 268 | 264 |
| 269 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_HOST_H_ | 265 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_HOST_H_ |
| OLD | NEW |