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

Side by Side Diff: chrome/browser/chromeos/gdata/drive_file_system.cc

Issue 10920091: Move Drive API files to google_apis directory (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix dependency problem Created 8 years, 3 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 | Annotate | Revision Log
OLDNEW
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/chromeos/gdata/drive_file_system.h" 5 #include "chrome/browser/chromeos/gdata/drive_file_system.h"
6 6
7 #include <set> 7 #include <set>
8 #include <utility> 8 #include <utility>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
11 #include "base/file_util.h" 11 #include "base/file_util.h"
12 #include "base/json/json_file_value_serializer.h" 12 #include "base/json/json_file_value_serializer.h"
13 #include "base/message_loop_proxy.h" 13 #include "base/message_loop_proxy.h"
14 #include "base/metrics/histogram.h" 14 #include "base/metrics/histogram.h"
15 #include "base/platform_file.h" 15 #include "base/platform_file.h"
16 #include "base/stringprintf.h" 16 #include "base/stringprintf.h"
17 #include "base/threading/sequenced_worker_pool.h" 17 #include "base/threading/sequenced_worker_pool.h"
18 #include "base/values.h" 18 #include "base/values.h"
19 #include "chrome/browser/chromeos/gdata/drive.pb.h" 19 #include "chrome/browser/chromeos/gdata/drive.pb.h"
20 #include "chrome/browser/chromeos/gdata/drive_api_parser.h"
21 #include "chrome/browser/chromeos/gdata/drive_files.h" 20 #include "chrome/browser/chromeos/gdata/drive_files.h"
22 #include "chrome/browser/chromeos/gdata/drive_file_system_util.h" 21 #include "chrome/browser/chromeos/gdata/drive_file_system_util.h"
23 #include "chrome/browser/chromeos/gdata/drive_function_remove.h" 22 #include "chrome/browser/chromeos/gdata/drive_function_remove.h"
24 #include "chrome/browser/chromeos/gdata/drive_service_interface.h" 23 #include "chrome/browser/chromeos/gdata/drive_service_interface.h"
25 #include "chrome/browser/chromeos/gdata/drive_system_service.h" 24 #include "chrome/browser/chromeos/gdata/drive_system_service.h"
26 #include "chrome/browser/chromeos/gdata/drive_uploader.h" 25 #include "chrome/browser/chromeos/gdata/drive_uploader.h"
27 #include "chrome/browser/chromeos/gdata/drive_webapps_registry.h" 26 #include "chrome/browser/chromeos/gdata/drive_webapps_registry.h"
28 #include "chrome/browser/chromeos/gdata/gdata_util.h"
29 #include "chrome/browser/chromeos/gdata/task_util.h" 27 #include "chrome/browser/chromeos/gdata/task_util.h"
28 #include "chrome/browser/google_api/drive_api_parser.h"
29 #include "chrome/browser/google_api/gdata_util.h"
30 #include "chrome/browser/prefs/pref_service.h" 30 #include "chrome/browser/prefs/pref_service.h"
31 #include "chrome/browser/profiles/profile.h" 31 #include "chrome/browser/profiles/profile.h"
32 #include "chrome/common/chrome_notification_types.h" 32 #include "chrome/common/chrome_notification_types.h"
33 #include "chrome/common/pref_names.h" 33 #include "chrome/common/pref_names.h"
34 #include "content/public/browser/browser_thread.h" 34 #include "content/public/browser/browser_thread.h"
35 #include "content/public/browser/notification_details.h" 35 #include "content/public/browser/notification_details.h"
36 #include "net/base/mime_util.h" 36 #include "net/base/mime_util.h"
37 37
38 using content::BrowserThread; 38 using content::BrowserThread;
39 39
(...skipping 3178 matching lines...) Expand 10 before | Expand all | Expand 10 after
3218 return; 3218 return;
3219 } 3219 }
3220 3220
3221 PlatformFileInfoProto entry_file_info; 3221 PlatformFileInfoProto entry_file_info;
3222 DriveEntry::ConvertPlatformFileInfoToProto(*file_info, &entry_file_info); 3222 DriveEntry::ConvertPlatformFileInfoToProto(*file_info, &entry_file_info);
3223 *entry_proto->mutable_file_info() = entry_file_info; 3223 *entry_proto->mutable_file_info() = entry_file_info;
3224 callback.Run(DRIVE_FILE_OK, entry_proto.Pass()); 3224 callback.Run(DRIVE_FILE_OK, entry_proto.Pass());
3225 } 3225 }
3226 3226
3227 } // namespace gdata 3227 } // namespace gdata
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698