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

Side by Side Diff: content/common/fileapi/webfilesystem_callback_dispatcher.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/webfilesystem_callback_dispatcher.h" 5 #include "content/common/fileapi/webfilesystem_callback_dispatcher.h"
6 6
7 #include <string> 7 #include <string>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/file_util_proxy.h" 10 #include "base/file_util_proxy.h"
11 #include "base/logging.h" 11 #include "base/logging.h"
12 #include "base/utf_string_conversions.h" 12 #include "base/utf_string_conversions.h"
13 #include "googleurl/src/gurl.h" 13 #include "googleurl/src/gurl.h"
14 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFileInfo.h" 14 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFileInfo.h"
15 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebFileSyste m.h" 15 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebFileSyste m.h"
16 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFileSystemCallback s.h" 16 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFileSystemCallback s.h"
17 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebString.h" 17 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebString.h"
18 #include "webkit/fileapi/file_system_util.h" 18 #include "webkit/fileapi/file_system_util.h"
19 #include "webkit/glue/webkit_glue.h" 19 #include "webkit/glue/webkit_glue.h"
20 20
21 using WebKit::WebFileInfo; 21 using WebKit::WebFileInfo;
22 using WebKit::WebFileSystemCallbacks; 22 using WebKit::WebFileSystemCallbacks;
23 using WebKit::WebFileSystemEntry; 23 using WebKit::WebFileSystemEntry;
24 using WebKit::WebString; 24 using WebKit::WebString;
25 using WebKit::WebVector; 25 using WebKit::WebVector;
26 26
27 namespace content {
28
27 WebFileSystemCallbackDispatcher::WebFileSystemCallbackDispatcher( 29 WebFileSystemCallbackDispatcher::WebFileSystemCallbackDispatcher(
28 WebFileSystemCallbacks* callbacks) 30 WebFileSystemCallbacks* callbacks)
29 : callbacks_(callbacks) { 31 : callbacks_(callbacks) {
30 DCHECK(callbacks_); 32 DCHECK(callbacks_);
31 } 33 }
32 34
33 void WebFileSystemCallbackDispatcher::DidSucceed() { 35 void WebFileSystemCallbackDispatcher::DidSucceed() {
34 callbacks_->didSucceed(); 36 callbacks_->didSucceed();
35 } 37 }
36 38
(...skipping 23 matching lines...) Expand all
60 62
61 void WebFileSystemCallbackDispatcher::DidFail( 63 void WebFileSystemCallbackDispatcher::DidFail(
62 base::PlatformFileError error_code) { 64 base::PlatformFileError error_code) {
63 callbacks_->didFail( 65 callbacks_->didFail(
64 fileapi::PlatformFileErrorToWebFileError(error_code)); 66 fileapi::PlatformFileErrorToWebFileError(error_code));
65 } 67 }
66 68
67 void WebFileSystemCallbackDispatcher::DidWrite(int64 bytes, bool complete) { 69 void WebFileSystemCallbackDispatcher::DidWrite(int64 bytes, bool complete) {
68 NOTREACHED(); 70 NOTREACHED();
69 } 71 }
72
73 } // namespace content
OLDNEW
« no previous file with comments | « content/common/fileapi/webfilesystem_callback_dispatcher.h ('k') | content/common/fileapi/webfilesystem_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698