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

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

Issue 10407105: Improve error messaging of webRequest API in case of conflicts (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merged with ToT Created 8 years, 3 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 #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 7
8 #include <list> 8 #include <list>
9 #include <map> 9 #include <map>
10 #include <string> 10 #include <string>
(...skipping 602 matching lines...) Expand 10 before | Expand all | Expand 10 after
613 // need to be made more efficient. 613 // need to be made more efficient.
614 static void RecordPermissionMessagesHistogram( 614 static void RecordPermissionMessagesHistogram(
615 const extensions::Extension* e, const char* histogram); 615 const extensions::Extension* e, const char* histogram);
616 616
617 #if defined(UNIT_TEST) 617 #if defined(UNIT_TEST)
618 void TrackTerminatedExtensionForTest(const extensions::Extension* extension) { 618 void TrackTerminatedExtensionForTest(const extensions::Extension* extension) {
619 TrackTerminatedExtension(extension); 619 TrackTerminatedExtension(extension);
620 } 620 }
621 #endif 621 #endif
622 622
623 ExtensionWarningSet* extension_warnings() { 623 ExtensionWarningService* extension_warnings() {
Aaron Boodman 2012/09/05 08:11:11 Should be a member of ExtensionSystem, not Extensi
battre 2012/09/06 14:25:48 Done.
624 return &extension_warnings_; 624 return &extension_warnings_;
625 } 625 }
626 626
627 extensions::AppShortcutManager* app_shortcut_manager() { 627 extensions::AppShortcutManager* app_shortcut_manager() {
628 return &app_shortcut_manager_; 628 return &app_shortcut_manager_;
629 } 629 }
630 630
631 // Specialization of syncer::SyncableService::AsWeakPtr. 631 // Specialization of syncer::SyncableService::AsWeakPtr.
632 base::WeakPtr<ExtensionService> AsWeakPtr() { return base::AsWeakPtr(this); } 632 base::WeakPtr<ExtensionService> AsWeakPtr() { return base::AsWeakPtr(this); }
633 633
(...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after
858 // OnAllExternalProvidersReady() to determine if an update check is needed to 858 // OnAllExternalProvidersReady() to determine if an update check is needed to
859 // install pending extensions. 859 // install pending extensions.
860 bool update_once_all_providers_are_ready_; 860 bool update_once_all_providers_are_ready_;
861 861
862 NaClModuleInfoList nacl_module_list_; 862 NaClModuleInfoList nacl_module_list_;
863 863
864 extensions::AppSyncBundle app_sync_bundle_; 864 extensions::AppSyncBundle app_sync_bundle_;
865 extensions::ExtensionSyncBundle extension_sync_bundle_; 865 extensions::ExtensionSyncBundle extension_sync_bundle_;
866 866
867 // Contains an entry for each warning that shall be currently shown. 867 // Contains an entry for each warning that shall be currently shown.
868 ExtensionWarningSet extension_warnings_; 868 ExtensionWarningService extension_warnings_;
869 869
870 extensions::ProcessMap process_map_; 870 extensions::ProcessMap process_map_;
871 871
872 extensions::AppShortcutManager app_shortcut_manager_; 872 extensions::AppShortcutManager app_shortcut_manager_;
873 873
874 scoped_ptr<ExtensionErrorUI> extension_error_ui_; 874 scoped_ptr<ExtensionErrorUI> extension_error_ui_;
875 875
876 #if defined(ENABLE_EXTENSIONS) 876 #if defined(ENABLE_EXTENSIONS)
877 scoped_ptr<extensions::ExtensionActionStorageManager> 877 scoped_ptr<extensions::ExtensionActionStorageManager>
878 extension_action_storage_manager_; 878 extension_action_storage_manager_;
879 #endif 879 #endif
880 880
881 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, 881 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest,
882 InstallAppsWithUnlimtedStorage); 882 InstallAppsWithUnlimtedStorage);
883 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, 883 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest,
884 InstallAppsAndCheckStorageProtection); 884 InstallAppsAndCheckStorageProtection);
885 DISALLOW_COPY_AND_ASSIGN(ExtensionService); 885 DISALLOW_COPY_AND_ASSIGN(ExtensionService);
886 }; 886 };
887 887
888 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_ 888 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698