OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 #include "chrome/browser/google_apis/drive_api_parser.h" | 5 #include "google_apis/drive/drive_api_parser.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 | 8 |
9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
10 #include "base/files/file_path.h" | 10 #include "base/files/file_path.h" |
11 #include "base/json/json_value_converter.h" | 11 #include "base/json/json_value_converter.h" |
12 #include "base/memory/scoped_ptr.h" | 12 #include "base/memory/scoped_ptr.h" |
13 #include "base/strings/string_number_conversions.h" | 13 #include "base/strings/string_number_conversions.h" |
14 #include "base/strings/string_piece.h" | 14 #include "base/strings/string_piece.h" |
15 #include "base/strings/string_util.h" | 15 #include "base/strings/string_util.h" |
16 #include "base/values.h" | 16 #include "base/values.h" |
17 #include "chrome/browser/google_apis/time_util.h" | 17 #include "google_apis/drive/time_util.h" |
18 | 18 |
19 using base::Value; | 19 using base::Value; |
20 using base::DictionaryValue; | 20 using base::DictionaryValue; |
21 using base::ListValue; | 21 using base::ListValue; |
22 | 22 |
23 namespace google_apis { | 23 namespace google_apis { |
24 | 24 |
25 namespace { | 25 namespace { |
26 | 26 |
27 bool CreateFileResourceFromValue(const base::Value* value, | 27 bool CreateFileResourceFromValue(const base::Value* value, |
(...skipping 690 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
718 return true; | 718 return true; |
719 base::JSONValueConverter<ImageMediaMetadata> converter; | 719 base::JSONValueConverter<ImageMediaMetadata> converter; |
720 if (!converter.Convert(value, this)) { | 720 if (!converter.Convert(value, this)) { |
721 LOG(ERROR) << "Unable to parse: Invalid ImageMediaMetadata."; | 721 LOG(ERROR) << "Unable to parse: Invalid ImageMediaMetadata."; |
722 return false; | 722 return false; |
723 } | 723 } |
724 return true; | 724 return true; |
725 } | 725 } |
726 | 726 |
727 } // namespace google_apis | 727 } // namespace google_apis |
OLD | NEW |