| 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_SERVICE_CLOUD_PRINT_CLOUD_PRINT_PROXY_BACKEND_H_ | 5 #ifndef CHROME_SERVICE_CLOUD_PRINT_CLOUD_PRINT_PROXY_BACKEND_H_ |
| 6 #define CHROME_SERVICE_CLOUD_PRINT_CLOUD_PRINT_PROXY_BACKEND_H_ | 6 #define CHROME_SERVICE_CLOUD_PRINT_CLOUD_PRINT_PROXY_BACKEND_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 private: | 51 private: |
| 52 DISALLOW_COPY_AND_ASSIGN(CloudPrintProxyFrontend); | 52 DISALLOW_COPY_AND_ASSIGN(CloudPrintProxyFrontend); |
| 53 }; | 53 }; |
| 54 | 54 |
| 55 class CloudPrintProxyBackend { | 55 class CloudPrintProxyBackend { |
| 56 public: | 56 public: |
| 57 // It is OK for print_system_settings to be NULL. In this case system should | 57 // It is OK for print_system_settings to be NULL. In this case system should |
| 58 // use system default settings. | 58 // use system default settings. |
| 59 CloudPrintProxyBackend( | 59 CloudPrintProxyBackend( |
| 60 CloudPrintProxyFrontend* frontend, | 60 CloudPrintProxyFrontend* frontend, |
| 61 const std::string& proxy_id, |
| 61 const GURL& cloud_print_server_url, | 62 const GURL& cloud_print_server_url, |
| 62 const base::DictionaryValue* print_sys_settings, | 63 const base::DictionaryValue* print_sys_settings, |
| 63 const gaia::OAuthClientInfo& oauth_client_info, | 64 const gaia::OAuthClientInfo& oauth_client_info, |
| 64 bool enable_job_poll); | 65 bool enable_job_poll); |
| 65 ~CloudPrintProxyBackend(); | 66 ~CloudPrintProxyBackend(); |
| 66 | 67 |
| 67 // Called when the user enables Google Cloud Print. | 68 // Called when the user enables Google Cloud Print. |
| 68 // |last_robot_refresh_token|, |last_robot_email| and |last_user_email| are | 69 // |last_robot_refresh_token|, |last_robot_email| and |last_user_email| are |
| 69 // the previously persisted credentials if any. We will use this is the passed | 70 // the previously persisted credentials if any. We will use this is the passed |
| 70 // in LSID belongs to the same user as |last_user_email|. | 71 // in LSID belongs to the same user as |last_user_email|. |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 102 MessageLoop* const frontend_loop_; | 103 MessageLoop* const frontend_loop_; |
| 103 // The frontend which is responsible for displaying UI and updating Prefs | 104 // The frontend which is responsible for displaying UI and updating Prefs |
| 104 CloudPrintProxyFrontend* frontend_; | 105 CloudPrintProxyFrontend* frontend_; |
| 105 | 106 |
| 106 friend class base::RefCountedThreadSafe<CloudPrintProxyBackend::Core>; | 107 friend class base::RefCountedThreadSafe<CloudPrintProxyBackend::Core>; |
| 107 | 108 |
| 108 DISALLOW_COPY_AND_ASSIGN(CloudPrintProxyBackend); | 109 DISALLOW_COPY_AND_ASSIGN(CloudPrintProxyBackend); |
| 109 }; | 110 }; |
| 110 | 111 |
| 111 #endif // CHROME_SERVICE_CLOUD_PRINT_CLOUD_PRINT_PROXY_BACKEND_H_ | 112 #endif // CHROME_SERVICE_CLOUD_PRINT_CLOUD_PRINT_PROXY_BACKEND_H_ |
| OLD | NEW |