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

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

Issue 49253005: Fetch extension blacklist states from SafeBrowsing server (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years 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 362 matching lines...) Expand 10 before | Expand all | Expand 10 after
373 // 373 //
374 // |page_ordinal| is the location of the extension in the app launcher. 374 // |page_ordinal| is the location of the extension in the app launcher.
375 // |has_requirement_errors| is true if requirements of the extension weren't 375 // |has_requirement_errors| is true if requirements of the extension weren't
376 // met (for example graphics capabilities). 376 // met (for example graphics capabilities).
377 // |blacklist_state| will be BLACKLISTED if the extension is blacklisted. 377 // |blacklist_state| will be BLACKLISTED if the extension is blacklisted.
378 // |wait_for_idle| may be false to install the extension immediately. 378 // |wait_for_idle| may be false to install the extension immediately.
379 void OnExtensionInstalled( 379 void OnExtensionInstalled(
380 const extensions::Extension* extension, 380 const extensions::Extension* extension,
381 const syncer::StringOrdinal& page_ordinal, 381 const syncer::StringOrdinal& page_ordinal,
382 bool has_requirement_errors, 382 bool has_requirement_errors,
383 extensions::Blacklist::BlacklistState blacklist_state, 383 extensions::BlacklistState blacklist_state,
384 bool wait_for_idle); 384 bool wait_for_idle);
385 385
386 // Checks for delayed installation for all pending installs. 386 // Checks for delayed installation for all pending installs.
387 void MaybeFinishDelayedInstallations(); 387 void MaybeFinishDelayedInstallations();
388 388
389 // Similar to FinishInstallation, but first checks if there still is an update 389 // Similar to FinishInstallation, but first checks if there still is an update
390 // pending for the extension, and makes sure the extension is still idle. 390 // pending for the extension, and makes sure the extension is still idle.
391 void MaybeFinishDelayedInstallation(const std::string& extension_id); 391 void MaybeFinishDelayedInstallation(const std::string& extension_id);
392 392
393 // Finishes installation of an update for an extension with the specified id, 393 // Finishes installation of an update for an extension with the specified id,
(...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after
635 // terminated extensions if it is there. 635 // terminated extensions if it is there.
636 void UntrackTerminatedExtension(const std::string& id); 636 void UntrackTerminatedExtension(const std::string& id);
637 637
638 // Update preferences for a new or updated extension; notify observers that 638 // Update preferences for a new or updated extension; notify observers that
639 // the extension is installed, e.g., to update event handlers on background 639 // the extension is installed, e.g., to update event handlers on background
640 // pages; and perform other extension install tasks before calling 640 // pages; and perform other extension install tasks before calling
641 // AddExtension. 641 // AddExtension.
642 void AddNewOrUpdatedExtension( 642 void AddNewOrUpdatedExtension(
643 const extensions::Extension* extension, 643 const extensions::Extension* extension,
644 extensions::Extension::State initial_state, 644 extensions::Extension::State initial_state,
645 extensions::Blacklist::BlacklistState blacklist_state, 645 extensions::BlacklistState blacklist_state,
646 const syncer::StringOrdinal& page_ordinal); 646 const syncer::StringOrdinal& page_ordinal);
647 647
648 // Handles sending notification that |extension| was loaded. 648 // Handles sending notification that |extension| was loaded.
649 void NotifyExtensionLoaded(const extensions::Extension* extension); 649 void NotifyExtensionLoaded(const extensions::Extension* extension);
650 650
651 // Handles sending notification that |extension| was unloaded. 651 // Handles sending notification that |extension| was unloaded.
652 void NotifyExtensionUnloaded( 652 void NotifyExtensionUnloaded(
653 const extensions::Extension* extension, 653 const extensions::Extension* extension,
654 extensions::UnloadedExtensionInfo::Reason reason); 654 extensions::UnloadedExtensionInfo::Reason reason);
655 655
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after
844 #endif 844 #endif
845 845
846 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, 846 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest,
847 InstallAppsWithUnlimtedStorage); 847 InstallAppsWithUnlimtedStorage);
848 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, 848 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest,
849 InstallAppsAndCheckStorageProtection); 849 InstallAppsAndCheckStorageProtection);
850 DISALLOW_COPY_AND_ASSIGN(ExtensionService); 850 DISALLOW_COPY_AND_ASSIGN(ExtensionService);
851 }; 851 };
852 852
853 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_ 853 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698