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

Side by Side Diff: chrome/browser/value_store/failing_value_store.h

Issue 10545128: Unrevert r141537: Add extensions::StateStore and use that instead of (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix.crash Created 8 years, 6 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 CHROME_BROWSER_VALUE_STORE_FAILING_VALUE_STORE_H_ 5 #ifndef CHROME_BROWSER_VALUE_STORE_FAILING_VALUE_STORE_H_
6 #define CHROME_BROWSER_VALUE_STORE_FAILING_VALUE_STORE_H_ 6 #define CHROME_BROWSER_VALUE_STORE_FAILING_VALUE_STORE_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "chrome/browser/value_store/value_store.h" 10 #include "chrome/browser/value_store/value_store.h"
11 11
12 // Settings storage area which fails every request. 12 // Settings storage area which fails every request.
13 class FailingSettingsStorage : public ValueStore { 13 class FailingValueStore : public ValueStore {
14 public: 14 public:
15 FailingSettingsStorage() {} 15 FailingValueStore() {}
16 16
17 // ValueStore implementation. 17 // ValueStore implementation.
18 virtual size_t GetBytesInUse(const std::string& key) OVERRIDE; 18 virtual size_t GetBytesInUse(const std::string& key) OVERRIDE;
19 virtual size_t GetBytesInUse(const std::vector<std::string>& keys) OVERRIDE; 19 virtual size_t GetBytesInUse(const std::vector<std::string>& keys) OVERRIDE;
20 virtual size_t GetBytesInUse() OVERRIDE; 20 virtual size_t GetBytesInUse() OVERRIDE;
21 virtual ReadResult Get(const std::string& key) OVERRIDE; 21 virtual ReadResult Get(const std::string& key) OVERRIDE;
22 virtual ReadResult Get(const std::vector<std::string>& keys) OVERRIDE; 22 virtual ReadResult Get(const std::vector<std::string>& keys) OVERRIDE;
23 virtual ReadResult Get() OVERRIDE; 23 virtual ReadResult Get() OVERRIDE;
24 virtual WriteResult Set( 24 virtual WriteResult Set(
25 WriteOptions options, 25 WriteOptions options,
26 const std::string& key, 26 const std::string& key,
27 const Value& value) OVERRIDE; 27 const Value& value) OVERRIDE;
28 virtual WriteResult Set( 28 virtual WriteResult Set(
29 WriteOptions options, const DictionaryValue& values) OVERRIDE; 29 WriteOptions options, const DictionaryValue& values) OVERRIDE;
30 virtual WriteResult Remove(const std::string& key) OVERRIDE; 30 virtual WriteResult Remove(const std::string& key) OVERRIDE;
31 virtual WriteResult Remove(const std::vector<std::string>& keys) OVERRIDE; 31 virtual WriteResult Remove(const std::vector<std::string>& keys) OVERRIDE;
32 virtual WriteResult Clear() OVERRIDE; 32 virtual WriteResult Clear() OVERRIDE;
33 33
34 private: 34 private:
35 DISALLOW_COPY_AND_ASSIGN(FailingSettingsStorage); 35 DISALLOW_COPY_AND_ASSIGN(FailingValueStore);
36 }; 36 };
37 37
38 #endif // CHROME_BROWSER_VALUE_STORE_FAILING_VALUE_STORE_H_ 38 #endif // CHROME_BROWSER_VALUE_STORE_FAILING_VALUE_STORE_H_
OLDNEW
« no previous file with comments | « chrome/browser/value_store/caching_value_store_unittest.cc ('k') | chrome/browser/value_store/failing_value_store.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698