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

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

Issue 633353002: Replace OVERRIDE with its C++11 counterparts in src/rlz (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 | « rlz/test/rlz_test_helpers.h ('k') | no next file » | 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 "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "rlz/lib/rlz_value_store.h" 9 #include "rlz/lib/rlz_value_store.h"
10 10
11 namespace rlz_lib { 11 namespace rlz_lib {
12 12
13 // Implements RlzValueStore by storing values in the windows registry. 13 // Implements RlzValueStore by storing values in the windows registry.
14 class RlzValueStoreRegistry : public RlzValueStore { 14 class RlzValueStoreRegistry : public RlzValueStore {
15 public: 15 public:
16 static std::wstring GetWideLibKeyName(); 16 static std::wstring GetWideLibKeyName();
17 17
18 virtual bool HasAccess(AccessType type) OVERRIDE; 18 virtual bool HasAccess(AccessType type) override;
19 19
20 virtual bool WritePingTime(Product product, int64 time) OVERRIDE; 20 virtual bool WritePingTime(Product product, int64 time) override;
21 virtual bool ReadPingTime(Product product, int64* time) OVERRIDE; 21 virtual bool ReadPingTime(Product product, int64* time) override;
22 virtual bool ClearPingTime(Product product) OVERRIDE; 22 virtual bool ClearPingTime(Product product) override;
23 23
24 virtual bool WriteAccessPointRlz(AccessPoint access_point, 24 virtual bool WriteAccessPointRlz(AccessPoint access_point,
25 const char* new_rlz) OVERRIDE; 25 const char* new_rlz) override;
26 virtual bool ReadAccessPointRlz(AccessPoint access_point, 26 virtual bool ReadAccessPointRlz(AccessPoint access_point,
27 char* rlz, 27 char* rlz,
28 size_t rlz_size) OVERRIDE; 28 size_t rlz_size) override;
29 virtual bool ClearAccessPointRlz(AccessPoint access_point) OVERRIDE; 29 virtual bool ClearAccessPointRlz(AccessPoint access_point) override;
30 30
31 virtual bool AddProductEvent(Product product, const char* event_rlz) OVERRIDE; 31 virtual bool AddProductEvent(Product product, const char* event_rlz) override;
32 virtual bool ReadProductEvents(Product product, 32 virtual bool ReadProductEvents(Product product,
33 std::vector<std::string>* events) OVERRIDE; 33 std::vector<std::string>* events) override;
34 virtual bool ClearProductEvent(Product product, 34 virtual bool ClearProductEvent(Product product,
35 const char* event_rlz) OVERRIDE; 35 const char* event_rlz) override;
36 virtual bool ClearAllProductEvents(Product product) OVERRIDE; 36 virtual bool ClearAllProductEvents(Product product) override;
37 37
38 virtual bool AddStatefulEvent(Product product, 38 virtual bool AddStatefulEvent(Product product,
39 const char* event_rlz) OVERRIDE; 39 const char* event_rlz) override;
40 virtual bool IsStatefulEvent(Product product, 40 virtual bool IsStatefulEvent(Product product,
41 const char* event_rlz) OVERRIDE; 41 const char* event_rlz) override;
42 virtual bool ClearAllStatefulEvents(Product product) OVERRIDE; 42 virtual bool ClearAllStatefulEvents(Product product) override;
43 43
44 virtual void CollectGarbage() OVERRIDE; 44 virtual void CollectGarbage() override;
45 45
46 private: 46 private:
47 RlzValueStoreRegistry() {} 47 RlzValueStoreRegistry() {}
48 DISALLOW_COPY_AND_ASSIGN(RlzValueStoreRegistry); 48 DISALLOW_COPY_AND_ASSIGN(RlzValueStoreRegistry);
49 friend class ScopedRlzValueStoreLock; 49 friend class ScopedRlzValueStoreLock;
50 }; 50 };
51 51
52 } // namespace rlz_lib 52 } // namespace rlz_lib
53 53
54 #endif // RLZ_WIN_LIB_RLZ_VALUE_STORE_REGISTRY_H_ 54 #endif // RLZ_WIN_LIB_RLZ_VALUE_STORE_REGISTRY_H_
55 55
OLDNEW
« no previous file with comments | « rlz/test/rlz_test_helpers.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698