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

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

Issue 1139323003: Discard duplicate includes of files from storage (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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/local_file_stream_writer.h" 5 #include "storage/browser/fileapi/local_file_stream_writer.h"
6 6
7 #include "base/callback.h"
8 #include "base/message_loop/message_loop.h" 7 #include "base/message_loop/message_loop.h"
9 #include "net/base/file_stream.h" 8 #include "net/base/file_stream.h"
10 #include "net/base/io_buffer.h" 9 #include "net/base/io_buffer.h"
11 #include "net/base/net_errors.h" 10 #include "net/base/net_errors.h"
12 11
13 namespace storage { 12 namespace storage {
14 13
15 namespace { 14 namespace {
16 15
17 const int kOpenFlagsForWrite = base::File::FLAG_OPEN | 16 const int kOpenFlagsForWrite = base::File::FLAG_OPEN |
(...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after
248 return false; 247 return false;
249 248
250 net::CompletionCallback pending_cancel = cancel_callback_; 249 net::CompletionCallback pending_cancel = cancel_callback_;
251 has_pending_operation_ = false; 250 has_pending_operation_ = false;
252 cancel_callback_.Reset(); 251 cancel_callback_.Reset();
253 pending_cancel.Run(net::OK); 252 pending_cancel.Run(net::OK);
254 return true; 253 return true;
255 } 254 }
256 255
257 } // namespace storage 256 } // namespace storage
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698