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

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

Issue 8800016: Exempt default apps from external-extension alerts. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Suggestions from Roger. Created 9 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #pragma once 7 #pragma once
8 8
9 #include <list> 9 #include <list>
10 #include <map> 10 #include <map>
(...skipping 487 matching lines...) Expand 10 before | Expand all | Expand 10 after
498 498
499 // Adds an ExternalExtensionProviderInterface for the service to use during 499 // Adds an ExternalExtensionProviderInterface for the service to use during
500 // testing. Takes ownership of |test_provider|. 500 // testing. Takes ownership of |test_provider|.
501 void AddProviderForTesting(ExternalExtensionProviderInterface* test_provider); 501 void AddProviderForTesting(ExternalExtensionProviderInterface* test_provider);
502 502
503 // ExternalExtensionProvider::Visitor implementation. 503 // ExternalExtensionProvider::Visitor implementation.
504 virtual void OnExternalExtensionFileFound(const std::string& id, 504 virtual void OnExternalExtensionFileFound(const std::string& id,
505 const Version* version, 505 const Version* version,
506 const FilePath& path, 506 const FilePath& path,
507 Extension::Location location, 507 Extension::Location location,
508 int creation_flags) 508 int creation_flags,
509 bool mark_acknowledged)
509 OVERRIDE; 510 OVERRIDE;
510 511
511 virtual void OnExternalExtensionUpdateUrlFound(const std::string& id, 512 virtual void OnExternalExtensionUpdateUrlFound(const std::string& id,
512 const GURL& update_url, 513 const GURL& update_url,
513 Extension::Location location) 514 Extension::Location location)
514 OVERRIDE; 515 OVERRIDE;
515 516
516 virtual void OnExternalProviderReady( 517 virtual void OnExternalProviderReady(
517 const ExternalExtensionProviderInterface* provider) OVERRIDE; 518 const ExternalExtensionProviderInterface* provider) OVERRIDE;
518 519
519 void OnAllExternalProvidersReady(); 520 void OnAllExternalProvidersReady();
520 521
521 // Once all external providers are done, generates any needed alerts about 522 // Once all external providers are done, generates any needed alerts about
522 // extensions. 523 // extensions.
523 void IdentifyAlertableExtensions(); 524 void IdentifyAlertableExtensions();
524 525
525 // Marks alertable extensions as acknowledged, after the user presses the 526 // Marks alertable extensions as acknowledged, after the user presses the
526 // accept button. 527 // accept button.
527 void HandleExtensionAlertAccept(const ExtensionGlobalError& global_error, 528 void HandleExtensionAlertAccept(const ExtensionGlobalError& global_error,
528 Browser* browser); 529 Browser* browser);
529 530
531 // Given a (presumably just-installed) extension id, mark that extension as
532 // acknowledged.
533 void AcknowledgeExternalExtension(const std::string& id);
534
530 // Opens the Extensions page because the user wants to get more details 535 // Opens the Extensions page because the user wants to get more details
531 // about the alerts. 536 // about the alerts.
532 void HandleExtensionAlertDetails(const ExtensionGlobalError& global_error, 537 void HandleExtensionAlertDetails(const ExtensionGlobalError& global_error,
533 Browser* browser); 538 Browser* browser);
534 539
535 // Displays the extension alert in the last-active browser window. 540 // Displays the extension alert in the last-active browser window.
536 void ShowExtensionAlert(ExtensionGlobalError* global_error); 541 void ShowExtensionAlert(ExtensionGlobalError* global_error);
537 542
538 // content::NotificationObserver 543 // content::NotificationObserver
539 virtual void Observe(int type, 544 virtual void Observe(int type,
(...skipping 279 matching lines...) Expand 10 before | Expand all | Expand 10 after
819 extensions::ProcessMap process_map_; 824 extensions::ProcessMap process_map_;
820 825
821 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, 826 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest,
822 InstallAppsWithUnlimtedStorage); 827 InstallAppsWithUnlimtedStorage);
823 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, 828 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest,
824 InstallAppsAndCheckStorageProtection); 829 InstallAppsAndCheckStorageProtection);
825 DISALLOW_COPY_AND_ASSIGN(ExtensionService); 830 DISALLOW_COPY_AND_ASSIGN(ExtensionService);
826 }; 831 };
827 832
828 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_ 833 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_
OLDNEW
« no previous file with comments | « chrome/browser/extensions/default_apps.cc ('k') | chrome/browser/extensions/extension_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698