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

Side by Side Diff: rlz/win/lib/rlz_value_store_registry.h

Issue 1547683004: Switch to standard integer types in rlz/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 12 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 | « rlz/win/lib/rlz_lib_win.cc ('k') | rlz/win/lib/rlz_value_store_registry.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_WIN_LIB_RLZ_VALUE_STORE_REGISTRY_H_ 5 #ifndef RLZ_WIN_LIB_RLZ_VALUE_STORE_REGISTRY_H_
6 #define RLZ_WIN_LIB_RLZ_VALUE_STORE_REGISTRY_H_ 6 #define RLZ_WIN_LIB_RLZ_VALUE_STORE_REGISTRY_H_
7 7
8 #include <stddef.h>
9 #include <stdint.h>
10
8 #include "base/compiler_specific.h" 11 #include "base/compiler_specific.h"
12 #include "base/macros.h"
9 #include "rlz/lib/rlz_value_store.h" 13 #include "rlz/lib/rlz_value_store.h"
10 14
11 namespace rlz_lib { 15 namespace rlz_lib {
12 16
13 // Implements RlzValueStore by storing values in the windows registry. 17 // Implements RlzValueStore by storing values in the windows registry.
14 class RlzValueStoreRegistry : public RlzValueStore { 18 class RlzValueStoreRegistry : public RlzValueStore {
15 public: 19 public:
16 static std::wstring GetWideLibKeyName(); 20 static std::wstring GetWideLibKeyName();
17 21
18 bool HasAccess(AccessType type) override; 22 bool HasAccess(AccessType type) override;
19 23
20 bool WritePingTime(Product product, int64 time) override; 24 bool WritePingTime(Product product, int64_t time) override;
21 bool ReadPingTime(Product product, int64* time) override; 25 bool ReadPingTime(Product product, int64_t* time) override;
22 bool ClearPingTime(Product product) override; 26 bool ClearPingTime(Product product) override;
23 27
24 bool WriteAccessPointRlz(AccessPoint access_point, 28 bool WriteAccessPointRlz(AccessPoint access_point,
25 const char* new_rlz) override; 29 const char* new_rlz) override;
26 bool ReadAccessPointRlz(AccessPoint access_point, 30 bool ReadAccessPointRlz(AccessPoint access_point,
27 char* rlz, 31 char* rlz,
28 size_t rlz_size) override; 32 size_t rlz_size) override;
29 bool ClearAccessPointRlz(AccessPoint access_point) override; 33 bool ClearAccessPointRlz(AccessPoint access_point) override;
30 34
31 bool AddProductEvent(Product product, const char* event_rlz) override; 35 bool AddProductEvent(Product product, const char* event_rlz) override;
(...skipping 14 matching lines...) Expand all
46 private: 50 private:
47 RlzValueStoreRegistry() {} 51 RlzValueStoreRegistry() {}
48 DISALLOW_COPY_AND_ASSIGN(RlzValueStoreRegistry); 52 DISALLOW_COPY_AND_ASSIGN(RlzValueStoreRegistry);
49 friend class ScopedRlzValueStoreLock; 53 friend class ScopedRlzValueStoreLock;
50 }; 54 };
51 55
52 } // namespace rlz_lib 56 } // namespace rlz_lib
53 57
54 #endif // RLZ_WIN_LIB_RLZ_VALUE_STORE_REGISTRY_H_ 58 #endif // RLZ_WIN_LIB_RLZ_VALUE_STORE_REGISTRY_H_
55 59
OLDNEW
« no previous file with comments | « rlz/win/lib/rlz_lib_win.cc ('k') | rlz/win/lib/rlz_value_store_registry.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698