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

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

Issue 1362043005: Add extensions code to use common updater in components/update_client/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: merged latest origin/master Created 5 years, 2 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
« no previous file with comments | « extensions/browser/BUILD.gn ('k') | extensions/browser/extensions_browser_client.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
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_
OLDNEW
« no previous file with comments | « extensions/browser/BUILD.gn ('k') | extensions/browser/extensions_browser_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698