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

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

Issue 398083002: Add "UninstallReason" parameter to ExtensionRegistryObserver::OnExtensionUninstalled. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix header file. Created 6 years, 5 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_EXTERNAL_INSTALL_MANAGER_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTERNAL_INSTALL_MANAGER_H_
6 #define CHROME_BROWSER_EXTENSIONS_EXTERNAL_INSTALL_MANAGER_H_ 6 #define CHROME_BROWSER_EXTENSIONS_EXTERNAL_INSTALL_MANAGER_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "base/scoped_observer.h" 10 #include "base/scoped_observer.h"
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 // Returns a mutable copy of the error for testing purposes. 54 // Returns a mutable copy of the error for testing purposes.
55 ExternalInstallError* error_for_testing() { return error_.get(); } 55 ExternalInstallError* error_for_testing() { return error_.get(); }
56 56
57 private: 57 private:
58 // ExtensionRegistryObserver implementation. 58 // ExtensionRegistryObserver implementation.
59 virtual void OnExtensionLoaded(content::BrowserContext* browser_context, 59 virtual void OnExtensionLoaded(content::BrowserContext* browser_context,
60 const Extension* extension) OVERRIDE; 60 const Extension* extension) OVERRIDE;
61 virtual void OnExtensionInstalled(content::BrowserContext* browser_context, 61 virtual void OnExtensionInstalled(content::BrowserContext* browser_context,
62 const Extension* extension, 62 const Extension* extension,
63 bool is_update) OVERRIDE; 63 bool is_update) OVERRIDE;
64 virtual void OnExtensionUninstalled(content::BrowserContext* browser_context, 64 virtual void OnExtensionUninstalled(
65 const Extension* extension) OVERRIDE; 65 content::BrowserContext* browser_context,
66 const Extension* extension,
67 extensions::UninstallReason reason) OVERRIDE;
66 68
67 // content::NotificationObserver implementation. 69 // content::NotificationObserver implementation.
68 virtual void Observe(int type, 70 virtual void Observe(int type,
69 const content::NotificationSource& source, 71 const content::NotificationSource& source,
70 const content::NotificationDetails& details) OVERRIDE; 72 const content::NotificationDetails& details) OVERRIDE;
71 73
72 // Adds a global error informing the user that an external extension was 74 // Adds a global error informing the user that an external extension was
73 // installed. If |is_new_profile| is true, then this error is from the first 75 // installed. If |is_new_profile| is true, then this error is from the first
74 // time our profile checked for new extensions. 76 // time our profile checked for new extensions.
75 void AddExternalInstallError(const Extension* extension, bool is_new_profile); 77 void AddExternalInstallError(const Extension* extension, bool is_new_profile);
(...skipping 18 matching lines...) Expand all
94 96
95 ScopedObserver<ExtensionRegistry, ExtensionRegistryObserver> 97 ScopedObserver<ExtensionRegistry, ExtensionRegistryObserver>
96 extension_registry_observer_; 98 extension_registry_observer_;
97 99
98 DISALLOW_COPY_AND_ASSIGN(ExternalInstallManager); 100 DISALLOW_COPY_AND_ASSIGN(ExternalInstallManager);
99 }; 101 };
100 102
101 } // namespace extensions 103 } // namespace extensions
102 104
103 #endif // CHROME_BROWSER_EXTENSIONS_EXTERNAL_INSTALL_MANAGER_H_ 105 #endif // CHROME_BROWSER_EXTENSIONS_EXTERNAL_INSTALL_MANAGER_H_
OLDNEW
« no previous file with comments | « chrome/browser/extensions/external_install_error.cc ('k') | chrome/browser/extensions/external_install_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698