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

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

Issue 12212047: Linux/ChromeOS Chromium style checker cleanup, chrome/browser/extensions edition. (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: Created 7 years, 10 months 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) 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 #include "base/bind.h" 5 #include "base/bind.h"
6 #include "base/command_line.h" 6 #include "base/command_line.h"
7 #include "base/lazy_instance.h" 7 #include "base/lazy_instance.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "base/message_loop.h" 9 #include "base/message_loop.h"
10 #include "base/metrics/histogram.h" 10 #include "base/metrics/histogram.h"
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 class IncognitoExtensionProcessManager : public ExtensionProcessManager { 68 class IncognitoExtensionProcessManager : public ExtensionProcessManager {
69 public: 69 public:
70 explicit IncognitoExtensionProcessManager(Profile* profile); 70 explicit IncognitoExtensionProcessManager(Profile* profile);
71 virtual ~IncognitoExtensionProcessManager(); 71 virtual ~IncognitoExtensionProcessManager();
72 virtual ExtensionHost* CreateViewHost( 72 virtual ExtensionHost* CreateViewHost(
73 const Extension* extension, 73 const Extension* extension,
74 const GURL& url, 74 const GURL& url,
75 Browser* browser, 75 Browser* browser,
76 chrome::ViewType view_type) OVERRIDE; 76 chrome::ViewType view_type) OVERRIDE;
77 virtual void CreateBackgroundHost(const Extension* extension, 77 virtual void CreateBackgroundHost(const Extension* extension,
78 const GURL& url); 78 const GURL& url) OVERRIDE;
79 virtual SiteInstance* GetSiteInstanceForURL(const GURL& url); 79 virtual SiteInstance* GetSiteInstanceForURL(const GURL& url) OVERRIDE;
80 80
81 private: 81 private:
82 // content::NotificationObserver: 82 // content::NotificationObserver:
83 virtual void Observe(int type, 83 virtual void Observe(int type,
84 const content::NotificationSource& source, 84 const content::NotificationSource& source,
85 const content::NotificationDetails& details); 85 const content::NotificationDetails& details) OVERRIDE;
86 86
87 // Returns true if the extension is allowed to run in incognito mode. 87 // Returns true if the extension is allowed to run in incognito mode.
88 bool IsIncognitoEnabled(const Extension* extension); 88 bool IsIncognitoEnabled(const Extension* extension);
89 89
90 ExtensionProcessManager* original_manager_; 90 ExtensionProcessManager* original_manager_;
91 }; 91 };
92 92
93 static void CreateBackgroundHostForExtensionLoad( 93 static void CreateBackgroundHostForExtensionLoad(
94 ExtensionProcessManager* manager, const Extension* extension) { 94 ExtensionProcessManager* manager, const Extension* extension) {
95 if (extension->has_persistent_background_page()) 95 if (extension->has_persistent_background_page())
(...skipping 760 matching lines...) Expand 10 before | Expand all | Expand 10 after
856 CreateBackgroundHostsForProfileStartup(GetProfile(), 856 CreateBackgroundHostsForProfileStartup(GetProfile(),
857 this, service->extensions()); 857 this, service->extensions());
858 } 858 }
859 break; 859 break;
860 } 860 }
861 default: 861 default:
862 ExtensionProcessManager::Observe(type, source, details); 862 ExtensionProcessManager::Observe(type, source, details);
863 break; 863 break;
864 } 864 }
865 } 865 }
OLDNEW
« no previous file with comments | « chrome/browser/extensions/extension_prefs_unittest.cc ('k') | chrome/browser/extensions/extension_protocols.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698