OLD | NEW |
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 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
118 | 118 |
119 // Signaled when the extension system has completed its startup tasks. | 119 // Signaled when the extension system has completed its startup tasks. |
120 virtual const OneShotEvent& ready() const = 0; | 120 virtual const OneShotEvent& ready() const = 0; |
121 | 121 |
122 // Returns the content verifier, if any. | 122 // Returns the content verifier, if any. |
123 virtual ContentVerifier* content_verifier() = 0; | 123 virtual ContentVerifier* content_verifier() = 0; |
124 | 124 |
125 // Get a set of extensions that depend on the given extension. | 125 // Get a set of extensions that depend on the given extension. |
126 // TODO(elijahtaylor): Move SharedModuleService out of chrome/browser | 126 // TODO(elijahtaylor): Move SharedModuleService out of chrome/browser |
127 // so it can be retrieved from ExtensionSystem directly. | 127 // so it can be retrieved from ExtensionSystem directly. |
128 virtual scoped_ptr<ExtensionSet> GetDependentExtensions( | 128 virtual std::unique_ptr<ExtensionSet> GetDependentExtensions( |
129 const Extension* extension) = 0; | 129 const Extension* extension) = 0; |
130 | 130 |
131 // Install an updated version of |extension_id| with the version given in | 131 // Install an updated version of |extension_id| with the version given in |
132 // temp_dir. Ownership of |temp_dir| in the filesystem is transferred and | 132 // temp_dir. Ownership of |temp_dir| in the filesystem is transferred and |
133 // implementors of this function are responsible for cleaning it up on | 133 // implementors of this function are responsible for cleaning it up on |
134 // errors, etc. | 134 // errors, etc. |
135 virtual void InstallUpdate(const std::string& extension_id, | 135 virtual void InstallUpdate(const std::string& extension_id, |
136 const base::FilePath& temp_dir) = 0; | 136 const base::FilePath& temp_dir) = 0; |
137 }; | 137 }; |
138 | 138 |
139 } // namespace extensions | 139 } // namespace extensions |
140 | 140 |
141 #endif // EXTENSIONS_BROWSER_EXTENSION_SYSTEM_H_ | 141 #endif // EXTENSIONS_BROWSER_EXTENSION_SYSTEM_H_ |
OLD | NEW |