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
3 // found in the LICENSE file.
5 #ifndef GOOGLE_APIS_DRIVE_REQUEST_UTIL_H_
6 #define GOOGLE_APIS_DRIVE_REQUEST_UTIL_H_
9 #include "base/memory/scoped_ptr.h"
12 class DictionaryValue
;
15 namespace google_apis
{
18 // If-Match header which matches to all etags.
19 extern const char kIfMatchAllHeader
[];
20 extern const char kContentTypeApplicationJson
[];
22 // Returns If-Match header string for |etag|.
23 // If |etag| is empty, the returned header should match any etag.
24 std::string
GenerateIfMatchHeader(const std::string
& etag
);
26 // Creates a Parent value which can be used as a part of request body.
27 scoped_ptr
<base::DictionaryValue
> CreateParentValue(const std::string
& file_id
);
30 } // namespace google_apis
32 #endif // GOOGLE_APIS_DRIVE_REQUEST_UTIL_H_