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

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

Issue 10913184: Move basic operation components for Drive API to chrome/browser/google_apis directory (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase 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 "base/bind.h" 7 #include "base/bind.h"
8 #include "base/file_util.h" 8 #include "base/file_util.h"
9 #include "base/json/json_file_value_serializer.h" 9 #include "base/json/json_file_value_serializer.h"
10 #include "base/message_loop_proxy.h" 10 #include "base/message_loop_proxy.h"
11 #include "base/metrics/histogram.h" 11 #include "base/metrics/histogram.h"
12 #include "base/platform_file.h" 12 #include "base/platform_file.h"
13 #include "base/stringprintf.h" 13 #include "base/stringprintf.h"
14 #include "base/threading/sequenced_worker_pool.h" 14 #include "base/threading/sequenced_worker_pool.h"
15 #include "base/values.h" 15 #include "base/values.h"
16 #include "chrome/browser/api/prefs/pref_change_registrar.h" 16 #include "chrome/browser/api/prefs/pref_change_registrar.h"
17 #include "chrome/browser/chromeos/gdata/drive.pb.h" 17 #include "chrome/browser/chromeos/gdata/drive.pb.h"
18 #include "chrome/browser/chromeos/gdata/drive_api_parser.h" 18 #include "chrome/browser/chromeos/gdata/drive_api_parser.h"
19 #include "chrome/browser/chromeos/gdata/drive_files.h" 19 #include "chrome/browser/chromeos/gdata/drive_files.h"
20 #include "chrome/browser/chromeos/gdata/drive_file_system_util.h" 20 #include "chrome/browser/chromeos/gdata/drive_file_system_util.h"
21 #include "chrome/browser/chromeos/gdata/drive_function_remove.h" 21 #include "chrome/browser/chromeos/gdata/drive_function_remove.h"
22 #include "chrome/browser/chromeos/gdata/drive_service_interface.h" 22 #include "chrome/browser/chromeos/gdata/drive_service_interface.h"
23 #include "chrome/browser/chromeos/gdata/drive_uploader.h" 23 #include "chrome/browser/chromeos/gdata/drive_uploader.h"
24 #include "chrome/browser/chromeos/gdata/gdata_util.h" 24 #include "chrome/browser/chromeos/gdata/gdata_util.h"
25 #include "chrome/browser/chromeos/gdata/gdata_wapi_feed_processor.h" 25 #include "chrome/browser/chromeos/gdata/gdata_wapi_feed_processor.h"
26 #include "chrome/browser/chromeos/gdata/task_util.h" 26 #include "chrome/browser/google_apis/task_util.h"
27 #include "chrome/browser/prefs/pref_service.h" 27 #include "chrome/browser/prefs/pref_service.h"
28 #include "chrome/browser/profiles/profile.h" 28 #include "chrome/browser/profiles/profile.h"
29 #include "chrome/common/chrome_notification_types.h" 29 #include "chrome/common/chrome_notification_types.h"
30 #include "chrome/common/pref_names.h" 30 #include "chrome/common/pref_names.h"
31 #include "content/public/browser/browser_thread.h" 31 #include "content/public/browser/browser_thread.h"
32 #include "content/public/browser/notification_details.h" 32 #include "content/public/browser/notification_details.h"
33 #include "net/base/mime_util.h" 33 #include "net/base/mime_util.h"
34 34
35 using content::BrowserThread; 35 using content::BrowserThread;
36 36
(...skipping 3191 matching lines...) Expand 10 before | Expand all | Expand 10 after
3228 return; 3228 return;
3229 } 3229 }
3230 3230
3231 PlatformFileInfoProto entry_file_info; 3231 PlatformFileInfoProto entry_file_info;
3232 DriveEntry::ConvertPlatformFileInfoToProto(*file_info, &entry_file_info); 3232 DriveEntry::ConvertPlatformFileInfoToProto(*file_info, &entry_file_info);
3233 *entry_proto->mutable_file_info() = entry_file_info; 3233 *entry_proto->mutable_file_info() = entry_file_info;
3234 callback.Run(DRIVE_FILE_OK, entry_proto.Pass()); 3234 callback.Run(DRIVE_FILE_OK, entry_proto.Pass());
3235 } 3235 }
3236 3236
3237 } // namespace gdata 3237 } // namespace gdata
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/gdata/drive_file_system.h ('k') | chrome/browser/chromeos/gdata/drive_file_system_proxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698