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 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 scoped_ptr<ExtensionSet> GetDependentExtensions( | 123 virtual scoped_ptr<ExtensionSet> GetDependentExtensions( |
124 const Extension* extension) = 0; | 124 const Extension* extension) = 0; |
| 125 |
| 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 |
| 128 // implementors of this function are responsible for cleaning it up on |
| 129 // errors, etc. |
| 130 virtual void InstallUpdate(const std::string& extension_id, |
| 131 const base::FilePath& temp_dir) = 0; |
125 }; | 132 }; |
126 | 133 |
127 } // namespace extensions | 134 } // namespace extensions |
128 | 135 |
129 #endif // EXTENSIONS_BROWSER_EXTENSION_SYSTEM_H_ | 136 #endif // EXTENSIONS_BROWSER_EXTENSION_SYSTEM_H_ |
OLD | NEW |