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

Side by Side Diff: chrome/browser/extensions/extension_service.h

Issue 6370009: Add in-profile external_extensions.json file for Chrome OS OEM customization. (Closed) Base URL: http://git.chromium.org/git/chromium.git
Patch Set: Ready for review. Created 9 years, 11 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) 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 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_
6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_ 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_
7 #pragma once 7 #pragma once
8 8
9 #include <map> 9 #include <map>
10 #include <string> 10 #include <string>
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
143 bool IsInstalledApp(const GURL& url); 143 bool IsInstalledApp(const GURL& url);
144 144
145 // Attempts to uninstall an extension from a given ExtensionService. Returns 145 // Attempts to uninstall an extension from a given ExtensionService. Returns
146 // true iff the target extension exists. 146 // true iff the target extension exists.
147 static bool UninstallExtensionHelper(ExtensionService* extensions_service, 147 static bool UninstallExtensionHelper(ExtensionService* extensions_service,
148 const std::string& extension_id); 148 const std::string& extension_id);
149 149
150 // Constructor stores pointers to |profile| and |extension_prefs| but 150 // Constructor stores pointers to |profile| and |extension_prefs| but
151 // ownership remains at caller. 151 // ownership remains at caller.
152 ExtensionService(Profile* profile, 152 ExtensionService(Profile* profile,
153 const CommandLine* command_line, 153 const CommandLine* command_line,
154 const FilePath& install_directory, 154 const FilePath& install_directory,
155 ExtensionPrefs* extension_prefs, 155 ExtensionPrefs* extension_prefs,
156 bool autoupdate_enabled); 156 bool autoupdate_enabled);
157 157
158 // Gets the list of currently installed extensions. 158 // Gets the list of currently installed extensions.
159 virtual const ExtensionList* extensions() const; 159 virtual const ExtensionList* extensions() const;
160 virtual const ExtensionList* disabled_extensions() const; 160 virtual const ExtensionList* disabled_extensions() const;
161 virtual const ExtensionList* terminated_extensions() const; 161 virtual const ExtensionList* terminated_extensions() const;
162 162
163 // Gets the set of pending extensions. 163 // Gets the set of pending extensions.
164 virtual const PendingExtensionMap& pending_extensions() const; 164 virtual const PendingExtensionMap& pending_extensions() const;
165 165
166 // Registers an extension to be loaded as a component extension. 166 // Registers an extension to be loaded as a component extension.
(...skipping 449 matching lines...) Expand 10 before | Expand all | Expand 10 after
616 scoped_ptr<ExtensionBrowserEventRouter> browser_event_router_; 616 scoped_ptr<ExtensionBrowserEventRouter> browser_event_router_;
617 617
618 // A collection of external extension providers. Each provider reads 618 // A collection of external extension providers. Each provider reads
619 // a source of external extension information. Examples include the 619 // a source of external extension information. Examples include the
620 // windows registry and external_extensions.json. 620 // windows registry and external_extensions.json.
621 ProviderCollection external_extension_providers_; 621 ProviderCollection external_extension_providers_;
622 622
623 // Set to true by OnExternalExtensionUpdateUrlFound() when an external 623 // Set to true by OnExternalExtensionUpdateUrlFound() when an external
624 // extension URL is found. Used in CheckForExternalUpdates() to see 624 // extension URL is found. Used in CheckForExternalUpdates() to see
625 // if an update check is needed to install pending extensions. 625 // if an update check is needed to install pending extensions.
626 bool external_extension_added_; 626 bool external_extension_url_added_;
627 627
628 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, 628 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest,
629 UpdatePendingExtensionAlreadyInstalled); 629 UpdatePendingExtensionAlreadyInstalled);
630 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, 630 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest,
631 InstallAppsWithUnlimtedStorage); 631 InstallAppsWithUnlimtedStorage);
632 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, 632 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest,
633 InstallAppsAndCheckStorageProtection); 633 InstallAppsAndCheckStorageProtection);
634 DISALLOW_COPY_AND_ASSIGN(ExtensionService); 634 DISALLOW_COPY_AND_ASSIGN(ExtensionService);
635 }; 635 };
636 636
637 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_ 637 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/extensions/extension_service.cc » ('j') | chrome/browser/extensions/extension_service.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698