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

Side by Side Diff: chrome/browser/chromeos/fileapi/file_system_backend.cc

Issue 559063002: Remove webkit/browser/, point everything to storage/browser/ instead (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: clean up DEPS per feedback Created 6 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
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/fileapi/file_system_backend.h" 5 #include "chrome/browser/chromeos/fileapi/file_system_backend.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "base/strings/stringprintf.h" 9 #include "base/strings/stringprintf.h"
10 #include "chrome/browser/chromeos/fileapi/file_access_permissions.h" 10 #include "chrome/browser/chromeos/fileapi/file_access_permissions.h"
11 #include "chrome/browser/chromeos/fileapi/file_system_backend_delegate.h" 11 #include "chrome/browser/chromeos/fileapi/file_system_backend_delegate.h"
12 #include "chrome/browser/media_galleries/fileapi/media_file_system_backend.h" 12 #include "chrome/browser/media_galleries/fileapi/media_file_system_backend.h"
13 #include "chromeos/dbus/cros_disks_client.h" 13 #include "chromeos/dbus/cros_disks_client.h"
14 #include "webkit/browser/blob/file_stream_reader.h" 14 #include "storage/browser/blob/file_stream_reader.h"
15 #include "webkit/browser/fileapi/async_file_util.h" 15 #include "storage/browser/fileapi/async_file_util.h"
16 #include "webkit/browser/fileapi/external_mount_points.h" 16 #include "storage/browser/fileapi/external_mount_points.h"
17 #include "webkit/browser/fileapi/file_stream_writer.h" 17 #include "storage/browser/fileapi/file_stream_writer.h"
18 #include "webkit/browser/fileapi/file_system_context.h" 18 #include "storage/browser/fileapi/file_system_context.h"
19 #include "webkit/browser/fileapi/file_system_operation.h" 19 #include "storage/browser/fileapi/file_system_operation.h"
20 #include "webkit/browser/fileapi/file_system_operation_context.h" 20 #include "storage/browser/fileapi/file_system_operation_context.h"
21 #include "webkit/browser/fileapi/file_system_url.h" 21 #include "storage/browser/fileapi/file_system_url.h"
22 22
23 namespace chromeos { 23 namespace chromeos {
24 24
25 // static 25 // static
26 bool FileSystemBackend::CanHandleURL(const storage::FileSystemURL& url) { 26 bool FileSystemBackend::CanHandleURL(const storage::FileSystemURL& url) {
27 if (!url.is_valid()) 27 if (!url.is_valid())
28 return false; 28 return false;
29 return url.type() == storage::kFileSystemTypeNativeLocal || 29 return url.type() == storage::kFileSystemTypeNativeLocal ||
30 url.type() == storage::kFileSystemTypeRestrictedNativeLocal || 30 url.type() == storage::kFileSystemTypeRestrictedNativeLocal ||
31 url.type() == storage::kFileSystemTypeDrive || 31 url.type() == storage::kFileSystemTypeDrive ||
(...skipping 378 matching lines...) Expand 10 before | Expand all | Expand 10 after
410 case storage::kFileSystemTypeRestrictedNativeLocal: 410 case storage::kFileSystemTypeRestrictedNativeLocal:
411 callback.Run(GURL()); 411 callback.Run(GURL());
412 return; 412 return;
413 default: 413 default:
414 NOTREACHED(); 414 NOTREACHED();
415 } 415 }
416 callback.Run(GURL()); 416 callback.Run(GURL());
417 } 417 }
418 418
419 } // namespace chromeos 419 } // namespace chromeos
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/fileapi/file_system_backend.h ('k') | chrome/browser/chromeos/fileapi/file_system_backend_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698