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_service.h

Issue 6546072: Clean up how we handle themes in the extensions system and management API.... Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 9 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) 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 <set> 10 #include <set>
(...skipping 18 matching lines...) Expand all
29 #include "chrome/browser/extensions/extensions_quota_service.h" 29 #include "chrome/browser/extensions/extensions_quota_service.h"
30 #include "chrome/browser/extensions/external_extension_provider_interface.h" 30 #include "chrome/browser/extensions/external_extension_provider_interface.h"
31 #include "chrome/browser/extensions/sandboxed_extension_unpacker.h" 31 #include "chrome/browser/extensions/sandboxed_extension_unpacker.h"
32 #include "chrome/browser/prefs/pref_change_registrar.h" 32 #include "chrome/browser/prefs/pref_change_registrar.h"
33 #include "chrome/common/notification_observer.h" 33 #include "chrome/common/notification_observer.h"
34 #include "chrome/common/notification_registrar.h" 34 #include "chrome/common/notification_registrar.h"
35 #include "chrome/common/extensions/extension.h" 35 #include "chrome/common/extensions/extension.h"
36 #include "chrome/common/property_bag.h" 36 #include "chrome/common/property_bag.h"
37 37
38 class ExtensionBrowserEventRouter; 38 class ExtensionBrowserEventRouter;
39 class ExtensionManagementEventRouter;
39 class ExtensionServiceBackend; 40 class ExtensionServiceBackend;
40 class ExtensionToolbarModel; 41 class ExtensionToolbarModel;
41 class ExtensionUpdater; 42 class ExtensionUpdater;
42 class GURL; 43 class GURL;
43 class Profile; 44 class Profile;
44 class Version; 45 class Version;
45 46
46 typedef bool (*ShouldInstallExtensionPredicate)(const Extension&); 47 typedef bool (*ShouldInstallExtensionPredicate)(const Extension&);
47 48
48 // A pending extension is an extension that hasn't been installed yet 49 // A pending extension is an extension that hasn't been installed yet
(...skipping 563 matching lines...) Expand 10 before | Expand all | Expand 10 after
612 ProtectedStorageMap protected_storage_map_; 613 ProtectedStorageMap protected_storage_map_;
613 614
614 // Manages the installation of default apps and the promotion of them in the 615 // Manages the installation of default apps and the promotion of them in the
615 // app launcher. 616 // app launcher.
616 DefaultApps default_apps_; 617 DefaultApps default_apps_;
617 618
618 // Flag to make sure event routers are only initialized once. 619 // Flag to make sure event routers are only initialized once.
619 bool event_routers_initialized_; 620 bool event_routers_initialized_;
620 621
621 scoped_ptr<ExtensionBrowserEventRouter> browser_event_router_; 622 scoped_ptr<ExtensionBrowserEventRouter> browser_event_router_;
623 scoped_ptr<ExtensionManagementEventRouter> management_event_router_;
622 624
623 // A collection of external extension providers. Each provider reads 625 // A collection of external extension providers. Each provider reads
624 // a source of external extension information. Examples include the 626 // a source of external extension information. Examples include the
625 // windows registry and external_extensions.json. 627 // windows registry and external_extensions.json.
626 ProviderCollection external_extension_providers_; 628 ProviderCollection external_extension_providers_;
627 629
628 // Set to true by OnExternalExtensionUpdateUrlFound() when an external 630 // Set to true by OnExternalExtensionUpdateUrlFound() when an external
629 // extension URL is found. Used in CheckForExternalUpdates() to see 631 // extension URL is found. Used in CheckForExternalUpdates() to see
630 // if an update check is needed to install pending extensions. 632 // if an update check is needed to install pending extensions.
631 bool external_extension_url_added_; 633 bool external_extension_url_added_;
632 634
633 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, 635 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest,
634 UpdatePendingExtensionAlreadyInstalled); 636 UpdatePendingExtensionAlreadyInstalled);
635 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, 637 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest,
636 InstallAppsWithUnlimtedStorage); 638 InstallAppsWithUnlimtedStorage);
637 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, 639 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest,
638 InstallAppsAndCheckStorageProtection); 640 InstallAppsAndCheckStorageProtection);
639 DISALLOW_COPY_AND_ASSIGN(ExtensionService); 641 DISALLOW_COPY_AND_ASSIGN(ExtensionService);
640 }; 642 };
641 643
642 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_ 644 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_
OLDNEW
« no previous file with comments | « chrome/browser/extensions/extension_management_api_browsertest.cc ('k') | chrome/browser/extensions/extension_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698