| OLD | NEW |
| 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 Loading... |
| 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_ |
| OLD | NEW |