OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 "components/drive/file_system_core_util.h" | 5 #include "components/drive/file_system_core_util.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
11 #include <string> | 11 #include <string> |
12 #include <vector> | 12 #include <vector> |
13 | 13 |
14 #include "base/bind.h" | 14 #include "base/bind.h" |
15 #include "base/bind_helpers.h" | 15 #include "base/bind_helpers.h" |
16 #include "base/files/file_path.h" | 16 #include "base/files/file_path.h" |
17 #include "base/files/file_util.h" | 17 #include "base/files/file_util.h" |
18 #include "base/i18n/icu_string_conversions.h" | 18 #include "base/i18n/icu_string_conversions.h" |
19 #include "base/json/json_file_value_serializer.h" | 19 #include "base/json/json_file_value_serializer.h" |
20 #include "base/logging.h" | 20 #include "base/logging.h" |
21 #include "base/strings/string_number_conversions.h" | 21 #include "base/strings/string_number_conversions.h" |
22 #include "base/strings/string_util.h" | 22 #include "base/strings/string_util.h" |
23 #include "base/strings/stringprintf.h" | 23 #include "base/strings/stringprintf.h" |
24 #include "base/thread_task_runner_handle.h" | |
25 #include "base/threading/sequenced_worker_pool.h" | 24 #include "base/threading/sequenced_worker_pool.h" |
| 25 #include "base/threading/thread_task_runner_handle.h" |
26 #include "components/drive/drive.pb.h" | 26 #include "components/drive/drive.pb.h" |
27 #include "components/drive/drive_pref_names.h" | 27 #include "components/drive/drive_pref_names.h" |
28 #include "components/drive/job_list.h" | 28 #include "components/drive/job_list.h" |
29 #include "components/prefs/pref_service.h" | 29 #include "components/prefs/pref_service.h" |
30 | 30 |
31 namespace drive { | 31 namespace drive { |
32 namespace util { | 32 namespace util { |
33 | 33 |
34 namespace { | 34 namespace { |
35 | 35 |
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
136 GURL ReadUrlFromGDocFile(const base::FilePath& file_path) { | 136 GURL ReadUrlFromGDocFile(const base::FilePath& file_path) { |
137 return GURL(ReadStringFromGDocFile(file_path, "url")); | 137 return GURL(ReadStringFromGDocFile(file_path, "url")); |
138 } | 138 } |
139 | 139 |
140 std::string ReadResourceIdFromGDocFile(const base::FilePath& file_path) { | 140 std::string ReadResourceIdFromGDocFile(const base::FilePath& file_path) { |
141 return ReadStringFromGDocFile(file_path, "resource_id"); | 141 return ReadStringFromGDocFile(file_path, "resource_id"); |
142 } | 142 } |
143 | 143 |
144 } // namespace util | 144 } // namespace util |
145 } // namespace drive | 145 } // namespace drive |
OLD | NEW |