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

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

Issue 12093036: Move Extension Location and Type enums to Manifest, and move InstallWarning to its own file. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 10 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 <set> 10 #include <set>
(...skipping 17 matching lines...) Expand all
28 #include "chrome/browser/extensions/extension_sync_bundle.h" 28 #include "chrome/browser/extensions/extension_sync_bundle.h"
29 #include "chrome/browser/extensions/extension_toolbar_model.h" 29 #include "chrome/browser/extensions/extension_toolbar_model.h"
30 #include "chrome/browser/extensions/extensions_quota_service.h" 30 #include "chrome/browser/extensions/extensions_quota_service.h"
31 #include "chrome/browser/extensions/external_provider_interface.h" 31 #include "chrome/browser/extensions/external_provider_interface.h"
32 #include "chrome/browser/extensions/menu_manager.h" 32 #include "chrome/browser/extensions/menu_manager.h"
33 #include "chrome/browser/extensions/pending_extension_manager.h" 33 #include "chrome/browser/extensions/pending_extension_manager.h"
34 #include "chrome/browser/extensions/process_map.h" 34 #include "chrome/browser/extensions/process_map.h"
35 #include "chrome/common/extensions/extension.h" 35 #include "chrome/common/extensions/extension.h"
36 #include "chrome/common/extensions/extension_constants.h" 36 #include "chrome/common/extensions/extension_constants.h"
37 #include "chrome/common/extensions/extension_set.h" 37 #include "chrome/common/extensions/extension_set.h"
38 #include "chrome/common/extensions/manifest.h"
38 #include "content/public/browser/notification_observer.h" 39 #include "content/public/browser/notification_observer.h"
39 #include "content/public/browser/notification_registrar.h" 40 #include "content/public/browser/notification_registrar.h"
40 #include "sync/api/string_ordinal.h" 41 #include "sync/api/string_ordinal.h"
41 #include "sync/api/sync_change.h" 42 #include "sync/api/sync_change.h"
42 #include "sync/api/syncable_service.h" 43 #include "sync/api/syncable_service.h"
43 44
44 class CommandLine; 45 class CommandLine;
45 class ExtensionErrorUI; 46 class ExtensionErrorUI;
46 class ExtensionSyncData; 47 class ExtensionSyncData;
47 class ExtensionToolbarModel; 48 class ExtensionToolbarModel;
(...skipping 539 matching lines...) Expand 10 before | Expand all | Expand 10 after
587 // Adds an ExternalProviderInterface for the service to use during testing. 588 // Adds an ExternalProviderInterface for the service to use during testing.
588 // Takes ownership of |test_provider|. 589 // Takes ownership of |test_provider|.
589 void AddProviderForTesting( 590 void AddProviderForTesting(
590 extensions::ExternalProviderInterface* test_provider); 591 extensions::ExternalProviderInterface* test_provider);
591 592
592 // ExternalProvider::Visitor implementation. 593 // ExternalProvider::Visitor implementation.
593 virtual bool OnExternalExtensionFileFound( 594 virtual bool OnExternalExtensionFileFound(
594 const std::string& id, 595 const std::string& id,
595 const Version* version, 596 const Version* version,
596 const FilePath& path, 597 const FilePath& path,
597 extensions::Extension::Location location, 598 extensions::Manifest::Location location,
598 int creation_flags, 599 int creation_flags,
599 bool mark_acknowledged) OVERRIDE; 600 bool mark_acknowledged) OVERRIDE;
600 601
601 virtual bool OnExternalExtensionUpdateUrlFound( 602 virtual bool OnExternalExtensionUpdateUrlFound(
602 const std::string& id, 603 const std::string& id,
603 const GURL& update_url, 604 const GURL& update_url,
604 extensions::Extension::Location location) OVERRIDE; 605 extensions::Manifest::Location location) OVERRIDE;
605 606
606 virtual void OnExternalProviderReady( 607 virtual void OnExternalProviderReady(
607 const extensions::ExternalProviderInterface* provider) OVERRIDE; 608 const extensions::ExternalProviderInterface* provider) OVERRIDE;
608 609
609 // Returns true when all the external extension providers are ready. 610 // Returns true when all the external extension providers are ready.
610 bool AreAllExternalProvidersReady() const; 611 bool AreAllExternalProvidersReady() const;
611 612
612 void OnAllExternalProvidersReady(); 613 void OnAllExternalProvidersReady();
613 614
614 // Once all external providers are done, generates any needed alerts about 615 // Once all external providers are done, generates any needed alerts about
(...skipping 387 matching lines...) Expand 10 before | Expand all | Expand 10 after
1002 #endif 1003 #endif
1003 1004
1004 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, 1005 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest,
1005 InstallAppsWithUnlimtedStorage); 1006 InstallAppsWithUnlimtedStorage);
1006 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, 1007 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest,
1007 InstallAppsAndCheckStorageProtection); 1008 InstallAppsAndCheckStorageProtection);
1008 DISALLOW_COPY_AND_ASSIGN(ExtensionService); 1009 DISALLOW_COPY_AND_ASSIGN(ExtensionService);
1009 }; 1010 };
1010 1011
1011 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_ 1012 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_
OLDNEW
« no previous file with comments | « chrome/browser/extensions/extension_protocols_unittest.cc ('k') | chrome/browser/extensions/extension_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698