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

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

Issue 11227033: Move a bunch of code in content\common (as well as a few left in renderer) to the content namespace. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix cros Created 8 years, 1 month 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 "content/common/fileapi/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/fileapi/file_system_dispatcher.h" 8 #include "content/common/fileapi/file_system_dispatcher.h"
9 9
10 namespace content {
10 namespace { 11 namespace {
11 12
12 inline FileSystemDispatcher* GetFileSystemDispatcher() { 13 inline FileSystemDispatcher* GetFileSystemDispatcher() {
13 return ChildThread::current()->file_system_dispatcher(); 14 return ChildThread::current()->file_system_dispatcher();
14 } 15 }
15 } 16 }
16 17
17 class WebFileWriterImpl::CallbackDispatcher 18 class WebFileWriterImpl::CallbackDispatcher
18 : public fileapi::FileSystemCallbackDispatcher { 19 : public fileapi::FileSystemCallbackDispatcher {
19 public: 20 public:
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 const GURL& path, const GURL& blob_url, int64 offset) { 72 const GURL& path, const GURL& blob_url, int64 offset) {
72 GetFileSystemDispatcher()->Write( 73 GetFileSystemDispatcher()->Write(
73 path, blob_url, offset, &request_id_, 74 path, blob_url, offset, &request_id_,
74 new CallbackDispatcher(AsWeakPtr())); 75 new CallbackDispatcher(AsWeakPtr()));
75 } 76 }
76 77
77 void WebFileWriterImpl::DoCancel() { 78 void WebFileWriterImpl::DoCancel() {
78 GetFileSystemDispatcher()->Cancel(request_id_, 79 GetFileSystemDispatcher()->Cancel(request_id_,
79 new CallbackDispatcher(AsWeakPtr())); 80 new CallbackDispatcher(AsWeakPtr()));
80 } 81 }
82
83 } // namespace content
OLDNEW
« no previous file with comments | « content/common/fileapi/webfilewriter_impl.h ('k') | content/common/gpu/client/command_buffer_proxy_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698