| 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; |
| 39 } | 40 } |
| 40 | 41 |
| 41 namespace extensions { | 42 namespace extensions { |
| 42 class Extension; | 43 class Extension; |
| 43 class WindowController; | 44 class WindowController; |
| 44 | 45 |
| 45 // This class is the browser component of an extension component's RenderView. | 46 // This class is the browser component of an extension component's RenderView. |
| 46 // It handles setting up the renderer process, if needed, with special | 47 // It handles setting up the renderer process, if needed, with special |
| 47 // privileges available to extensions. It may have a view to be shown in the | 48 // privileges available to extensions. It may have a view to be shown in the |
| 48 // browser UI, or it may be hidden. | 49 // browser UI, or it may be hidden. |
| (...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 157 content::WebContents* tab, | 158 content::WebContents* tab, |
| 158 const content::FileChooserParams& params) OVERRIDE; | 159 const content::FileChooserParams& params) OVERRIDE; |
| 159 virtual void AddNewContents(content::WebContents* source, | 160 virtual void AddNewContents(content::WebContents* source, |
| 160 content::WebContents* new_contents, | 161 content::WebContents* new_contents, |
| 161 WindowOpenDisposition disposition, | 162 WindowOpenDisposition disposition, |
| 162 const gfx::Rect& initial_pos, | 163 const gfx::Rect& initial_pos, |
| 163 bool user_gesture) OVERRIDE; | 164 bool user_gesture) OVERRIDE; |
| 164 virtual void CloseContents(content::WebContents* contents) OVERRIDE; | 165 virtual void CloseContents(content::WebContents* contents) OVERRIDE; |
| 165 virtual void OnStartDownload(content::WebContents* source, | 166 virtual void OnStartDownload(content::WebContents* source, |
| 166 content::DownloadItem* download) OVERRIDE; | 167 content::DownloadItem* download) OVERRIDE; |
| 168 virtual void WebIntentDispatch( |
| 169 content::WebContents* web_contents, |
| 170 content::WebIntentsDispatcher* intents_dispatcher) OVERRIDE; |
| 167 | 171 |
| 168 // content::NotificationObserver | 172 // content::NotificationObserver |
| 169 virtual void Observe(int type, | 173 virtual void Observe(int type, |
| 170 const content::NotificationSource& source, | 174 const content::NotificationSource& source, |
| 171 const content::NotificationDetails& details) OVERRIDE; | 175 const content::NotificationDetails& details) OVERRIDE; |
| 172 | 176 |
| 173 private: | 177 private: |
| 174 friend class ProcessCreationQueue; | 178 friend class ProcessCreationQueue; |
| 175 | 179 |
| 176 // Actually create the RenderView for this host. See CreateRenderViewSoon. | 180 // Actually create the RenderView for this host. See CreateRenderViewSoon. |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 251 | 255 |
| 252 // Used to measure how long it's been since the host was created. | 256 // Used to measure how long it's been since the host was created. |
| 253 PerfTimer since_created_; | 257 PerfTimer since_created_; |
| 254 | 258 |
| 255 DISALLOW_COPY_AND_ASSIGN(ExtensionHost); | 259 DISALLOW_COPY_AND_ASSIGN(ExtensionHost); |
| 256 }; | 260 }; |
| 257 | 261 |
| 258 } // namespace extensions | 262 } // namespace extensions |
| 259 | 263 |
| 260 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_HOST_H_ | 264 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_HOST_H_ |
| OLD | NEW |