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

Side by Side Diff: webkit/fileapi/file_system_callback_dispatcher.h

Issue 10447055: Move fileapi into its own component (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Cleanup Created 8 years, 6 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
« no previous file with comments | « webkit/blob/webkit_blob.gypi ('k') | webkit/fileapi/file_system_context.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #ifndef WEBKIT_FILEAPI_FILE_SYSTEM_CALLBACK_DISPATCHER_H_ 5 #ifndef WEBKIT_FILEAPI_FILE_SYSTEM_CALLBACK_DISPATCHER_H_
6 #define WEBKIT_FILEAPI_FILE_SYSTEM_CALLBACK_DISPATCHER_H_ 6 #define WEBKIT_FILEAPI_FILE_SYSTEM_CALLBACK_DISPATCHER_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/file_util_proxy.h" 11 #include "base/file_util_proxy.h"
12 #include "base/platform_file.h" 12 #include "base/platform_file.h"
13 #include "base/process.h" 13 #include "base/process.h"
14 #include "webkit/fileapi/fileapi_export.h"
14 15
15 class GURL; 16 class GURL;
16 17
17 namespace fileapi { 18 namespace fileapi {
18 19
19 // This class mirrors the callbacks in 20 // This class mirrors the callbacks in
20 // third_party/WebKit/Source/WebKit/chromium/public/WebFileSystemCallbacks.h, 21 // third_party/WebKit/Source/WebKit/chromium/public/WebFileSystemCallbacks.h,
21 // but uses chromium types. 22 // but uses chromium types.
22 class FileSystemCallbackDispatcher { 23 class FILEAPI_EXPORT FileSystemCallbackDispatcher {
23 public: 24 public:
24 virtual ~FileSystemCallbackDispatcher(); 25 virtual ~FileSystemCallbackDispatcher();
25 26
26 // Callback for various operations that don't require return values. 27 // Callback for various operations that don't require return values.
27 virtual void DidSucceed() = 0; 28 virtual void DidSucceed() = 0;
28 29
29 // Callback to report information for a file. 30 // Callback to report information for a file.
30 virtual void DidReadMetadata( 31 virtual void DidReadMetadata(
31 const base::PlatformFileInfo& file_info, 32 const base::PlatformFileInfo& file_info,
32 const FilePath& platform_path) = 0; 33 const FilePath& platform_path) = 0;
(...skipping 24 matching lines...) Expand all
57 // Callback for OpenFile. This isn't in WebFileSystemCallbacks, as it's just 58 // Callback for OpenFile. This isn't in WebFileSystemCallbacks, as it's just
58 // for Pepper. 59 // for Pepper.
59 // The method will be responsible for closing |file|. 60 // The method will be responsible for closing |file|.
60 virtual void DidOpenFile( 61 virtual void DidOpenFile(
61 base::PlatformFile file); 62 base::PlatformFile file);
62 }; 63 };
63 64
64 } // namespace fileapi 65 } // namespace fileapi
65 66
66 #endif // WEBKIT_FILEAPI_FILE_SYSTEM_CALLBACK_DISPATCHER_H_ 67 #endif // WEBKIT_FILEAPI_FILE_SYSTEM_CALLBACK_DISPATCHER_H_
OLDNEW
« no previous file with comments | « webkit/blob/webkit_blob.gypi ('k') | webkit/fileapi/file_system_context.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698