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 #include "chrome/common/cloud_print/cloud_print_helpers.h" | 5 #include "chrome/common/cloud_print/cloud_print_helpers.h" |
6 | 6 |
7 #include "base/json/json_reader.h" | 7 #include "base/json/json_reader.h" |
8 #include "base/logging.h" | 8 #include "base/logging.h" |
9 #include "base/md5.h" | 9 #include "base/md5.h" |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
11 #include "base/rand_util.h" | 11 #include "base/rand_util.h" |
12 #include "base/stringprintf.h" | 12 #include "base/strings/stringprintf.h" |
13 #include "base/sys_info.h" | 13 #include "base/sys_info.h" |
14 #include "base/values.h" | 14 #include "base/values.h" |
15 #include "chrome/common/chrome_version_info.h" | 15 #include "chrome/common/chrome_version_info.h" |
16 #include "chrome/common/cloud_print/cloud_print_constants.h" | 16 #include "chrome/common/cloud_print/cloud_print_constants.h" |
17 #include "googleurl/src/gurl.h" | 17 #include "googleurl/src/gurl.h" |
18 #include "net/base/mime_util.h" | 18 #include "net/base/mime_util.h" |
19 | 19 |
20 namespace cloud_print { | 20 namespace cloud_print { |
21 | 21 |
22 namespace { | 22 namespace { |
(...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
231 net::AddMultipartValueForUpload(kPrinterTagValue, tags_hash_msg, | 231 net::AddMultipartValueForUpload(kPrinterTagValue, tags_hash_msg, |
232 mime_boundary, std::string(), &post_data); | 232 mime_boundary, std::string(), &post_data); |
233 return post_data; | 233 return post_data; |
234 } | 234 } |
235 | 235 |
236 std::string GetCloudPrintAuthHeader(const std::string& auth_token) { | 236 std::string GetCloudPrintAuthHeader(const std::string& auth_token) { |
237 return base::StringPrintf("Authorization: OAuth %s", auth_token.c_str()); | 237 return base::StringPrintf("Authorization: OAuth %s", auth_token.c_str()); |
238 } | 238 } |
239 | 239 |
240 } // namespace cloud_print | 240 } // namespace cloud_print |
OLD | NEW |