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

Side by Side Diff: rlz/chromeos/lib/rlz_value_store_chromeos.h

Issue 2800153002: Fix static initializers in RlzValueStoreChromeOS. (Closed)
Patch Set: Created 3 years, 8 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 | « no previous file | rlz/chromeos/lib/rlz_value_store_chromeos.cc » ('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 (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 RLZ_CHROMEOS_LIB_RLZ_VALUE_STORE_CHROMEOS_H_ 5 #ifndef RLZ_CHROMEOS_LIB_RLZ_VALUE_STORE_CHROMEOS_H_
6 #define RLZ_CHROMEOS_LIB_RLZ_VALUE_STORE_CHROMEOS_H_ 6 #define RLZ_CHROMEOS_LIB_RLZ_VALUE_STORE_CHROMEOS_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
11 #include <memory> 11 #include <memory>
12 12
13 #include "base/files/file_path.h" 13 #include "base/files/file_path.h"
14 #include "base/macros.h" 14 #include "base/macros.h"
15 #include "base/threading/non_thread_safe.h" 15 #include "base/threading/non_thread_safe.h"
16 #include "base/values.h"
17 #include "rlz/lib/rlz_value_store.h" 16 #include "rlz/lib/rlz_value_store.h"
18 17
19 namespace base { 18 namespace base {
20 class SequencedTaskRunner; 19 class DictionaryValue;
21 class Value; 20 class Value;
22 } 21 }
23 22
24 namespace rlz_lib { 23 namespace rlz_lib {
25 24
26 // An implementation of RlzValueStore for ChromeOS. 25 // An implementation of RlzValueStore for ChromeOS.
27 class RlzValueStoreChromeOS : public RlzValueStore, 26 class RlzValueStoreChromeOS : public RlzValueStore,
28 public base::NonThreadSafe { 27 public base::NonThreadSafe {
29 public: 28 public:
30 // // Sets the task runner that will be used by ImportantFileWriter for write
31 // // operations.
32 // static void SetFileTaskRunner(base::SequencedTaskRunner* file_task_runner);
33
34 // Creates new instance and synchronously reads data from file. 29 // Creates new instance and synchronously reads data from file.
35 RlzValueStoreChromeOS(const base::FilePath& store_path); 30 explicit RlzValueStoreChromeOS(const base::FilePath& store_path);
36 ~RlzValueStoreChromeOS() override; 31 ~RlzValueStoreChromeOS() override;
37 32
38 // RlzValueStore overrides: 33 // RlzValueStore overrides:
39 bool HasAccess(AccessType type) override; 34 bool HasAccess(AccessType type) override;
40 35
41 bool WritePingTime(Product product, int64_t time) override; 36 bool WritePingTime(Product product, int64_t time) override;
42 bool ReadPingTime(Product product, int64_t* time) override; 37 bool ReadPingTime(Product product, int64_t* time) override;
43 bool ClearPingTime(Product product) override; 38 bool ClearPingTime(Product product) override;
44 39
45 bool WriteAccessPointRlz(AccessPoint access_point, 40 bool WriteAccessPointRlz(AccessPoint access_point,
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 base::FilePath store_path_; 76 base::FilePath store_path_;
82 77
83 bool read_only_; 78 bool read_only_;
84 79
85 DISALLOW_COPY_AND_ASSIGN(RlzValueStoreChromeOS); 80 DISALLOW_COPY_AND_ASSIGN(RlzValueStoreChromeOS);
86 }; 81 };
87 82
88 } // namespace rlz_lib 83 } // namespace rlz_lib
89 84
90 #endif // RLZ_CHROMEOS_LIB_RLZ_VALUE_STORE_CHROMEOS_H_ 85 #endif // RLZ_CHROMEOS_LIB_RLZ_VALUE_STORE_CHROMEOS_H_
OLDNEW
« no previous file with comments | « no previous file | rlz/chromeos/lib/rlz_value_store_chromeos.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698