| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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_GOOGLE_APIS_REQUEST_UTIL_H_ | 5 #ifndef GOOGLE_APIS_DRIVE_REQUEST_UTIL_H_ |
| 6 #define CHROME_BROWSER_GOOGLE_APIS_REQUEST_UTIL_H_ | 6 #define GOOGLE_APIS_DRIVE_REQUEST_UTIL_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 namespace google_apis { | 10 namespace google_apis { |
| 11 namespace util { | 11 namespace util { |
| 12 | 12 |
| 13 // If-Match header which matches to all etags. | 13 // If-Match header which matches to all etags. |
| 14 extern const char kIfMatchAllHeader[]; | 14 extern const char kIfMatchAllHeader[]; |
| 15 | 15 |
| 16 // Returns If-Match header string for |etag|. | 16 // Returns If-Match header string for |etag|. |
| 17 // If |etag| is empty, the returned header should match any etag. | 17 // If |etag| is empty, the returned header should match any etag. |
| 18 std::string GenerateIfMatchHeader(const std::string& etag); | 18 std::string GenerateIfMatchHeader(const std::string& etag); |
| 19 | 19 |
| 20 } // namespace util | 20 } // namespace util |
| 21 } // namespace google_apis | 21 } // namespace google_apis |
| 22 | 22 |
| 23 #endif // CHROME_BROWSER_GOOGLE_APIS_REQUEST_UTIL_H_ | 23 #endif // GOOGLE_APIS_DRIVE_REQUEST_UTIL_H_ |
| OLD | NEW |