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

Side by Side Diff: webkit/browser/blob/local_file_stream_reader.cc

Issue 492873002: Collapse fileapi, webkit_blob, webkit_database, quota, and webkit_common namespaces into single sto… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix chromeos build Created 6 years, 4 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 | Annotate | Revision Log
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/blob/local_file_stream_reader.h" 5 #include "webkit/browser/blob/local_file_stream_reader.h"
6 6
7 #include "base/file_util.h" 7 #include "base/file_util.h"
8 #include "base/files/file_util_proxy.h" 8 #include "base/files/file_util_proxy.h"
9 #include "base/location.h" 9 #include "base/location.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
11 #include "base/task_runner.h" 11 #include "base/task_runner.h"
12 #include "net/base/file_stream.h" 12 #include "net/base/file_stream.h"
13 #include "net/base/io_buffer.h" 13 #include "net/base/io_buffer.h"
14 #include "net/base/net_errors.h" 14 #include "net/base/net_errors.h"
15 15
16 namespace webkit_blob { 16 namespace storage {
17 17
18 namespace { 18 namespace {
19 19
20 const int kOpenFlagsForRead = base::File::FLAG_OPEN | 20 const int kOpenFlagsForRead = base::File::FLAG_OPEN |
21 base::File::FLAG_READ | 21 base::File::FLAG_READ |
22 base::File::FLAG_ASYNC; 22 base::File::FLAG_ASYNC;
23 23
24 } // namespace 24 } // namespace
25 25
26 FileStreamReader* FileStreamReader::CreateForLocalFile( 26 FileStreamReader* FileStreamReader::CreateForLocalFile(
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
159 callback.Run(net::FileErrorToNetError(error)); 159 callback.Run(net::FileErrorToNetError(error));
160 return; 160 return;
161 } 161 }
162 if (!VerifySnapshotTime(expected_modification_time_, file_info)) { 162 if (!VerifySnapshotTime(expected_modification_time_, file_info)) {
163 callback.Run(net::ERR_UPLOAD_FILE_CHANGED); 163 callback.Run(net::ERR_UPLOAD_FILE_CHANGED);
164 return; 164 return;
165 } 165 }
166 callback.Run(file_info.size); 166 callback.Run(file_info.size);
167 } 167 }
168 168
169 } // namespace webkit_blob 169 } // namespace storage
OLDNEW
« no previous file with comments | « webkit/browser/blob/local_file_stream_reader.h ('k') | webkit/browser/blob/view_blob_internals_job.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698