| 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_HELPERS_H_ | 5 #ifndef CHROME_SERVICE_CLOUD_PRINT_CLOUD_PRINT_HELPERS_H_ |
| 6 #define CHROME_SERVICE_CLOUD_PRINT_CLOUD_PRINT_HELPERS_H_ | 6 #define CHROME_SERVICE_CLOUD_PRINT_CLOUD_PRINT_HELPERS_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <map> | 9 #include <map> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 // Generates an MD5 hash of the contents of a string map. | 63 // Generates an MD5 hash of the contents of a string map. |
| 64 static std::string GenerateHashOfStringMap( | 64 static std::string GenerateHashOfStringMap( |
| 65 const std::map<std::string, std::string>& string_map); | 65 const std::map<std::string, std::string>& string_map); |
| 66 static void GenerateMultipartPostDataForPrinterTags( | 66 static void GenerateMultipartPostDataForPrinterTags( |
| 67 const std::map<std::string, std::string>& printer_tags, | 67 const std::map<std::string, std::string>& printer_tags, |
| 68 const std::string& mime_boundary, | 68 const std::string& mime_boundary, |
| 69 std::string* post_data); | 69 std::string* post_data); |
| 70 | 70 |
| 71 // Returns true is tags indicate a dry run (test) job. | 71 // Returns true is tags indicate a dry run (test) job. |
| 72 static bool IsDryRunJob(const std::vector<std::string>& tags); | 72 static bool IsDryRunJob(const std::vector<std::string>& tags); |
| 73 |
| 74 static std::string GetCloudPrintAuthHeader(); |
| 73 private: | 75 private: |
| 74 CloudPrintHelpers() { | 76 CloudPrintHelpers() { |
| 75 } | 77 } |
| 76 }; | 78 }; |
| 77 | 79 |
| 78 #endif // CHROME_SERVICE_CLOUD_PRINT_CLOUD_PRINT_HELPERS_H_ | 80 #endif // CHROME_SERVICE_CLOUD_PRINT_CLOUD_PRINT_HELPERS_H_ |
| OLD | NEW |