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

Side by Side Diff: storage/browser/fileapi/file_system_file_stream_reader.cc

Issue 539143002: Migrate webkit/browser/ to storage/browser/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix android build 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 (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/fileapi/file_system_file_stream_reader.h" 5 #include "storage/browser/fileapi/file_system_file_stream_reader.h"
6 6
7 #include "base/files/file_util_proxy.h" 7 #include "base/files/file_util_proxy.h"
8 #include "base/single_thread_task_runner.h" 8 #include "base/single_thread_task_runner.h"
9 #include "net/base/file_stream.h" 9 #include "net/base/file_stream.h"
10 #include "net/base/io_buffer.h" 10 #include "net/base/io_buffer.h"
11 #include "net/base/net_errors.h" 11 #include "net/base/net_errors.h"
12 #include "webkit/browser/blob/file_stream_reader.h" 12 #include "storage/browser/blob/file_stream_reader.h"
13 #include "webkit/browser/fileapi/file_system_context.h" 13 #include "storage/browser/fileapi/file_system_context.h"
14 #include "webkit/browser/fileapi/file_system_operation_runner.h" 14 #include "storage/browser/fileapi/file_system_operation_runner.h"
15 15
16 using storage::FileStreamReader; 16 using storage::FileStreamReader;
17 17
18 // TODO(kinuko): Remove this temporary namespace hack after we move both 18 // TODO(kinuko): Remove this temporary namespace hack after we move both
19 // blob and fileapi into content namespace. 19 // blob and fileapi into content namespace.
20 namespace storage { 20 namespace storage {
21 21
22 FileStreamReader* FileStreamReader::CreateForFileSystemFile( 22 FileStreamReader* FileStreamReader::CreateForFileSystemFile(
23 storage::FileSystemContext* file_system_context, 23 storage::FileSystemContext* file_system_context,
24 const storage::FileSystemURL& url, 24 const storage::FileSystemURL& url,
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 131
132 local_file_reader_.reset( 132 local_file_reader_.reset(
133 FileStreamReader::CreateForLocalFile( 133 FileStreamReader::CreateForLocalFile(
134 file_system_context_->default_file_task_runner(), 134 file_system_context_->default_file_task_runner(),
135 platform_path, initial_offset_, expected_modification_time_)); 135 platform_path, initial_offset_, expected_modification_time_));
136 136
137 callback.Run(); 137 callback.Run();
138 } 138 }
139 139
140 } // namespace storage 140 } // namespace storage
OLDNEW
« no previous file with comments | « storage/browser/fileapi/file_system_file_stream_reader.h ('k') | storage/browser/fileapi/file_system_file_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698