OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
11 #include "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
12 #include "base/time.h" | 12 #include "base/time/time.h" |
13 #include "chrome_frame/ready_mode/internal/ready_mode_state.h" | 13 #include "chrome_frame/ready_mode/internal/ready_mode_state.h" |
14 | 14 |
15 // Defines the possible Ready Mode states. | 15 // Defines the possible Ready Mode states. |
16 enum ReadyModeStatus { | 16 enum ReadyModeStatus { |
17 // Chrome Frame is permanently disabled and should be uninstalled. | 17 // Chrome Frame is permanently disabled and should be uninstalled. |
18 READY_MODE_PERMANENTLY_DECLINED, | 18 READY_MODE_PERMANENTLY_DECLINED, |
19 // Chrome Frame is temporarily disabled. | 19 // Chrome Frame is temporarily disabled. |
20 READY_MODE_TEMPORARILY_DECLINED, | 20 READY_MODE_TEMPORARILY_DECLINED, |
21 // Chrome Frame is disabled, but should be enabled by calling | 21 // Chrome Frame is disabled, but should be enabled by calling |
22 // ExpireTemporaryDecline(). | 22 // ExpireTemporaryDecline(). |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
81 void RefreshStateAndNotify(); | 81 void RefreshStateAndNotify(); |
82 | 82 |
83 base::TimeDelta temporary_decline_duration_; | 83 base::TimeDelta temporary_decline_duration_; |
84 std::wstring key_name_; | 84 std::wstring key_name_; |
85 scoped_ptr<Observer> observer_; | 85 scoped_ptr<Observer> observer_; |
86 | 86 |
87 DISALLOW_COPY_AND_ASSIGN(RegistryReadyModeState); | 87 DISALLOW_COPY_AND_ASSIGN(RegistryReadyModeState); |
88 }; | 88 }; |
89 | 89 |
90 #endif // CHROME_FRAME_READY_MODE_INTERNAL_REGISTRY_READY_MODE_STATE_H_ | 90 #endif // CHROME_FRAME_READY_MODE_INTERNAL_REGISTRY_READY_MODE_STATE_H_ |
OLD | NEW |