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

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

Issue 810403004: [Storage] Blob Storage Refactoring pt 1 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed copyright Created 5 years, 11 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 "storage/browser/fileapi/file_system_operation_runner.h" 5 #include "storage/browser/fileapi/file_system_operation_runner.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/message_loop/message_loop_proxy.h" 8 #include "base/message_loop/message_loop_proxy.h"
9 #include "base/stl_util.h" 9 #include "base/stl_util.h"
10 #include "net/url_request/url_request_context.h" 10 #include "net/url_request/url_request_context.h"
11 #include "storage/browser/blob/blob_url_request_job_factory.h" 11 #include "storage/browser/blob/blob_url_request_job_factory.h"
12 #include "storage/browser/blob/shareable_file_reference.h"
12 #include "storage/browser/fileapi/file_observers.h" 13 #include "storage/browser/fileapi/file_observers.h"
13 #include "storage/browser/fileapi/file_stream_writer.h" 14 #include "storage/browser/fileapi/file_stream_writer.h"
14 #include "storage/browser/fileapi/file_system_context.h" 15 #include "storage/browser/fileapi/file_system_context.h"
15 #include "storage/browser/fileapi/file_system_operation.h" 16 #include "storage/browser/fileapi/file_system_operation.h"
16 #include "storage/browser/fileapi/file_writer_delegate.h" 17 #include "storage/browser/fileapi/file_writer_delegate.h"
17 #include "storage/common/blob/shareable_file_reference.h"
18 18
19 namespace storage { 19 namespace storage {
20 20
21 typedef FileSystemOperationRunner::OperationID OperationID; 21 typedef FileSystemOperationRunner::OperationID OperationID;
22 22
23 class FileSystemOperationRunner::BeginOperationScoper 23 class FileSystemOperationRunner::BeginOperationScoper
24 : public base::SupportsWeakPtr< 24 : public base::SupportsWeakPtr<
25 FileSystemOperationRunner::BeginOperationScoper> { 25 FileSystemOperationRunner::BeginOperationScoper> {
26 public: 26 public:
27 BeginOperationScoper() {} 27 BeginOperationScoper() {}
(...skipping 653 matching lines...) Expand 10 before | Expand all | Expand 10 after
681 stray_cancel_callbacks_.find(id); 681 stray_cancel_callbacks_.find(id);
682 if (found_cancel != stray_cancel_callbacks_.end()) { 682 if (found_cancel != stray_cancel_callbacks_.end()) {
683 // This cancel has been requested after the operation has finished, 683 // This cancel has been requested after the operation has finished,
684 // so report that we failed to stop it. 684 // so report that we failed to stop it.
685 found_cancel->second.Run(base::File::FILE_ERROR_INVALID_OPERATION); 685 found_cancel->second.Run(base::File::FILE_ERROR_INVALID_OPERATION);
686 stray_cancel_callbacks_.erase(found_cancel); 686 stray_cancel_callbacks_.erase(found_cancel);
687 } 687 }
688 } 688 }
689 689
690 } // namespace storage 690 } // namespace storage
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698