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

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

Issue 196663003: Introduce an extension parameter which is used to customize the extension. It's available for exter… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Modified test parameters Created 6 years, 9 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 434 matching lines...) Expand 10 before | Expand all | Expand 10 after
445 virtual bool OnExternalExtensionFileFound( 445 virtual bool OnExternalExtensionFileFound(
446 const std::string& id, 446 const std::string& id,
447 const base::Version* version, 447 const base::Version* version,
448 const base::FilePath& path, 448 const base::FilePath& path,
449 extensions::Manifest::Location location, 449 extensions::Manifest::Location location,
450 int creation_flags, 450 int creation_flags,
451 bool mark_acknowledged) OVERRIDE; 451 bool mark_acknowledged) OVERRIDE;
452 452
453 virtual bool OnExternalExtensionUpdateUrlFound( 453 virtual bool OnExternalExtensionUpdateUrlFound(
454 const std::string& id, 454 const std::string& id,
455 const std::string& install_parameter,
455 const GURL& update_url, 456 const GURL& update_url,
456 extensions::Manifest::Location location, 457 extensions::Manifest::Location location,
457 int creation_flags, 458 int creation_flags,
458 bool mark_acknowledged) OVERRIDE; 459 bool mark_acknowledged) OVERRIDE;
459 460
460 virtual void OnExternalProviderReady( 461 virtual void OnExternalProviderReady(
461 const extensions::ExternalProviderInterface* provider) OVERRIDE; 462 const extensions::ExternalProviderInterface* provider) OVERRIDE;
462 463
463 // Returns true when all the external extension providers are ready. 464 // Returns true when all the external extension providers are ready.
464 bool AreAllExternalProvidersReady() const; 465 bool AreAllExternalProvidersReady() const;
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
582 void TrackTerminatedExtension(const extensions::Extension* extension); 583 void TrackTerminatedExtension(const extensions::Extension* extension);
583 584
584 // Removes the extension with the given id from the list of 585 // Removes the extension with the given id from the list of
585 // terminated extensions if it is there. 586 // terminated extensions if it is there.
586 void UntrackTerminatedExtension(const std::string& id); 587 void UntrackTerminatedExtension(const std::string& id);
587 588
588 // Update preferences for a new or updated extension; notify observers that 589 // Update preferences for a new or updated extension; notify observers that
589 // the extension is installed, e.g., to update event handlers on background 590 // the extension is installed, e.g., to update event handlers on background
590 // pages; and perform other extension install tasks before calling 591 // pages; and perform other extension install tasks before calling
591 // AddExtension. 592 // AddExtension.
592 void AddNewOrUpdatedExtension( 593 void AddNewOrUpdatedExtension(const extensions::Extension* extension,
593 const extensions::Extension* extension, 594 extensions::Extension::State initial_state,
594 extensions::Extension::State initial_state, 595 extensions::BlacklistState blacklist_state,
595 extensions::BlacklistState blacklist_state, 596 const syncer::StringOrdinal& page_ordinal,
596 const syncer::StringOrdinal& page_ordinal); 597 const std::string& install_parameter);
597 598
598 // Handles sending notification that |extension| was loaded. 599 // Handles sending notification that |extension| was loaded.
599 void NotifyExtensionLoaded(const extensions::Extension* extension); 600 void NotifyExtensionLoaded(const extensions::Extension* extension);
600 601
601 // Handles sending notification that |extension| was unloaded. 602 // Handles sending notification that |extension| was unloaded.
602 void NotifyExtensionUnloaded( 603 void NotifyExtensionUnloaded(
603 const extensions::Extension* extension, 604 const extensions::Extension* extension,
604 extensions::UnloadedExtensionInfo::Reason reason); 605 extensions::UnloadedExtensionInfo::Reason reason);
605 606
606 // Common helper to finish installing the given extension. 607 // Common helper to finish installing the given extension.
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after
813 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, 814 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest,
814 GreylistedExtensionDisabled); 815 GreylistedExtensionDisabled);
815 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, 816 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest,
816 GreylistDontEnableManuallyDisabled); 817 GreylistDontEnableManuallyDisabled);
817 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, 818 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest,
818 GreylistUnknownDontChange); 819 GreylistUnknownDontChange);
819 DISALLOW_COPY_AND_ASSIGN(ExtensionService); 820 DISALLOW_COPY_AND_ASSIGN(ExtensionService);
820 }; 821 };
821 822
822 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_ 823 #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