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

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

Issue 10381097: Move content settings extension API to content_settings dir. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: fixed conflict Created 8 years, 7 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
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 #pragma once 7 #pragma once
8 8
9 #include <list> 9 #include <list>
10 #include <map> 10 #include <map>
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 #include "content/public/browser/browser_thread.h" 44 #include "content/public/browser/browser_thread.h"
45 #include "content/public/browser/notification_observer.h" 45 #include "content/public/browser/notification_observer.h"
46 #include "content/public/browser/notification_registrar.h" 46 #include "content/public/browser/notification_registrar.h"
47 #include "sync/api/sync_change.h" 47 #include "sync/api/sync_change.h"
48 #include "sync/api/syncable_service.h" 48 #include "sync/api/syncable_service.h"
49 49
50 class AppNotificationManager; 50 class AppNotificationManager;
51 class BookmarkExtensionEventRouter; 51 class BookmarkExtensionEventRouter;
52 class CrxInstaller; 52 class CrxInstaller;
53 class ExtensionBrowserEventRouter; 53 class ExtensionBrowserEventRouter;
54 class ExtensionContentSettingsStore;
55 class ExtensionDownloadsEventRouter; 54 class ExtensionDownloadsEventRouter;
56 class ExtensionFontSettingsEventRouter; 55 class ExtensionFontSettingsEventRouter;
57 class ExtensionGlobalError; 56 class ExtensionGlobalError;
58 class ExtensionManagedModeEventRouter; 57 class ExtensionManagedModeEventRouter;
59 class ExtensionManagementEventRouter; 58 class ExtensionManagementEventRouter;
60 class ExtensionPreferenceEventRouter; 59 class ExtensionPreferenceEventRouter;
61 class ExtensionSyncData; 60 class ExtensionSyncData;
62 class ExtensionSystem; 61 class ExtensionSystem;
63 class ExtensionToolbarModel; 62 class ExtensionToolbarModel;
64 class HistoryExtensionEventRouter; 63 class HistoryExtensionEventRouter;
65 class GURL; 64 class GURL;
66 class PendingExtensionManager; 65 class PendingExtensionManager;
67 class Profile; 66 class Profile;
68 class SyncData; 67 class SyncData;
69 class SyncErrorFactory; 68 class SyncErrorFactory;
70 class Version; 69 class Version;
71 70
72 namespace chromeos { 71 namespace chromeos {
73 class ExtensionBluetoothEventRouter; 72 class ExtensionBluetoothEventRouter;
74 class ExtensionInputMethodEventRouter; 73 class ExtensionInputMethodEventRouter;
75 } 74 }
76 75
77 namespace extensions { 76 namespace extensions {
78 class APIResourceController; 77 class APIResourceController;
79 class AppSyncData; 78 class AppSyncData;
80 class ComponentLoader; 79 class ComponentLoader;
80 class ContentSettingsStore;
81 class ExtensionCookiesEventRouter; 81 class ExtensionCookiesEventRouter;
82 class ExtensionSyncData; 82 class ExtensionSyncData;
83 class ExtensionUpdater; 83 class ExtensionUpdater;
84 class SettingsFrontend; 84 class SettingsFrontend;
85 class WebNavigationEventRouter; 85 class WebNavigationEventRouter;
86 } 86 }
87 87
88 // This is an interface class to encapsulate the dependencies that 88 // This is an interface class to encapsulate the dependencies that
89 // various classes have on ExtensionService. This allows easy mocking. 89 // various classes have on ExtensionService. This allows easy mocking.
90 class ExtensionServiceInterface : public SyncableService { 90 class ExtensionServiceInterface : public SyncableService {
(...skipping 375 matching lines...) Expand 10 before | Expand all | Expand 10 after
466 } 466 }
467 467
468 Profile* profile(); 468 Profile* profile();
469 469
470 // TODO(skerner): Change to const ExtensionPrefs& extension_prefs() const, 470 // TODO(skerner): Change to const ExtensionPrefs& extension_prefs() const,
471 // ExtensionPrefs* mutable_extension_prefs(). 471 // ExtensionPrefs* mutable_extension_prefs().
472 ExtensionPrefs* extension_prefs(); 472 ExtensionPrefs* extension_prefs();
473 473
474 extensions::SettingsFrontend* settings_frontend(); 474 extensions::SettingsFrontend* settings_frontend();
475 475
476 ExtensionContentSettingsStore* GetExtensionContentSettingsStore(); 476 extensions::ContentSettingsStore* GetContentSettingsStore();
477 477
478 // Whether the extension service is ready. 478 // Whether the extension service is ready.
479 virtual bool is_ready() OVERRIDE; 479 virtual bool is_ready() OVERRIDE;
480 480
481 extensions::ComponentLoader* component_loader() { 481 extensions::ComponentLoader* component_loader() {
482 return component_loader_.get(); 482 return component_loader_.get();
483 } 483 }
484 484
485 // Note that this may return NULL if autoupdate is not turned on. 485 // Note that this may return NULL if autoupdate is not turned on.
486 extensions::ExtensionUpdater* updater(); 486 extensions::ExtensionUpdater* updater();
(...skipping 359 matching lines...) Expand 10 before | Expand all | Expand 10 after
846 scoped_ptr<ExtensionGlobalError> extension_global_error_; 846 scoped_ptr<ExtensionGlobalError> extension_global_error_;
847 847
848 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, 848 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest,
849 InstallAppsWithUnlimtedStorage); 849 InstallAppsWithUnlimtedStorage);
850 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, 850 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest,
851 InstallAppsAndCheckStorageProtection); 851 InstallAppsAndCheckStorageProtection);
852 DISALLOW_COPY_AND_ASSIGN(ExtensionService); 852 DISALLOW_COPY_AND_ASSIGN(ExtensionService);
853 }; 853 };
854 854
855 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_ 855 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_
OLDNEW
« no previous file with comments | « chrome/browser/extensions/extension_prefs_unittest.cc ('k') | chrome/browser/extensions/extension_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698