| OLD | NEW |
| 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 <set> | 10 #include <set> |
| 11 #include <string> | 11 #include <string> |
| 12 #include <vector> | 12 #include <vector> |
| 13 | 13 |
| 14 #include "base/compiler_specific.h" | 14 #include "base/compiler_specific.h" |
| 15 #include "base/files/file_path.h" | 15 #include "base/files/file_path.h" |
| 16 #include "base/gtest_prod_util.h" | 16 #include "base/gtest_prod_util.h" |
| 17 #include "base/memory/ref_counted.h" | 17 #include "base/memory/ref_counted.h" |
| 18 #include "base/memory/weak_ptr.h" | 18 #include "base/memory/weak_ptr.h" |
| 19 #include "base/prefs/pref_change_registrar.h" | 19 #include "base/prefs/pref_change_registrar.h" |
| 20 #include "base/strings/string16.h" | 20 #include "base/strings/string16.h" |
| 21 #include "chrome/browser/extensions/blacklist.h" | 21 #include "chrome/browser/extensions/blacklist.h" |
| 22 #include "chrome/browser/extensions/extension_sync_service.h" | |
| 23 #include "chrome/common/extensions/extension_constants.h" | 22 #include "chrome/common/extensions/extension_constants.h" |
| 24 #include "content/public/browser/devtools_agent_host.h" | 23 #include "content/public/browser/devtools_agent_host.h" |
| 25 #include "content/public/browser/notification_observer.h" | 24 #include "content/public/browser/notification_observer.h" |
| 26 #include "content/public/browser/notification_registrar.h" | 25 #include "content/public/browser/notification_registrar.h" |
| 27 #include "extensions/browser/extension_function_histogram_value.h" | 26 #include "extensions/browser/extension_function_histogram_value.h" |
| 28 #include "extensions/browser/extension_prefs.h" | 27 #include "extensions/browser/extension_prefs.h" |
| 29 #include "extensions/browser/external_provider_interface.h" | 28 #include "extensions/browser/external_provider_interface.h" |
| 30 #include "extensions/browser/management_policy.h" | 29 #include "extensions/browser/management_policy.h" |
| 31 #include "extensions/browser/pending_extension_manager.h" | 30 #include "extensions/browser/pending_extension_manager.h" |
| 32 #include "extensions/browser/process_manager.h" | 31 #include "extensions/browser/process_manager.h" |
| (...skipping 24 matching lines...) Expand all Loading... |
| 57 class ExtensionSystem; | 56 class ExtensionSystem; |
| 58 class ExtensionUpdater; | 57 class ExtensionUpdater; |
| 59 class PendingExtensionManager; | 58 class PendingExtensionManager; |
| 60 class RendererStartupHelper; | 59 class RendererStartupHelper; |
| 61 class UpdateObserver; | 60 class UpdateObserver; |
| 62 } // namespace extensions | 61 } // namespace extensions |
| 63 | 62 |
| 64 using extensions::ExtensionIdSet; | 63 using extensions::ExtensionIdSet; |
| 65 | 64 |
| 66 namespace syncer { | 65 namespace syncer { |
| 66 class ExtensionSyncService; |
| 67 class SyncErrorFactory; | 67 class SyncErrorFactory; |
| 68 } | 68 } |
| 69 | 69 |
| 70 // This is an interface class to encapsulate the dependencies that | 70 // This is an interface class to encapsulate the dependencies that |
| 71 // various classes have on ExtensionService. This allows easy mocking. | 71 // various classes have on ExtensionService. This allows easy mocking. |
| 72 class ExtensionServiceInterface | 72 class ExtensionServiceInterface |
| 73 : public base::SupportsWeakPtr<ExtensionServiceInterface> { | 73 : public base::SupportsWeakPtr<ExtensionServiceInterface> { |
| 74 public: | 74 public: |
| 75 virtual ~ExtensionServiceInterface() {} | 75 virtual ~ExtensionServiceInterface() {} |
| 76 | 76 |
| (...skipping 765 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 842 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, | 842 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, |
| 843 GreylistedExtensionDisabled); | 843 GreylistedExtensionDisabled); |
| 844 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, | 844 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, |
| 845 GreylistDontEnableManuallyDisabled); | 845 GreylistDontEnableManuallyDisabled); |
| 846 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, | 846 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, |
| 847 GreylistUnknownDontChange); | 847 GreylistUnknownDontChange); |
| 848 DISALLOW_COPY_AND_ASSIGN(ExtensionService); | 848 DISALLOW_COPY_AND_ASSIGN(ExtensionService); |
| 849 }; | 849 }; |
| 850 | 850 |
| 851 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_ | 851 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_ |
| OLD | NEW |