diff options
Diffstat (limited to 'cloud_print/gcp20/prototype/cloud_print_requester.cc')
-rw-r--r-- | cloud_print/gcp20/prototype/cloud_print_requester.cc | 29 |
1 files changed, 28 insertions, 1 deletions
diff --git a/cloud_print/gcp20/prototype/cloud_print_requester.cc b/cloud_print/gcp20/prototype/cloud_print_requester.cc index ec40489..ade85efc 100644 --- a/cloud_print/gcp20/prototype/cloud_print_requester.cc +++ b/cloud_print/gcp20/prototype/cloud_print_requester.cc @@ -31,6 +31,16 @@ const char kPrinterCapsHashValue[] = "capsHash"; const char kPrinterUserValue[] = "user"; const char kPrinterGcpVersion[] = "gcp_version"; const char kPrinterLocalSettings[] = "local_settings"; +const char kPrinterFirmware[] = "firmware"; +const char kPrinterManufacturer[] = "manufacturer"; +const char kPrinterModel[] = "model"; +const char kPrinterSetupUrl[] = "setup_url"; +const char kPrinterSupportUrl[] = "support_url"; +const char kPrinterUpdateUrl[] = "update_url"; + +const char kFirmwareValue[] = "2.0"; +const char kManufacturerValue[] = "Google"; +const char kModelValue[] = "GCPPrototype"; // TODO(maksymb): Replace GCP Version with "2.0" once GCP Server will support it const char kGcpVersion[] = "1.5"; @@ -140,6 +150,24 @@ void CloudPrintRequester::StartRegistration(const std::string& proxy_id, net::AddMultipartValueForUpload(kPrinterLocalSettings, LocalSettingsToJson(settings), mime_boundary, std::string(), &data); + net::AddMultipartValueForUpload(kPrinterFirmware, + kFirmwareValue, + mime_boundary, std::string(), &data); + net::AddMultipartValueForUpload(kPrinterManufacturer, + kManufacturerValue, + mime_boundary, std::string(), &data); + net::AddMultipartValueForUpload(kPrinterModel, + kModelValue, + mime_boundary, std::string(), &data); + net::AddMultipartValueForUpload(kPrinterSetupUrl, + kCloudPrintUrl, + mime_boundary, std::string(), &data); + net::AddMultipartValueForUpload(kPrinterSupportUrl, + kCloudPrintUrl, + mime_boundary, std::string(), &data); + net::AddMultipartValueForUpload(kPrinterUpdateUrl, + kCloudPrintUrl, + mime_boundary, std::string(), &data); net::AddMultipartFinalDelimiterForUpload(mime_boundary, &data); request_ = CreatePost( @@ -438,4 +466,3 @@ void CloudPrintRequester::ParseLocalSettingUpdated( const std::string& response) { delegate_->OnLocalSettingsUpdated(); } - |