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

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

Issue 23835005: Remove dependency to file_system_operation_impl.h from chrome/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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 | Annotate | Revision Log
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 "webkit/browser/fileapi/file_system_operation_runner.h" 5 #include "webkit/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 "webkit/browser/fileapi/file_observers.h" 11 #include "webkit/browser/fileapi/file_observers.h"
12 #include "webkit/browser/fileapi/file_stream_writer.h" 12 #include "webkit/browser/fileapi/file_stream_writer.h"
13 #include "webkit/browser/fileapi/file_system_context.h" 13 #include "webkit/browser/fileapi/file_system_context.h"
14 #include "webkit/browser/fileapi/file_system_operation_impl.h" 14 #include "webkit/browser/fileapi/file_system_operation.h"
15 #include "webkit/browser/fileapi/file_writer_delegate.h" 15 #include "webkit/browser/fileapi/file_writer_delegate.h"
16 #include "webkit/common/blob/shareable_file_reference.h" 16 #include "webkit/common/blob/shareable_file_reference.h"
17 17
18 namespace fileapi { 18 namespace fileapi {
19 19
20 typedef FileSystemOperationRunner::OperationID OperationID; 20 typedef FileSystemOperationRunner::OperationID OperationID;
21 21
22 class FileSystemOperationRunner::BeginOperationScoper 22 class FileSystemOperationRunner::BeginOperationScoper
23 : public base::SupportsWeakPtr< 23 : public base::SupportsWeakPtr<
24 FileSystemOperationRunner::BeginOperationScoper> { 24 FileSystemOperationRunner::BeginOperationScoper> {
(...skipping 620 matching lines...) Expand 10 before | Expand all | Expand 10 after
645 stray_cancel_callbacks_.find(id); 645 stray_cancel_callbacks_.find(id);
646 if (found_cancel != stray_cancel_callbacks_.end()) { 646 if (found_cancel != stray_cancel_callbacks_.end()) {
647 // This cancel has been requested after the operation has finished, 647 // This cancel has been requested after the operation has finished,
648 // so report that we failed to stop it. 648 // so report that we failed to stop it.
649 found_cancel->second.Run(base::PLATFORM_FILE_ERROR_INVALID_OPERATION); 649 found_cancel->second.Run(base::PLATFORM_FILE_ERROR_INVALID_OPERATION);
650 stray_cancel_callbacks_.erase(found_cancel); 650 stray_cancel_callbacks_.erase(found_cancel);
651 } 651 }
652 } 652 }
653 653
654 } // namespace fileapi 654 } // namespace fileapi
OLDNEW
« no previous file with comments | « webkit/browser/fileapi/file_system_operation_impl.cc ('k') | webkit/browser/fileapi/isolated_file_system_backend.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698