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

Side by Side Diff: chrome/browser/chromeos/file_system_provider/provided_file_system.h

Issue 288113004: [fsp] Add FileStreamReader for the reading operation. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed tests. Created 6 years, 7 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_CHROMEOS_FILE_SYSTEM_PROVIDER_PROVIDED_FILE_SYSTEM_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_PROVIDED_FILE_SYSTEM_H_
6 #define CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_PROVIDED_FILE_SYSTEM_H_ 6 #define CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_PROVIDED_FILE_SYSTEM_H_
7 7
8 #include "base/memory/weak_ptr.h"
8 #include "chrome/browser/chromeos/file_system_provider/provided_file_system_info .h" 9 #include "chrome/browser/chromeos/file_system_provider/provided_file_system_info .h"
9 #include "chrome/browser/chromeos/file_system_provider/provided_file_system_inte rface.h" 10 #include "chrome/browser/chromeos/file_system_provider/provided_file_system_inte rface.h"
10 #include "chrome/browser/chromeos/file_system_provider/request_manager.h" 11 #include "chrome/browser/chromeos/file_system_provider/request_manager.h"
11 #include "webkit/browser/fileapi/async_file_util.h" 12 #include "webkit/browser/fileapi/async_file_util.h"
12 13
13 namespace net { 14 namespace net {
14 class IOBuffer; 15 class IOBuffer;
15 } // namespace net 16 } // namespace net
16 17
17 namespace base { 18 namespace base {
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 virtual void CloseFile( 50 virtual void CloseFile(
50 int file_handle, 51 int file_handle,
51 const fileapi::AsyncFileUtil::StatusCallback& callback) OVERRIDE; 52 const fileapi::AsyncFileUtil::StatusCallback& callback) OVERRIDE;
52 virtual void ReadFile(int file_handle, 53 virtual void ReadFile(int file_handle,
53 net::IOBuffer* buffer, 54 net::IOBuffer* buffer,
54 int64 offset, 55 int64 offset,
55 int length, 56 int length,
56 const ReadChunkReceivedCallback& callback) OVERRIDE; 57 const ReadChunkReceivedCallback& callback) OVERRIDE;
57 virtual const ProvidedFileSystemInfo& GetFileSystemInfo() const OVERRIDE; 58 virtual const ProvidedFileSystemInfo& GetFileSystemInfo() const OVERRIDE;
58 virtual RequestManager* GetRequestManager() OVERRIDE; 59 virtual RequestManager* GetRequestManager() OVERRIDE;
60 virtual base::WeakPtr<ProvidedFileSystemInterface> GetWeakPtr() OVERRIDE;
59 61
60 private: 62 private:
61 extensions::EventRouter* event_router_; 63 extensions::EventRouter* event_router_;
62 RequestManager request_manager_; 64 RequestManager request_manager_;
63 ProvidedFileSystemInfo file_system_info_; 65 ProvidedFileSystemInfo file_system_info_;
64 66
67 base::WeakPtrFactory<ProvidedFileSystemInterface> weak_ptr_factory_;
65 DISALLOW_COPY_AND_ASSIGN(ProvidedFileSystem); 68 DISALLOW_COPY_AND_ASSIGN(ProvidedFileSystem);
66 }; 69 };
67 70
68 } // namespace file_system_provider 71 } // namespace file_system_provider
69 } // namespace chromeos 72 } // namespace chromeos
70 73
71 #endif // CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_PROVIDED_FILE_SYSTEM_H_ 74 #endif // CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_PROVIDED_FILE_SYSTEM_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698