OLD | NEW |
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 CHROME_BROWSER_GOOGLE_GOOGLE_UPDATE_WIN_H_ | 5 #ifndef CHROME_BROWSER_GOOGLE_GOOGLE_UPDATE_WIN_H_ |
6 #define CHROME_BROWSER_GOOGLE_GOOGLE_UPDATE_WIN_H_ | 6 #define CHROME_BROWSER_GOOGLE_GOOGLE_UPDATE_WIN_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
10 #include "base/string16.h" | 10 #include "base/string16.h" |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
49 // Google Update OnDemand COM class reported an error during a check for | 49 // Google Update OnDemand COM class reported an error during a check for |
50 // update (or while upgrading). | 50 // update (or while upgrading). |
51 GOOGLE_UPDATE_ONDEMAND_CLASS_REPORTED_ERROR, | 51 GOOGLE_UPDATE_ONDEMAND_CLASS_REPORTED_ERROR, |
52 // A call to GetResults failed. | 52 // A call to GetResults failed. |
53 GOOGLE_UPDATE_GET_RESULT_CALL_FAILED, | 53 GOOGLE_UPDATE_GET_RESULT_CALL_FAILED, |
54 // A call to GetVersionInfo failed. | 54 // A call to GetVersionInfo failed. |
55 GOOGLE_UPDATE_GET_VERSION_INFO_FAILED, | 55 GOOGLE_UPDATE_GET_VERSION_INFO_FAILED, |
56 // An error occurred while upgrading (or while checking for update). | 56 // An error occurred while upgrading (or while checking for update). |
57 // Check the Google Update log in %TEMP% for more details. | 57 // Check the Google Update log in %TEMP% for more details. |
58 GOOGLE_UPDATE_ERROR_UPDATING, | 58 GOOGLE_UPDATE_ERROR_UPDATING, |
59 // Updates can not be downloaded because the administrator has disabled them. | 59 // Updates can not be downloaded because the administrator has disabled all |
| 60 // types of updating. |
60 GOOGLE_UPDATE_DISABLED_BY_POLICY, | 61 GOOGLE_UPDATE_DISABLED_BY_POLICY, |
| 62 // Updates can not be downloaded because the administrator has disabled |
| 63 // manual (on-demand) updates. Automatic background updates are allowed. |
| 64 GOOGLE_UPDATE_DISABLED_BY_POLICY_AUTO_ONLY, |
61 }; | 65 }; |
62 | 66 |
63 // The GoogleUpdateStatusListener interface is used by components to receive | 67 // The GoogleUpdateStatusListener interface is used by components to receive |
64 // notifications about the results of an Google Update operation. | 68 // notifications about the results of an Google Update operation. |
65 class GoogleUpdateStatusListener { | 69 class GoogleUpdateStatusListener { |
66 public: | 70 public: |
67 // This function is called when Google Update has finished its operation and | 71 // This function is called when Google Update has finished its operation and |
68 // wants to notify us about the results. |results| represents what the end | 72 // wants to notify us about the results. |results| represents what the end |
69 // state is, |error_code| represents what error occurred, |error_message| is a | 73 // state is, |error_code| represents what error occurred, |error_message| is a |
70 // string version of the same (might be blank) and |version| specifies what | 74 // string version of the same (might be blank) and |version| specifies what |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
134 // Otherwise, this will be blank. | 138 // Otherwise, this will be blank. |
135 string16 version_available_; | 139 string16 version_available_; |
136 | 140 |
137 // The listener who is interested in finding out the result of the operation. | 141 // The listener who is interested in finding out the result of the operation. |
138 GoogleUpdateStatusListener* listener_; | 142 GoogleUpdateStatusListener* listener_; |
139 | 143 |
140 DISALLOW_COPY_AND_ASSIGN(GoogleUpdate); | 144 DISALLOW_COPY_AND_ASSIGN(GoogleUpdate); |
141 }; | 145 }; |
142 | 146 |
143 #endif // CHROME_BROWSER_GOOGLE_GOOGLE_UPDATE_WIN_H_ | 147 #endif // CHROME_BROWSER_GOOGLE_GOOGLE_UPDATE_WIN_H_ |
OLD | NEW |