OLD | NEW |
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 "webkit/browser/chromeos/fileapi/cros_mount_point_provider.h" | 5 #include "webkit/browser/chromeos/fileapi/cros_mount_point_provider.h" |
6 | 6 |
7 #include "base/chromeos/chromeos_version.h" | 7 #include "base/chromeos/chromeos_version.h" |
8 #include "base/logging.h" | 8 #include "base/logging.h" |
9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
10 #include "base/message_loop.h" | 10 #include "base/message_loop.h" |
11 #include "base/path_service.h" | 11 #include "base/path_service.h" |
12 #include "base/stringprintf.h" | 12 #include "base/strings/stringprintf.h" |
13 #include "base/strings/utf_string_conversions.h" | 13 #include "base/strings/utf_string_conversions.h" |
14 #include "base/synchronization/lock.h" | 14 #include "base/synchronization/lock.h" |
15 #include "chromeos/dbus/cros_disks_client.h" | 15 #include "chromeos/dbus/cros_disks_client.h" |
16 #include "third_party/WebKit/public/platform/WebCString.h" | 16 #include "third_party/WebKit/public/platform/WebCString.h" |
17 #include "third_party/WebKit/public/platform/WebFileSystem.h" | 17 #include "third_party/WebKit/public/platform/WebFileSystem.h" |
18 #include "third_party/WebKit/public/platform/WebString.h" | 18 #include "third_party/WebKit/public/platform/WebString.h" |
19 #include "webkit/browser/chromeos/fileapi/file_access_permissions.h" | 19 #include "webkit/browser/chromeos/fileapi/file_access_permissions.h" |
20 #include "webkit/browser/chromeos/fileapi/remote_file_stream_writer.h" | 20 #include "webkit/browser/chromeos/fileapi/remote_file_stream_writer.h" |
21 #include "webkit/browser/chromeos/fileapi/remote_file_system_operation.h" | 21 #include "webkit/browser/chromeos/fileapi/remote_file_system_operation.h" |
22 #include "webkit/browser/fileapi/async_file_util_adapter.h" | 22 #include "webkit/browser/fileapi/async_file_util_adapter.h" |
(...skipping 339 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
362 std::string mount_name = url.filesystem_id(); | 362 std::string mount_name = url.filesystem_id(); |
363 if (!mount_points_->GetRegisteredPath(mount_name, &root_path) && | 363 if (!mount_points_->GetRegisteredPath(mount_name, &root_path) && |
364 !system_mount_points_->GetRegisteredPath(mount_name, &root_path)) { | 364 !system_mount_points_->GetRegisteredPath(mount_name, &root_path)) { |
365 return base::FilePath(); | 365 return base::FilePath(); |
366 } | 366 } |
367 | 367 |
368 return root_path.DirName(); | 368 return root_path.DirName(); |
369 } | 369 } |
370 | 370 |
371 } // namespace chromeos | 371 } // namespace chromeos |
OLD | NEW |