summaryrefslogtreecommitdiffstats
path: root/chrome/browser/google_apis/request_util.h
blob: 087d85123a8e64a960b6036a9dbe976cf4b210b7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// Copyright (c) 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef CHROME_BROWSER_GOOGLE_APIS_REQUEST_UTIL_H_
#define CHROME_BROWSER_GOOGLE_APIS_REQUEST_UTIL_H_

#include <string>

namespace google_apis {
namespace util {

// If-Match header which matches to all etags.
extern const char kIfMatchAllHeader[];

// Returns If-Match header string for |etag|.
// If |etag| is empty, the returned header should match any etag.
std::string GenerateIfMatchHeader(const std::string& etag);

}  // namespace util
}  // namespace google_apis

#endif  // CHROME_BROWSER_GOOGLE_APIS_REQUEST_UTIL_H_