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

Side by Side Diff: chrome/browser/chromeos/extensions/file_manager/private_api_file_system.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/extensions/file_manager/private_api_file_syste m.h" 5 #include "chrome/browser/chromeos/extensions/file_manager/private_api_file_syste m.h"
6 6
7 #include <sys/statvfs.h> 7 #include <sys/statvfs.h>
8 #include <set> 8 #include <set>
9 9
10 #include "base/memory/weak_ptr.h" 10 #include "base/memory/weak_ptr.h"
11 #include "base/posix/eintr_wrapper.h" 11 #include "base/posix/eintr_wrapper.h"
12 #include "base/strings/string_number_conversions.h" 12 #include "base/strings/string_number_conversions.h"
13 #include "base/strings/string_util.h" 13 #include "base/strings/string_util.h"
14 #include "base/strings/stringprintf.h" 14 #include "base/strings/stringprintf.h"
15 #include "base/sys_info.h" 15 #include "base/sys_info.h"
16 #include "base/task_runner_util.h" 16 #include "base/task_runner_util.h"
17 #include "base/threading/sequenced_worker_pool.h" 17 #include "base/threading/sequenced_worker_pool.h"
18 #include "chrome/browser/browser_process.h" 18 #include "chrome/browser/browser_process.h"
19 #include "chrome/browser/chromeos/drive/drive.pb.h" 19 #include "chrome/browser/chromeos/drive/drive.pb.h"
20 #include "chrome/browser/chromeos/drive/file_system_interface.h" 20 #include "chrome/browser/chromeos/drive/file_system_interface.h"
21 #include "chrome/browser/chromeos/drive/file_system_util.h" 21 #include "chrome/browser/chromeos/drive/file_system_util.h"
22 #include "chrome/browser/chromeos/extensions/file_manager/event_router.h" 22 #include "chrome/browser/chromeos/extensions/file_manager/event_router.h"
23 #include "chrome/browser/chromeos/extensions/file_manager/event_router_factory.h " 23 #include "chrome/browser/chromeos/extensions/file_manager/event_router_factory.h "
24 #include "chrome/browser/chromeos/extensions/file_manager/private_api_util.h" 24 #include "chrome/browser/chromeos/extensions/file_manager/private_api_util.h"
25 #include "chrome/browser/chromeos/file_manager/fileapi_util.h" 25 #include "chrome/browser/chromeos/file_manager/fileapi_util.h"
26 #include "chrome/browser/chromeos/file_manager/path_util.h" 26 #include "chrome/browser/chromeos/file_manager/path_util.h"
27 #include "chrome/browser/chromeos/file_manager/volume_manager.h" 27 #include "chrome/browser/chromeos/file_manager/volume_manager.h"
28 #include "chrome/browser/chromeos/fileapi/file_system_backend.h" 28 #include "chrome/browser/chromeos/fileapi/file_system_backend.h"
29 #include "chrome/browser/drive/drive_api_util.h"
30 #include "chrome/browser/drive/event_logger.h"
31 #include "chrome/browser/extensions/extension_util.h" 29 #include "chrome/browser/extensions/extension_util.h"
32 #include "chrome/browser/metrics/chrome_metrics_service_accessor.h" 30 #include "chrome/browser/metrics/chrome_metrics_service_accessor.h"
33 #include "chrome/browser/profiles/profile.h" 31 #include "chrome/browser/profiles/profile.h"
34 #include "chrome/browser/profiles/profile_manager.h" 32 #include "chrome/browser/profiles/profile_manager.h"
35 #include "chrome/common/extensions/api/file_manager_private.h" 33 #include "chrome/common/extensions/api/file_manager_private.h"
36 #include "chrome/common/extensions/api/file_manager_private_internal.h" 34 #include "chrome/common/extensions/api/file_manager_private_internal.h"
37 #include "chromeos/disks/disk_mount_manager.h" 35 #include "chromeos/disks/disk_mount_manager.h"
36 #include "components/drive/drive_api_util.h"
37 #include "components/drive/event_logger.h"
38 #include "components/storage_monitor/storage_info.h" 38 #include "components/storage_monitor/storage_info.h"
39 #include "components/storage_monitor/storage_monitor.h" 39 #include "components/storage_monitor/storage_monitor.h"
40 #include "content/public/browser/child_process_security_policy.h" 40 #include "content/public/browser/child_process_security_policy.h"
41 #include "content/public/browser/render_frame_host.h" 41 #include "content/public/browser/render_frame_host.h"
42 #include "content/public/browser/render_process_host.h" 42 #include "content/public/browser/render_process_host.h"
43 #include "content/public/browser/storage_partition.h" 43 #include "content/public/browser/storage_partition.h"
44 #include "content/public/common/url_constants.h" 44 #include "content/public/common/url_constants.h"
45 #include "device/media_transfer_protocol/media_transfer_protocol_manager.h" 45 #include "device/media_transfer_protocol/media_transfer_protocol_manager.h"
46 #include "net/base/escape.h" 46 #include "net/base/escape.h"
47 #include "storage/browser/fileapi/file_stream_reader.h" 47 #include "storage/browser/fileapi/file_stream_reader.h"
(...skipping 894 matching lines...) Expand 10 before | Expand all | Expand 10 after
942 return RespondLater(); 942 return RespondLater();
943 } 943 }
944 944
945 void FileManagerPrivateInternalSetEntryTagFunction::OnSetEntryPropertyCompleted( 945 void FileManagerPrivateInternalSetEntryTagFunction::OnSetEntryPropertyCompleted(
946 drive::FileError result) { 946 drive::FileError result) {
947 Respond(result == drive::FILE_ERROR_OK ? NoArguments() 947 Respond(result == drive::FILE_ERROR_OK ? NoArguments()
948 : Error("Failed to set a tag.")); 948 : Error("Failed to set a tag."));
949 } 949 }
950 950
951 } // namespace extensions 951 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698