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

Side by Side Diff: content/common/fileapi/webfilewriter_impl.cc

Issue 9558006: Rename content/{common,browser}/file_system to fileapi and move blob stuff into it. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 8 years, 9 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 "content/common/file_system/webfilewriter_impl.h" 5 #include "content/common/fileapi/webfilewriter_impl.h"
6 6
7 #include "content/common/child_thread.h" 7 #include "content/common/child_thread.h"
8 #include "content/common/file_system/file_system_dispatcher.h" 8 #include "content/common/fileapi/file_system_dispatcher.h"
9 9
10 namespace { 10 namespace {
11 11
12 inline FileSystemDispatcher* GetFileSystemDispatcher() { 12 inline FileSystemDispatcher* GetFileSystemDispatcher() {
13 return ChildThread::current()->file_system_dispatcher(); 13 return ChildThread::current()->file_system_dispatcher();
14 } 14 }
15 } 15 }
16 16
17 class WebFileWriterImpl::CallbackDispatcher 17 class WebFileWriterImpl::CallbackDispatcher
18 : public fileapi::FileSystemCallbackDispatcher { 18 : public fileapi::FileSystemCallbackDispatcher {
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 const GURL& path, const GURL& blob_url, int64 offset) { 71 const GURL& path, const GURL& blob_url, int64 offset) {
72 GetFileSystemDispatcher()->Write( 72 GetFileSystemDispatcher()->Write(
73 path, blob_url, offset, &request_id_, 73 path, blob_url, offset, &request_id_,
74 new CallbackDispatcher(AsWeakPtr())); 74 new CallbackDispatcher(AsWeakPtr()));
75 } 75 }
76 76
77 void WebFileWriterImpl::DoCancel() { 77 void WebFileWriterImpl::DoCancel() {
78 GetFileSystemDispatcher()->Cancel(request_id_, 78 GetFileSystemDispatcher()->Cancel(request_id_,
79 new CallbackDispatcher(AsWeakPtr())); 79 new CallbackDispatcher(AsWeakPtr()));
80 } 80 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698