Add missing CdmKeyInformation enum values
[chromium-blink-merge.git] / google_apis / drive / request_util.h
blob1dc6f5efb668cc2e4e7430ad4dc7c40f27cbdc38
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_
8 #include <string>
9 #include "base/memory/scoped_ptr.h"
11 namespace base {
12 class DictionaryValue;
15 namespace google_apis {
16 namespace util {
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);
29 } // namespace util
30 } // namespace google_apis
32 #endif // GOOGLE_APIS_DRIVE_REQUEST_UTIL_H_