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

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

Issue 4821005: Make FileSystemOperation's lifetime more explicit. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: simple_file_writer fix Created 10 years 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 | « 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_FILE_SYSTEM_BROWSER_FILE_SYSTEM_CALLBACK_DISPATCHER_H_
6 #define CHROME_BROWSER_FILE_SYSTEM_BROWSER_FILE_SYSTEM_CALLBACK_DISPATCHER_H_
7
8 #include "webkit/fileapi/file_system_callback_dispatcher.h"
9
10 class FileSystemDispatcherHost;
11
12 class BrowserFileSystemCallbackDispatcher
13 : public fileapi::FileSystemCallbackDispatcher {
14 public:
15 BrowserFileSystemCallbackDispatcher(FileSystemDispatcherHost* dispatcher_host,
16 int request_id);
17 virtual ~BrowserFileSystemCallbackDispatcher();
18
19 // FileSystemCallbackDispatcher implementation.
20 virtual void DidSucceed();
21 virtual void DidReadMetadata(const base::PlatformFileInfo& file_info);
22 virtual void DidReadDirectory(
23 const std::vector<base::FileUtilProxy::Entry>& entries,
24 bool has_more);
25 virtual void DidOpenFileSystem(const std::string& name,
26 const FilePath& root_path);
27 virtual void DidFail(base::PlatformFileError error_code);
28 virtual void DidWrite(int64 bytes, bool complete);
29
30 private:
31 scoped_refptr<FileSystemDispatcherHost> dispatcher_host_;
32 int request_id_;
33 };
34
35 #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