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

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

Issue 1139323003: Discard duplicate includes of files from storage (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed Review Comments Created 5 years, 7 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 "storage/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 "storage/browser/fileapi/file_stream_reader.h"
13 #include "storage/browser/fileapi/file_system_context.h" 12 #include "storage/browser/fileapi/file_system_context.h"
14 #include "storage/browser/fileapi/file_system_operation_runner.h" 13 #include "storage/browser/fileapi/file_system_operation_runner.h"
15 14
16 using storage::FileStreamReader; 15 using storage::FileStreamReader;
17 16
18 // TODO(kinuko): Remove this temporary namespace hack after we move both 17 // TODO(kinuko): Remove this temporary namespace hack after we move both
19 // blob and fileapi into content namespace. 18 // blob and fileapi into content namespace.
20 namespace storage { 19 namespace storage {
21 20
22 FileStreamReader* FileStreamReader::CreateForFileSystemFile( 21 FileStreamReader* FileStreamReader::CreateForFileSystemFile(
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 130
132 local_file_reader_.reset( 131 local_file_reader_.reset(
133 FileStreamReader::CreateForLocalFile( 132 FileStreamReader::CreateForLocalFile(
134 file_system_context_->default_file_task_runner(), 133 file_system_context_->default_file_task_runner(),
135 platform_path, initial_offset_, expected_modification_time_)); 134 platform_path, initial_offset_, expected_modification_time_));
136 135
137 callback.Run(); 136 callback.Run();
138 } 137 }
139 138
140 } // namespace storage 139 } // namespace storage
OLDNEW
« no previous file with comments | « storage/browser/fileapi/file_system_dir_url_request_job.cc ('k') | storage/browser/fileapi/file_system_operation_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698