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

Side by Side Diff: chrome/browser/chromeos/file_system_provider/provided_file_system_interface.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_INTERF ACE_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_PROVIDED_FILE_SYSTEM_INTERF ACE_H_
6 #define CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_PROVIDED_FILE_SYSTEM_INTERF ACE_H_ 6 #define CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_PROVIDED_FILE_SYSTEM_INTERF ACE_H_
7 7
8 #include "base/callback.h" 8 #include "base/callback.h"
9 #include "base/files/file.h" 9 #include "base/files/file.h"
10 #include "base/files/file_path.h" 10 #include "base/files/file_path.h"
11 #include "base/memory/weak_ptr.h"
11 #include "webkit/browser/fileapi/async_file_util.h" 12 #include "webkit/browser/fileapi/async_file_util.h"
12 13
13 class EventRouter; 14 class EventRouter;
14 15
15 namespace net { 16 namespace net {
16 class IOBuffer; 17 class IOBuffer;
17 } // namespace net 18 } // namespace net
18 19
19 namespace chromeos { 20 namespace chromeos {
20 namespace file_system_provider { 21 namespace file_system_provider {
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 net::IOBuffer* buffer, 78 net::IOBuffer* buffer,
78 int64 offset, 79 int64 offset,
79 int length, 80 int length,
80 const ReadChunkReceivedCallback& callback) = 0; 81 const ReadChunkReceivedCallback& callback) = 0;
81 82
82 // Returns a provided file system info for this file system. 83 // Returns a provided file system info for this file system.
83 virtual const ProvidedFileSystemInfo& GetFileSystemInfo() const = 0; 84 virtual const ProvidedFileSystemInfo& GetFileSystemInfo() const = 0;
84 85
85 // Returns a request manager for the file system. 86 // Returns a request manager for the file system.
86 virtual RequestManager* GetRequestManager() = 0; 87 virtual RequestManager* GetRequestManager() = 0;
88
89 // Returns a weak pointer to this object.
90 virtual base::WeakPtr<ProvidedFileSystemInterface> GetWeakPtr() = 0;
87 }; 91 };
88 92
89 } // namespace file_system_provider 93 } // namespace file_system_provider
90 } // namespace chromeos 94 } // namespace chromeos
91 95
92 #endif // CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_PROVIDED_FILE_SYSTEM_INT ERFACE_H_ 96 #endif // CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_PROVIDED_FILE_SYSTEM_INT ERFACE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698