| // Copyright 2021 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 GOOGLE_APIS_COMMON_PARSER_UTIL_H_ |
| #define GOOGLE_APIS_COMMON_PARSER_UTIL_H_ |
| |
| #include <string> |
| |
| #include "base/values.h" |
| |
| namespace google_apis { |
| |
| // Common JSON names |
| constexpr char kApiResponseKindKey[] = "kind"; |
| constexpr char kApiResponseIdKey[] = "id"; |
| constexpr char kApiResponseETagKey[] = "etag"; |
| constexpr char kApiResponseItemsKey[] = "items"; |
| constexpr char kApiResponseNameKey[] = "name"; |
| |
| // Checks if the JSON is expected kind. |
| bool IsResourceKindExpected(const base::Value& value, |
| const std::string& expected_kind); |
| |
| } // namespace google_apis |
| |
| #endif // GOOGLE_APIS_COMMON_PARSER_UTIL_H_ |