OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/chromeos/drive/file_system/search_operation.h" | 5 #include "chrome/browser/chromeos/drive/file_system/search_operation.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/bind.h" | 10 #include "base/bind.h" |
11 #include "base/bind_helpers.h" | 11 #include "base/bind_helpers.h" |
12 #include "base/callback.h" | 12 #include "base/callback.h" |
13 #include "base/task_runner_util.h" | 13 #include "base/task_runner_util.h" |
14 #include "chrome/browser/chromeos/drive/file_system_util.h" | 14 #include "chrome/browser/chromeos/drive/file_system_util.h" |
15 #include "chrome/browser/chromeos/drive/job_scheduler.h" | 15 #include "chrome/browser/chromeos/drive/job_scheduler.h" |
16 #include "chrome/browser/chromeos/drive/resource_entry_conversion.h" | 16 #include "chrome/browser/chromeos/drive/resource_entry_conversion.h" |
17 #include "chrome/browser/chromeos/drive/resource_metadata.h" | 17 #include "chrome/browser/chromeos/drive/resource_metadata.h" |
18 #include "chrome/browser/google_apis/gdata_wapi_parser.h" | |
19 #include "content/public/browser/browser_thread.h" | 18 #include "content/public/browser/browser_thread.h" |
| 19 #include "google_apis/drive/gdata_wapi_parser.h" |
20 #include "url/gurl.h" | 20 #include "url/gurl.h" |
21 | 21 |
22 using content::BrowserThread; | 22 using content::BrowserThread; |
23 | 23 |
24 namespace drive { | 24 namespace drive { |
25 namespace file_system { | 25 namespace file_system { |
26 namespace { | 26 namespace { |
27 | 27 |
28 // Computes the path of each item in |resource_list| returned from the server | 28 // Computes the path of each item in |resource_list| returned from the server |
29 // and stores to |result|, by using |resource_metadata|. If the metadata is not | 29 // and stores to |result|, by using |resource_metadata|. If the metadata is not |
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
164 if (error != FILE_ERROR_OK) { | 164 if (error != FILE_ERROR_OK) { |
165 callback.Run(error, GURL(), scoped_ptr<std::vector<SearchResultInfo> >()); | 165 callback.Run(error, GURL(), scoped_ptr<std::vector<SearchResultInfo> >()); |
166 return; | 166 return; |
167 } | 167 } |
168 | 168 |
169 callback.Run(error, next_link, result.Pass()); | 169 callback.Run(error, next_link, result.Pass()); |
170 } | 170 } |
171 | 171 |
172 } // namespace file_system | 172 } // namespace file_system |
173 } // namespace drive | 173 } // namespace drive |
OLD | NEW |