Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(307)

Side by Side Diff: chrome/browser/extensions/extension_process_manager.cc

Issue 8437002: Move BrowserThread to content namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: A few updates. Created 9 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #include "base/bind.h" 5 #include "base/bind.h"
6 #include "base/command_line.h" 6 #include "base/command_line.h"
7 #include "chrome/browser/extensions/extension_process_manager.h" 7 #include "chrome/browser/extensions/extension_process_manager.h"
8 8
9 #include "chrome/browser/ui/browser_window.h" 9 #include "chrome/browser/ui/browser_window.h"
10 #include "content/browser/browsing_instance.h" 10 #include "content/browser/browsing_instance.h"
11 #if defined(OS_MACOSX) 11 #if defined(OS_MACOSX)
12 #include "chrome/browser/extensions/extension_host_mac.h" 12 #include "chrome/browser/extensions/extension_host_mac.h"
13 #endif 13 #endif
14 #include "chrome/browser/extensions/extension_host.h" 14 #include "chrome/browser/extensions/extension_host.h"
15 #include "chrome/browser/extensions/extension_info_map.h" 15 #include "chrome/browser/extensions/extension_info_map.h"
16 #include "chrome/browser/extensions/extension_service.h" 16 #include "chrome/browser/extensions/extension_service.h"
17 #include "chrome/browser/profiles/profile.h" 17 #include "chrome/browser/profiles/profile.h"
18 #include "chrome/browser/ui/browser.h" 18 #include "chrome/browser/ui/browser.h"
19 #include "chrome/common/chrome_notification_types.h" 19 #include "chrome/common/chrome_notification_types.h"
20 #include "chrome/common/chrome_switches.h" 20 #include "chrome/common/chrome_switches.h"
21 #include "chrome/common/chrome_view_types.h" 21 #include "chrome/common/chrome_view_types.h"
22 #include "chrome/common/extensions/extension.h" 22 #include "chrome/common/extensions/extension.h"
23 #include "chrome/common/url_constants.h" 23 #include "chrome/common/url_constants.h"
24 #include "content/browser/renderer_host/render_view_host.h" 24 #include "content/browser/renderer_host/render_view_host.h"
25 #include "content/browser/site_instance.h" 25 #include "content/browser/site_instance.h"
26 #include "content/browser/tab_contents/tab_contents.h" 26 #include "content/browser/tab_contents/tab_contents.h"
27 #include "content/public/browser/browser_thread.h" 27 #include "content/public/browser/browser_thread.h"
28 #include "content/public/browser/notification_service.h" 28 #include "content/public/browser/notification_service.h"
29 29
30 using content::BrowserThread;
31
30 namespace { 32 namespace {
31 33
32 // Incognito profiles use this process manager. It is mostly a shim that decides 34 // Incognito profiles use this process manager. It is mostly a shim that decides
33 // whether to fall back on the original profile's ExtensionProcessManager based 35 // whether to fall back on the original profile's ExtensionProcessManager based
34 // on whether a given extension uses "split" or "spanning" incognito behavior. 36 // on whether a given extension uses "split" or "spanning" incognito behavior.
35 class IncognitoExtensionProcessManager : public ExtensionProcessManager { 37 class IncognitoExtensionProcessManager : public ExtensionProcessManager {
36 public: 38 public:
37 explicit IncognitoExtensionProcessManager(Profile* profile); 39 explicit IncognitoExtensionProcessManager(Profile* profile);
38 virtual ~IncognitoExtensionProcessManager() {} 40 virtual ~IncognitoExtensionProcessManager() {}
39 virtual ExtensionHost* CreateViewHost( 41 virtual ExtensionHost* CreateViewHost(
(...skipping 630 matching lines...) Expand 10 before | Expand all | Expand 10 after
670 if (service && service->is_ready()) 672 if (service && service->is_ready())
671 CreateBackgroundHostsForProfileStartup(this, service->extensions()); 673 CreateBackgroundHostsForProfileStartup(this, service->extensions());
672 } 674 }
673 break; 675 break;
674 } 676 }
675 default: 677 default:
676 ExtensionProcessManager::Observe(type, source, details); 678 ExtensionProcessManager::Observe(type, source, details);
677 break; 679 break;
678 } 680 }
679 } 681 }
OLDNEW
« no previous file with comments | « chrome/browser/extensions/extension_prefs_unittest.cc ('k') | chrome/browser/extensions/extension_save_page_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698