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

Side by Side Diff: chrome_frame/ready_mode/internal/registry_ready_mode_state.h

Issue 6090006: Regkey functions return error code instead of bool (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 11 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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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_FRAME_READY_MODE_INTERNAL_REGISTRY_READY_MODE_STATE_H_ 5 #ifndef CHROME_FRAME_READY_MODE_INTERNAL_REGISTRY_READY_MODE_STATE_H_
6 #define CHROME_FRAME_READY_MODE_INTERNAL_REGISTRY_READY_MODE_STATE_H_ 6 #define CHROME_FRAME_READY_MODE_INTERNAL_REGISTRY_READY_MODE_STATE_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 virtual void AcceptChromeFrame(); 54 virtual void AcceptChromeFrame();
55 55
56 protected: 56 protected:
57 // allow dependency replacement via derivation for tests 57 // allow dependency replacement via derivation for tests
58 virtual base::Time GetNow(); 58 virtual base::Time GetNow();
59 59
60 private: 60 private:
61 // Retrieves state from the registry. Returns true upon success. 61 // Retrieves state from the registry. Returns true upon success.
62 bool GetValue(int64* value, bool* exists); 62 bool GetValue(int64* value, bool* exists);
63 // Stores value in the registry. Returns true upon success. 63 // Stores value in the registry. Returns true upon success.
64 bool StoreValue(int64 value); 64 bool StoreValue(const int64& value);
65 65
66 base::TimeDelta temporary_decline_duration_; 66 base::TimeDelta temporary_decline_duration_;
67 int temporary_decline_length_seconds_; 67 int temporary_decline_length_seconds_;
68 std::wstring key_name_; 68 std::wstring key_name_;
69 scoped_ptr<InstallationState> installation_state_; 69 scoped_ptr<InstallationState> installation_state_;
70 scoped_ptr<Observer> observer_; 70 scoped_ptr<Observer> observer_;
71 }; // class RegistryReadyModeState 71 }; // class RegistryReadyModeState
72 72
73 #endif // CHROME_FRAME_READY_MODE_INTERNAL_REGISTRY_READY_MODE_STATE_H_ 73 #endif // CHROME_FRAME_READY_MODE_INTERNAL_REGISTRY_READY_MODE_STATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698