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

Side by Side Diff: extensions/browser/updater/null_extension_cache.cc

Issue 612423003: Move ExtensionCache to //extensions (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix test setup Created 6 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/updater/null_extension_cache.h ('k') | extensions/extensions.gyp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #include "extensions/browser/updater/null_extension_cache.h"
6
7 #include "base/callback.h"
8
9 namespace extensions {
10
11 NullExtensionCache::NullExtensionCache() {
12 }
13
14 NullExtensionCache::~NullExtensionCache() {
15 }
16
17 void NullExtensionCache::Start(const base::Closure& callback) {
18 callback.Run();
19 }
20
21 void NullExtensionCache::Shutdown(const base::Closure& callback) {
22 callback.Run();
23 }
24
25 void NullExtensionCache::AllowCaching(const std::string& id) {
26 }
27
28 bool NullExtensionCache::GetExtension(const std::string& id,
29 base::FilePath* file_path,
30 std::string* version) {
31 return false;
32 }
33
34 void NullExtensionCache::PutExtension(const std::string& id,
35 const base::FilePath& file_path,
36 const std::string& version,
37 const PutExtensionCallback& callback) {
38 callback.Run(file_path, true);
39 }
40
41 } // namespace extensions
OLDNEW
« no previous file with comments | « extensions/browser/updater/null_extension_cache.h ('k') | extensions/extensions.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698