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

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

Issue 8493017: Cleanup extension permissions module. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . 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 #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>
11 #include <string> 11 #include <string>
12 #include <vector> 12 #include <vector>
13 13
14 #include "base/command_line.h" 14 #include "base/command_line.h"
15 #include "base/compiler_specific.h" 15 #include "base/compiler_specific.h"
16 #include "base/file_path.h" 16 #include "base/file_path.h"
17 #include "base/gtest_prod_util.h" 17 #include "base/gtest_prod_util.h"
18 #include "base/memory/linked_ptr.h" 18 #include "base/memory/linked_ptr.h"
19 #include "base/memory/ref_counted.h" 19 #include "base/memory/ref_counted.h"
20 #include "base/memory/weak_ptr.h" 20 #include "base/memory/weak_ptr.h"
21 #include "base/time.h" 21 #include "base/time.h"
22 #include "base/tuple.h" 22 #include "base/tuple.h"
23 #include "chrome/browser/extensions/apps_promo.h" 23 #include "chrome/browser/extensions/apps_promo.h"
24 #include "chrome/browser/extensions/extension_icon_manager.h" 24 #include "chrome/browser/extensions/extension_icon_manager.h"
25 #include "chrome/browser/extensions/extension_menu_manager.h" 25 #include "chrome/browser/extensions/extension_menu_manager.h"
26 #include "chrome/browser/extensions/extension_permissions_api.h"
27 #include "chrome/browser/extensions/extension_prefs.h" 26 #include "chrome/browser/extensions/extension_prefs.h"
28 #include "chrome/browser/extensions/extension_process_manager.h" 27 #include "chrome/browser/extensions/extension_process_manager.h"
29 #include "chrome/browser/extensions/extension_settings_frontend.h" 28 #include "chrome/browser/extensions/extension_settings_frontend.h"
30 #include "chrome/browser/extensions/extension_sync_data.h" 29 #include "chrome/browser/extensions/extension_sync_data.h"
31 #include "chrome/browser/extensions/extension_toolbar_model.h" 30 #include "chrome/browser/extensions/extension_toolbar_model.h"
32 #include "chrome/browser/extensions/extension_warning_set.h" 31 #include "chrome/browser/extensions/extension_warning_set.h"
33 #include "chrome/browser/extensions/extensions_quota_service.h" 32 #include "chrome/browser/extensions/extensions_quota_service.h"
34 #include "chrome/browser/extensions/external_extension_provider_interface.h" 33 #include "chrome/browser/extensions/external_extension_provider_interface.h"
35 #include "chrome/browser/extensions/pending_extension_manager.h" 34 #include "chrome/browser/extensions/pending_extension_manager.h"
36 #include "chrome/browser/extensions/sandboxed_extension_unpacker.h" 35 #include "chrome/browser/extensions/sandboxed_extension_unpacker.h"
(...skipping 387 matching lines...) Expand 10 before | Expand all | Expand 10 after
424 ExtensionToolbarModel* toolbar_model() { return &toolbar_model_; } 423 ExtensionToolbarModel* toolbar_model() { return &toolbar_model_; }
425 424
426 ExtensionsQuotaService* quota_service() { return &quota_service_; } 425 ExtensionsQuotaService* quota_service() { return &quota_service_; }
427 426
428 ExtensionMenuManager* menu_manager() { return &menu_manager_; } 427 ExtensionMenuManager* menu_manager() { return &menu_manager_; }
429 428
430 AppNotificationManager* app_notification_manager() { 429 AppNotificationManager* app_notification_manager() {
431 return app_notification_manager_.get(); 430 return app_notification_manager_.get();
432 } 431 }
433 432
434 ExtensionPermissionsManager* permissions_manager() {
435 return &permissions_manager_;
436 }
437
438 ExtensionBrowserEventRouter* browser_event_router() { 433 ExtensionBrowserEventRouter* browser_event_router() {
439 return browser_event_router_.get(); 434 return browser_event_router_.get();
440 } 435 }
441 436
442 #if defined(OS_CHROMEOS) 437 #if defined(OS_CHROMEOS)
443 ExtensionFileBrowserEventRouter* file_browser_event_router() { 438 ExtensionFileBrowserEventRouter* file_browser_event_router() {
444 return file_browser_event_router_.get(); 439 return file_browser_event_router_.get();
445 } 440 }
446 chromeos::ExtensionInputMethodEventRouter* input_method_event_router() { 441 chromeos::ExtensionInputMethodEventRouter* input_method_event_router() {
447 return input_method_event_router_.get(); 442 return input_method_event_router_.get();
(...skipping 280 matching lines...) Expand 10 before | Expand all | Expand 10 after
728 723
729 // Keeps track of loading and unloading component extensions. 724 // Keeps track of loading and unloading component extensions.
730 scoped_ptr<extensions::ComponentLoader> component_loader_; 725 scoped_ptr<extensions::ComponentLoader> component_loader_;
731 726
732 // Keeps track of menu items added by extensions. 727 // Keeps track of menu items added by extensions.
733 ExtensionMenuManager menu_manager_; 728 ExtensionMenuManager menu_manager_;
734 729
735 // Keeps track of app notifications. 730 // Keeps track of app notifications.
736 scoped_refptr<AppNotificationManager> app_notification_manager_; 731 scoped_refptr<AppNotificationManager> app_notification_manager_;
737 732
738 // Keeps track of extension permissions.
739 ExtensionPermissionsManager permissions_manager_;
740
741 // Keeps track of favicon-sized omnibox icons for extensions. 733 // Keeps track of favicon-sized omnibox icons for extensions.
742 ExtensionIconManager omnibox_icon_manager_; 734 ExtensionIconManager omnibox_icon_manager_;
743 ExtensionIconManager omnibox_popup_icon_manager_; 735 ExtensionIconManager omnibox_popup_icon_manager_;
744 736
745 // Manages the promotion of the web store. 737 // Manages the promotion of the web store.
746 AppsPromo apps_promo_; 738 AppsPromo apps_promo_;
747 739
748 // Flag to make sure event routers are only initialized once. 740 // Flag to make sure event routers are only initialized once.
749 bool event_routers_initialized_; 741 bool event_routers_initialized_;
750 742
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
789 ExtensionWarningSet extension_warnings_; 781 ExtensionWarningSet extension_warnings_;
790 782
791 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, 783 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest,
792 InstallAppsWithUnlimtedStorage); 784 InstallAppsWithUnlimtedStorage);
793 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, 785 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest,
794 InstallAppsAndCheckStorageProtection); 786 InstallAppsAndCheckStorageProtection);
795 DISALLOW_COPY_AND_ASSIGN(ExtensionService); 787 DISALLOW_COPY_AND_ASSIGN(ExtensionService);
796 }; 788 };
797 789
798 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_ 790 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698