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

Side by Side Diff: extensions/browser/extension_system.h

Issue 2839373003: struct UnloadedExtensionInfo -> enum UnloadedExtensionInfoReason (Closed)
Patch Set: Rebase Created 3 years, 7 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 EXTENSIONS_BROWSER_EXTENSION_SYSTEM_H_ 5 #ifndef EXTENSIONS_BROWSER_EXTENSION_SYSTEM_H_
6 #define EXTENSIONS_BROWSER_EXTENSION_SYSTEM_H_ 6 #define EXTENSIONS_BROWSER_EXTENSION_SYSTEM_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/callback_forward.h" 10 #include "base/callback_forward.h"
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 // asynchronously. |callback| is run on the calling thread once completed. 102 // asynchronously. |callback| is run on the calling thread once completed.
103 virtual void RegisterExtensionWithRequestContexts( 103 virtual void RegisterExtensionWithRequestContexts(
104 const Extension* extension, 104 const Extension* extension,
105 const base::Closure& callback) {} 105 const base::Closure& callback) {}
106 106
107 // Called by the ExtensionService that lives in this system. Lets the 107 // Called by the ExtensionService that lives in this system. Lets the
108 // info map clean up its RequestContexts once all the listeners to the 108 // info map clean up its RequestContexts once all the listeners to the
109 // EXTENSION_UNLOADED notification have finished running. 109 // EXTENSION_UNLOADED notification have finished running.
110 virtual void UnregisterExtensionWithRequestContexts( 110 virtual void UnregisterExtensionWithRequestContexts(
111 const std::string& extension_id, 111 const std::string& extension_id,
112 const UnloadedExtensionInfo::Reason reason) {} 112 const UnloadedExtensionReason reason) {}
113 113
114 // Signaled when the extension system has completed its startup tasks. 114 // Signaled when the extension system has completed its startup tasks.
115 virtual const OneShotEvent& ready() const = 0; 115 virtual const OneShotEvent& ready() const = 0;
116 116
117 // Returns the content verifier, if any. 117 // Returns the content verifier, if any.
118 virtual ContentVerifier* content_verifier() = 0; 118 virtual ContentVerifier* content_verifier() = 0;
119 119
120 // Get a set of extensions that depend on the given extension. 120 // Get a set of extensions that depend on the given extension.
121 // TODO(elijahtaylor): Move SharedModuleService out of chrome/browser 121 // TODO(elijahtaylor): Move SharedModuleService out of chrome/browser
122 // so it can be retrieved from ExtensionSystem directly. 122 // so it can be retrieved from ExtensionSystem directly.
123 virtual std::unique_ptr<ExtensionSet> GetDependentExtensions( 123 virtual std::unique_ptr<ExtensionSet> GetDependentExtensions(
124 const Extension* extension) = 0; 124 const Extension* extension) = 0;
125 125
126 // Install an updated version of |extension_id| with the version given in 126 // Install an updated version of |extension_id| with the version given in
127 // temp_dir. Ownership of |temp_dir| in the filesystem is transferred and 127 // temp_dir. Ownership of |temp_dir| in the filesystem is transferred and
128 // implementors of this function are responsible for cleaning it up on 128 // implementors of this function are responsible for cleaning it up on
129 // errors, etc. 129 // errors, etc.
130 virtual void InstallUpdate(const std::string& extension_id, 130 virtual void InstallUpdate(const std::string& extension_id,
131 const base::FilePath& temp_dir) = 0; 131 const base::FilePath& temp_dir) = 0;
132 }; 132 };
133 133
134 } // namespace extensions 134 } // namespace extensions
135 135
136 #endif // EXTENSIONS_BROWSER_EXTENSION_SYSTEM_H_ 136 #endif // EXTENSIONS_BROWSER_EXTENSION_SYSTEM_H_
OLDNEW
« no previous file with comments | « extensions/browser/extension_registry_unittest.cc ('k') | extensions/browser/extension_user_script_loader.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698