| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_UI_WEBUI_LOCAL_DISCOVERY_LOCAL_DISCOVERY_UI_HANDLER_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBUI_LOCAL_DISCOVERY_LOCAL_DISCOVERY_UI_HANDLER_H_ |
| 6 #define CHROME_BROWSER_UI_WEBUI_LOCAL_DISCOVERY_LOCAL_DISCOVERY_UI_HANDLER_H_ | 6 #define CHROME_BROWSER_UI_WEBUI_LOCAL_DISCOVERY_LOCAL_DISCOVERY_UI_HANDLER_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 89 // For when a cancelation is made. | 89 // For when a cancelation is made. |
| 90 void HandleCancelRegistration(const base::ListValue* args); | 90 void HandleCancelRegistration(const base::ListValue* args); |
| 91 | 91 |
| 92 // For when the IP address of the printer has been resolved for registration. | 92 // For when the IP address of the printer has been resolved for registration. |
| 93 void StartRegisterHTTP( | 93 void StartRegisterHTTP( |
| 94 const std::string& user, | 94 const std::string& user, |
| 95 scoped_ptr<PrivetHTTPClient> http_client); | 95 scoped_ptr<PrivetHTTPClient> http_client); |
| 96 | 96 |
| 97 // For when the confirm operation on the cloudprint server has finished | 97 // For when the confirm operation on the cloudprint server has finished |
| 98 // executing. | 98 // executing. |
| 99 void OnConfirmDone(PrivetConfirmApiCallFlow::Status status); | 99 void OnConfirmDone(CloudPrintBaseApiFlow::Status status); |
| 100 | 100 |
| 101 // For when the cloud print account list is resolved. | 101 // For when the cloud print account list is resolved. |
| 102 void OnCloudPrintAccountsResolved(const std::vector<std::string>& accounts, | 102 void OnCloudPrintAccountsResolved(const std::vector<std::string>& accounts, |
| 103 const std::string& xsrf_token); | 103 const std::string& xsrf_token); |
| 104 | 104 |
| 105 // For when XSRF token is received for a secondary account. | 105 // For when XSRF token is received for a secondary account. |
| 106 void OnXSRFTokenForSecondaryAccount( | 106 void OnXSRFTokenForSecondaryAccount( |
| 107 const GURL& automated_claim_url, | 107 const GURL& automated_claim_url, |
| 108 const std::vector<std::string>& accounts, | 108 const std::vector<std::string>& accounts, |
| 109 const std::string& xsrf_token); | 109 const std::string& xsrf_token); |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 170 | 170 |
| 171 // Current user index (for multi-login), or kAccountIndexUseOAuth2 for sync | 171 // Current user index (for multi-login), or kAccountIndexUseOAuth2 for sync |
| 172 // credentials. | 172 // credentials. |
| 173 int current_register_user_index_; | 173 int current_register_user_index_; |
| 174 | 174 |
| 175 DISALLOW_COPY_AND_ASSIGN(LocalDiscoveryUIHandler); | 175 DISALLOW_COPY_AND_ASSIGN(LocalDiscoveryUIHandler); |
| 176 }; | 176 }; |
| 177 | 177 |
| 178 } // namespace local_discovery | 178 } // namespace local_discovery |
| 179 #endif // CHROME_BROWSER_UI_WEBUI_LOCAL_DISCOVERY_LOCAL_DISCOVERY_UI_HANDLER_H_ | 179 #endif // CHROME_BROWSER_UI_WEBUI_LOCAL_DISCOVERY_LOCAL_DISCOVERY_UI_HANDLER_H_ |
| OLD | NEW |