Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(443)

Side by Side Diff: chrome/browser/chromeos/drive/file_system/search_operation.cc

Issue 1190203002: Move (most of) chrome/browser/drive into components/drive/service. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebasing... Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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/change_list_loader.h" 14 #include "chrome/browser/chromeos/drive/change_list_loader.h"
15 #include "chrome/browser/chromeos/drive/file_system_core_util.h" 15 #include "chrome/browser/chromeos/drive/file_system_core_util.h"
16 #include "chrome/browser/chromeos/drive/job_scheduler.h" 16 #include "chrome/browser/chromeos/drive/job_scheduler.h"
17 #include "chrome/browser/chromeos/drive/resource_entry_conversion.h" 17 #include "chrome/browser/chromeos/drive/resource_entry_conversion.h"
18 #include "chrome/browser/chromeos/drive/resource_metadata.h" 18 #include "chrome/browser/chromeos/drive/resource_metadata.h"
19 #include "chrome/browser/drive/drive_api_util.h" 19 #include "components/drive/drive_api_util.h"
20 #include "google_apis/drive/drive_api_parser.h" 20 #include "google_apis/drive/drive_api_parser.h"
21 #include "url/gurl.h" 21 #include "url/gurl.h"
22 22
23 namespace drive { 23 namespace drive {
24 namespace file_system { 24 namespace file_system {
25 namespace { 25 namespace {
26 26
27 // Computes the path of each item in |file_list| returned from the server 27 // Computes the path of each item in |file_list| returned from the server
28 // and stores to |result|, by using |resource_metadata|. If the metadata is not 28 // and stores to |result|, by using |resource_metadata|. If the metadata is not
29 // up-to-date and did not contain an item, adds the item to "drive/other" for 29 // up-to-date and did not contain an item, adds the item to "drive/other" for
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
171 if (error != FILE_ERROR_OK) { 171 if (error != FILE_ERROR_OK) {
172 callback.Run(error, GURL(), scoped_ptr<std::vector<SearchResultInfo> >()); 172 callback.Run(error, GURL(), scoped_ptr<std::vector<SearchResultInfo> >());
173 return; 173 return;
174 } 174 }
175 175
176 callback.Run(error, next_link, result.Pass()); 176 callback.Run(error, next_link, result.Pass());
177 } 177 }
178 178
179 } // namespace file_system 179 } // namespace file_system
180 } // namespace drive 180 } // namespace drive
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698