| 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_CHROME_TO_MOBILE_SERVICE_H_ | 5 #ifndef CHROME_BROWSER_CHROME_TO_MOBILE_SERVICE_H_ |
| 6 #define CHROME_BROWSER_CHROME_TO_MOBILE_SERVICE_H_ | 6 #define CHROME_BROWSER_CHROME_TO_MOBILE_SERVICE_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <queue> | 9 #include <queue> |
| 10 #include <set> | 10 #include <set> |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 SEND_ERROR, // Cloud print responded with failure on send. | 69 SEND_ERROR, // Cloud print responded with failure on send. |
| 70 LEARN_MORE_CLICKED, // The "Learn more" help article link was clicked. | 70 LEARN_MORE_CLICKED, // The "Learn more" help article link was clicked. |
| 71 BAD_TOKEN, // The cloud print access token could not be minted. | 71 BAD_TOKEN, // The cloud print access token could not be minted. |
| 72 BAD_SEARCH_AUTH, // The cloud print search request failed (auth). | 72 BAD_SEARCH_AUTH, // The cloud print search request failed (auth). |
| 73 BAD_SEARCH_OTHER, // The cloud print search request failed (other). | 73 BAD_SEARCH_OTHER, // The cloud print search request failed (other). |
| 74 BAD_SEND_407, // The cloud print send response was errorCode==407. | 74 BAD_SEND_407, // The cloud print send response was errorCode==407. |
| 75 // "Print job added but failed to notify printer..." | 75 // "Print job added but failed to notify printer..." |
| 76 BAD_SEND_ERROR, // The cloud print send response was errorCode!=407. | 76 BAD_SEND_ERROR, // The cloud print send response was errorCode!=407. |
| 77 BAD_SEND_AUTH, // The cloud print send request failed (auth). | 77 BAD_SEND_AUTH, // The cloud print send request failed (auth). |
| 78 BAD_SEND_OTHER, // The cloud print send request failed (other). | 78 BAD_SEND_OTHER, // The cloud print send request failed (other). |
| 79 NUM_METRICS | 79 SEARCH_SUCCESS, // Cloud print responded with success on search. |
| 80 SEARCH_ERROR, // Cloud print responded with failure on search. |
| 81 NUM_METRICS, |
| 80 }; | 82 }; |
| 81 | 83 |
| 82 // The supported mobile device operating systems. | 84 // The supported mobile device operating systems. |
| 83 enum MobileOS { | 85 enum MobileOS { |
| 84 ANDROID = 0, | 86 ANDROID = 0, |
| 85 IOS, | 87 IOS, |
| 86 }; | 88 }; |
| 87 | 89 |
| 88 // The cloud print job types. | 90 // The cloud print job types. |
| 89 enum JobType { | 91 enum JobType { |
| (...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 247 base::OneShotTimer<ChromeToMobileService> auth_retry_timer_; | 249 base::OneShotTimer<ChromeToMobileService> auth_retry_timer_; |
| 248 base::OneShotTimer<ChromeToMobileService> search_retry_timer_; | 250 base::OneShotTimer<ChromeToMobileService> search_retry_timer_; |
| 249 | 251 |
| 250 // A queue of tasks to perform after an access token is lazily initialized. | 252 // A queue of tasks to perform after an access token is lazily initialized. |
| 251 std::queue<base::Closure> task_queue_; | 253 std::queue<base::Closure> task_queue_; |
| 252 | 254 |
| 253 DISALLOW_COPY_AND_ASSIGN(ChromeToMobileService); | 255 DISALLOW_COPY_AND_ASSIGN(ChromeToMobileService); |
| 254 }; | 256 }; |
| 255 | 257 |
| 256 #endif // CHROME_BROWSER_CHROME_TO_MOBILE_SERVICE_H_ | 258 #endif // CHROME_BROWSER_CHROME_TO_MOBILE_SERVICE_H_ |
| OLD | NEW |