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

Side by Side Diff: chrome/browser/file_system/browser_file_system_callback_dispatcher.h

Issue 3394003: Add Worker support for FileSystem API. (Closed)
Patch Set: '' Created 10 years, 2 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
« no previous file with comments | « no previous file | chrome/browser/file_system/browser_file_system_callback_dispatcher.cc » ('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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 CHROME_BROWSER_FILE_SYSTEM_BROWSER_FILE_SYSTEM_CALLBACK_DISPATCHER_H_ 5 #ifndef CHROME_BROWSER_FILE_SYSTEM_BROWSER_FILE_SYSTEM_CALLBACK_DISPATCHER_H_
6 #define CHROME_BROWSER_FILE_SYSTEM_BROWSER_FILE_SYSTEM_CALLBACK_DISPATCHER_H_ 6 #define CHROME_BROWSER_FILE_SYSTEM_BROWSER_FILE_SYSTEM_CALLBACK_DISPATCHER_H_
7 7
8 #include "webkit/fileapi/file_system_callback_dispatcher.h" 8 #include "webkit/fileapi/file_system_callback_dispatcher.h"
9 9
10 class FileSystemDispatcherHost; 10 class FileSystemDispatcherHost;
11 11
12 class BrowserFileSystemCallbackDispatcher 12 class BrowserFileSystemCallbackDispatcher
13 : public fileapi::FileSystemCallbackDispatcher { 13 : public fileapi::FileSystemCallbackDispatcher {
14 public: 14 public:
15 BrowserFileSystemCallbackDispatcher(FileSystemDispatcherHost* dispatcher_host, 15 BrowserFileSystemCallbackDispatcher(FileSystemDispatcherHost* dispatcher_host,
16 int request_id); 16 int request_id);
17 17
18 // FileSystemCallbackDispatcher implementation. 18 // FileSystemCallbackDispatcher implementation.
19 virtual void DidSucceed(); 19 virtual void DidSucceed();
20 virtual void DidReadMetadata(const base::PlatformFileInfo& file_info); 20 virtual void DidReadMetadata(const base::PlatformFileInfo& file_info);
21 virtual void DidReadDirectory( 21 virtual void DidReadDirectory(
22 const std::vector<base::file_util_proxy::Entry>& entries, 22 const std::vector<base::file_util_proxy::Entry>& entries,
23 bool has_more); 23 bool has_more);
24 virtual void DidOpenFileSystem(const string16& name, 24 virtual void DidOpenFileSystem(const std::string& name,
25 const FilePath& root_path); 25 const FilePath& root_path);
26 virtual void DidFail(base::PlatformFileError error_code); 26 virtual void DidFail(base::PlatformFileError error_code);
27 27
28 private: 28 private:
29 scoped_refptr<FileSystemDispatcherHost> dispatcher_host_; 29 scoped_refptr<FileSystemDispatcherHost> dispatcher_host_;
30 int request_id_; 30 int request_id_;
31 }; 31 };
32 32
33 #endif // CHROME_BROWSER_FILE_SYSTEM_BROWSER_FILE_SYSTEM_CALLBACK_DISPATCHER_H_ 33 #endif // CHROME_BROWSER_FILE_SYSTEM_BROWSER_FILE_SYSTEM_CALLBACK_DISPATCHER_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/file_system/browser_file_system_callback_dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698