Home
last modified time | relevance | path

Searched refs:CloudPrintURLFetcher (Results 1 – 14 of 14) sorted by relevance

/external/chromium_org/chrome/service/cloud_print/
Dcloud_print_url_fetcher.cc26 void ReportRequestTime(CloudPrintURLFetcher::RequestType type, in ReportRequestTime()
28 if (type == CloudPrintURLFetcher::REQUEST_REGISTER) { in ReportRequestTime()
30 } else if (type == CloudPrintURLFetcher::REQUEST_UPDATE_PRINTER) { in ReportRequestTime()
32 } else if (type == CloudPrintURLFetcher::REQUEST_DATA) { in ReportRequestTime()
39 void ReportRetriesCount(CloudPrintURLFetcher::RequestType type, in ReportRetriesCount()
41 if (type == CloudPrintURLFetcher::REQUEST_REGISTER) { in ReportRetriesCount()
43 } else if (type == CloudPrintURLFetcher::REQUEST_UPDATE_PRINTER) { in ReportRetriesCount()
46 } else if (type == CloudPrintURLFetcher::REQUEST_DATA) { in ReportRetriesCount()
54 void ReportDownloadSize(CloudPrintURLFetcher::RequestType type, size_t size) { in ReportDownloadSize()
55 if (type == CloudPrintURLFetcher::REQUEST_REGISTER) { in ReportDownloadSize()
[all …]
Dcloud_print_url_fetcher_unittest.cc61 class TestCloudPrintURLFetcher : public CloudPrintURLFetcher {
96 virtual CloudPrintURLFetcher::ResponseAction HandleRawResponse(
104 virtual CloudPrintURLFetcher::ResponseAction OnRequestAuthError() OVERRIDE { in OnRequestAuthError()
106 return CloudPrintURLFetcher::STOP_PROCESSING; in OnRequestAuthError()
149 virtual CloudPrintURLFetcher::ResponseAction HandleRawResponse(
157 virtual CloudPrintURLFetcher::ResponseAction HandleRawData(
162 virtual CloudPrintURLFetcher::ResponseAction HandleJSONData(
186 virtual CloudPrintURLFetcher::ResponseAction HandleRawData(
202 virtual CloudPrintURLFetcher::ResponseAction HandleRawData(
226 fetcher_->StartGetRequest(CloudPrintURLFetcher::REQUEST_MAX, url, this, in CreateFetcher()
[all …]
Dprinter_job_handler.h118 virtual CloudPrintURLFetcher::ResponseAction HandleRawResponse(
125 virtual CloudPrintURLFetcher::ResponseAction HandleRawData(
129 virtual CloudPrintURLFetcher::ResponseAction HandleJSONData(
135 virtual CloudPrintURLFetcher::ResponseAction OnRequestAuthError() OVERRIDE;
168 typedef CloudPrintURLFetcher::ResponseAction
174 typedef CloudPrintURLFetcher::ResponseAction
182 CloudPrintURLFetcher::ResponseAction HandlePrinterUpdateResponse(
188 CloudPrintURLFetcher::ResponseAction HandleJobMetadataResponse(
194 CloudPrintURLFetcher::ResponseAction HandlePrintTicketResponse(
199 CloudPrintURLFetcher::ResponseAction HandlePrintDataResponse(
[all …]
Dprinter_job_handler.cc128 CloudPrintURLFetcher::ResponseAction PrinterJobHandler::HandleRawResponse( in HandleRawResponse()
143 return CloudPrintURLFetcher::STOP_PROCESSING; in HandleRawResponse()
145 return CloudPrintURLFetcher::CONTINUE_PROCESSING; in HandleRawResponse()
148 CloudPrintURLFetcher::ResponseAction PrinterJobHandler::HandleRawData( in HandleRawData()
153 return CloudPrintURLFetcher::CONTINUE_PROCESSING; in HandleRawData()
157 CloudPrintURLFetcher::ResponseAction PrinterJobHandler::HandleJSONData( in HandleJSONData()
182 CloudPrintURLFetcher::ResponseAction PrinterJobHandler::OnRequestAuthError() { in OnRequestAuthError()
188 return CloudPrintURLFetcher::STOP_PROCESSING; in OnRequestAuthError()
281 CloudPrintURLFetcher::ResponseAction
294 return CloudPrintURLFetcher::STOP_PROCESSING; in HandlePrinterUpdateResponse()
[all …]
Dcloud_print_url_fetcher.h30 class CloudPrintURLFetcher; variable
33 virtual CloudPrintURLFetcher* CreateCloudPrintURLFetcher() = 0;
42 class CloudPrintURLFetcher
43 : public base::RefCountedThreadSafe<CloudPrintURLFetcher>,
118 static CloudPrintURLFetcher* Create();
140 CloudPrintURLFetcher();
141 friend class base::RefCountedThreadSafe<CloudPrintURLFetcher>;
142 virtual ~CloudPrintURLFetcher();
171 typedef CloudPrintURLFetcher::Delegate CloudPrintURLFetcherDelegate;
Dcloud_print_connector.h61 typedef CloudPrintURLFetcher::ResponseAction
94 virtual CloudPrintURLFetcher::ResponseAction HandleRawData(
98 virtual CloudPrintURLFetcher::ResponseAction HandleJSONData(
103 virtual CloudPrintURLFetcher::ResponseAction OnRequestAuthError() OVERRIDE;
107 CloudPrintURLFetcher::ResponseAction HandlePrinterListResponse(
113 CloudPrintURLFetcher::ResponseAction HandlePrinterListResponseSettingsUpdate(
119 CloudPrintURLFetcher::ResponseAction HandlePrinterDeleteResponse(
125 CloudPrintURLFetcher::ResponseAction HandleRegisterPrinterResponse(
136 void StartPostRequest(CloudPrintURLFetcher::RequestType type,
196 scoped_refptr<CloudPrintURLFetcher> request_;
[all …]
Dcloud_print_wipeout.cc41 request_ = CloudPrintURLFetcher::Create(); in UnregisterNextPrinter()
42 request_->StartGetRequest(CloudPrintURLFetcher::REQUEST_UNREGISTER, in UnregisterNextPrinter()
46 CloudPrintURLFetcher::ResponseAction CloudPrintWipeout::HandleJSONData( in HandleJSONData()
53 return CloudPrintURLFetcher::STOP_PROCESSING; in HandleJSONData()
60 CloudPrintURLFetcher::ResponseAction CloudPrintWipeout::OnRequestAuthError() { in OnRequestAuthError()
63 return CloudPrintURLFetcher::STOP_PROCESSING; in OnRequestAuthError()
Dcloud_print_connector.cc169 CloudPrintURLFetcher::ResponseAction CloudPrintConnector::HandleRawData( in HandleRawData()
177 return CloudPrintURLFetcher::STOP_PROCESSING; in HandleRawData()
178 return CloudPrintURLFetcher::CONTINUE_PROCESSING; in HandleRawData()
181 CloudPrintURLFetcher::ResponseAction CloudPrintConnector::HandleJSONData( in HandleJSONData()
187 return CloudPrintURLFetcher::STOP_PROCESSING; in HandleJSONData()
193 CloudPrintURLFetcher::ResponseAction CloudPrintConnector::OnRequestAuthError() { in OnRequestAuthError()
195 return CloudPrintURLFetcher::STOP_PROCESSING; in OnRequestAuthError()
204 CloudPrintURLFetcher::ResponseAction
212 return CloudPrintURLFetcher::RETRY_REQUEST; in HandlePrinterListResponse()
282 return CloudPrintURLFetcher::STOP_PROCESSING; in HandlePrinterListResponse()
[all …]
Djob_status_updater.cc77 request_ = CloudPrintURLFetcher::Create(); in UpdateStatus()
79 CloudPrintURLFetcher::REQUEST_UPDATE_JOB, in UpdateStatus()
97 CloudPrintURLFetcher::ResponseAction JobStatusUpdater::HandleJSONData( in HandleJSONData()
106 return CloudPrintURLFetcher::STOP_PROCESSING; in HandleJSONData()
109 CloudPrintURLFetcher::ResponseAction JobStatusUpdater::OnRequestAuthError() { in OnRequestAuthError()
116 return CloudPrintURLFetcher::STOP_PROCESSING; in OnRequestAuthError()
Dcloud_print_auth.cc64 request_ = CloudPrintURLFetcher::Create(); in AuthenticateWithToken()
65 request_->StartGetRequest(CloudPrintURLFetcher::REQUEST_AUTH_CODE, in AuthenticateWithToken()
160 CloudPrintURLFetcher::ResponseAction CloudPrintAuth::HandleJSONData( in HandleJSONData()
171 return CloudPrintURLFetcher::STOP_PROCESSING; in HandleJSONData()
181 return CloudPrintURLFetcher::STOP_PROCESSING; in HandleJSONData()
197 return CloudPrintURLFetcher::STOP_PROCESSING; in HandleJSONData()
200 CloudPrintURLFetcher::ResponseAction CloudPrintAuth::OnRequestAuthError() { in OnRequestAuthError()
209 return CloudPrintURLFetcher::STOP_PROCESSING; in OnRequestAuthError()
Dcloud_print_wipeout.h34 virtual CloudPrintURLFetcher::ResponseAction HandleJSONData(
40 virtual CloudPrintURLFetcher::ResponseAction OnRequestAuthError() OVERRIDE;
51 scoped_refptr<CloudPrintURLFetcher> request_;
Djob_status_updater.h48 virtual CloudPrintURLFetcher::ResponseAction HandleJSONData(
53 virtual CloudPrintURLFetcher::ResponseAction OnRequestAuthError() OVERRIDE;
69 scoped_refptr<CloudPrintURLFetcher> request_;
Dcloud_print_auth.h68 virtual CloudPrintURLFetcher::ResponseAction HandleJSONData(
73 virtual CloudPrintURLFetcher::ResponseAction OnRequestAuthError() OVERRIDE;
85 scoped_refptr<CloudPrintURLFetcher> request_;
Dprinter_job_handler_unittest.cc248 : public CloudPrintURLFetcher {
267 virtual CloudPrintURLFetcher* CreateCloudPrintURLFetcher() OVERRIDE { in CreateCloudPrintURLFetcher()
502 CloudPrintURLFetcher::set_factory(&cloud_print_factory_); in SetUp()
632 CloudPrintURLFetcher::set_factory(NULL); in TearDown()