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> |
(...skipping 30 matching lines...) Expand all Loading... |
41 #include "sync/api/string_ordinal.h" | 41 #include "sync/api/string_ordinal.h" |
42 #include "sync/api/sync_change.h" | 42 #include "sync/api/sync_change.h" |
43 #include "sync/api/syncable_service.h" | 43 #include "sync/api/syncable_service.h" |
44 | 44 |
45 class CommandLine; | 45 class CommandLine; |
46 class ExtensionErrorUI; | 46 class ExtensionErrorUI; |
47 class ExtensionSyncData; | 47 class ExtensionSyncData; |
48 class ExtensionToolbarModel; | 48 class ExtensionToolbarModel; |
49 class GURL; | 49 class GURL; |
50 class Profile; | 50 class Profile; |
51 class Version; | |
52 | 51 |
53 namespace base { | 52 namespace base { |
54 class SequencedTaskRunner; | 53 class SequencedTaskRunner; |
| 54 class Version; |
55 } | 55 } |
56 | 56 |
57 namespace extensions { | 57 namespace extensions { |
58 class AppSyncData; | 58 class AppSyncData; |
59 class BrowserEventRouter; | 59 class BrowserEventRouter; |
60 class ComponentLoader; | 60 class ComponentLoader; |
61 class ContentSettingsStore; | 61 class ContentSettingsStore; |
62 class CrxInstaller; | 62 class CrxInstaller; |
63 class ExtensionActionStorageManager; | 63 class ExtensionActionStorageManager; |
64 class ExtensionSyncData; | 64 class ExtensionSyncData; |
(...skipping 501 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
566 void ClearProvidersForTesting(); | 566 void ClearProvidersForTesting(); |
567 | 567 |
568 // Adds an ExternalProviderInterface for the service to use during testing. | 568 // Adds an ExternalProviderInterface for the service to use during testing. |
569 // Takes ownership of |test_provider|. | 569 // Takes ownership of |test_provider|. |
570 void AddProviderForTesting( | 570 void AddProviderForTesting( |
571 extensions::ExternalProviderInterface* test_provider); | 571 extensions::ExternalProviderInterface* test_provider); |
572 | 572 |
573 // ExternalProvider::Visitor implementation. | 573 // ExternalProvider::Visitor implementation. |
574 virtual bool OnExternalExtensionFileFound( | 574 virtual bool OnExternalExtensionFileFound( |
575 const std::string& id, | 575 const std::string& id, |
576 const Version* version, | 576 const base::Version* version, |
577 const base::FilePath& path, | 577 const base::FilePath& path, |
578 extensions::Manifest::Location location, | 578 extensions::Manifest::Location location, |
579 int creation_flags, | 579 int creation_flags, |
580 bool mark_acknowledged) OVERRIDE; | 580 bool mark_acknowledged) OVERRIDE; |
581 | 581 |
582 virtual bool OnExternalExtensionUpdateUrlFound( | 582 virtual bool OnExternalExtensionUpdateUrlFound( |
583 const std::string& id, | 583 const std::string& id, |
584 const GURL& update_url, | 584 const GURL& update_url, |
585 extensions::Manifest::Location location) OVERRIDE; | 585 extensions::Manifest::Location location) OVERRIDE; |
586 | 586 |
(...skipping 401 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
988 ObserverList<extensions::UpdateObserver, true> update_observers_; | 988 ObserverList<extensions::UpdateObserver, true> update_observers_; |
989 | 989 |
990 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, | 990 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, |
991 InstallAppsWithUnlimtedStorage); | 991 InstallAppsWithUnlimtedStorage); |
992 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, | 992 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, |
993 InstallAppsAndCheckStorageProtection); | 993 InstallAppsAndCheckStorageProtection); |
994 DISALLOW_COPY_AND_ASSIGN(ExtensionService); | 994 DISALLOW_COPY_AND_ASSIGN(ExtensionService); |
995 }; | 995 }; |
996 | 996 |
997 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_ | 997 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_ |
OLD | NEW |