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

Side by Side Diff: chrome/browser/chromeos/file_system_provider/fileapi/file_stream_reader.h

Issue 304533003: [fsp] Rename has_next to has_more. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased. Created 6 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
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_FILEAPI_FILE_STREAM_READER_ H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_FILEAPI_FILE_STREAM_READER_ H_
6 #define CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_FILEAPI_FILE_STREAM_READER_ H_ 6 #define CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_FILEAPI_FILE_STREAM_READER_ H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/files/file_path.h" 9 #include "base/files/file_path.h"
10 #include "base/memory/weak_ptr.h" 10 #include "base/memory/weak_ptr.h"
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 void OnInitializeCompleted( 54 void OnInitializeCompleted(
55 const base::Closure& pending_closure, 55 const base::Closure& pending_closure,
56 const net::Int64CompletionCallback& error_callback, 56 const net::Int64CompletionCallback& error_callback,
57 base::WeakPtr<ProvidedFileSystemInterface> file_system, 57 base::WeakPtr<ProvidedFileSystemInterface> file_system,
58 const base::FilePath& file_path, 58 const base::FilePath& file_path,
59 int file_handle, 59 int file_handle,
60 base::File::Error result); 60 base::File::Error result);
61 61
62 // Called when a file system provider returns chunk of read data. Note, that 62 // Called when a file system provider returns chunk of read data. Note, that
63 // this may be called multiple times per single Read() call, as long as 63 // this may be called multiple times per single Read() call, as long as
64 // |has_next| is set to true. |result| is set to success only if reading is 64 // |has_more| is set to true. |result| is set to success only if reading is
65 // successful, and the file has not changed while reading. 65 // successful, and the file has not changed while reading.
66 void OnReadChunkReceived(const net::CompletionCallback& callback, 66 void OnReadChunkReceived(const net::CompletionCallback& callback,
67 int chunk_length, 67 int chunk_length,
68 bool has_next, 68 bool has_more,
69 base::File::Error result); 69 base::File::Error result);
70 70
71 // Called when fetching length of the file is completed with either a success 71 // Called when fetching length of the file is completed with either a success
72 // or an error. 72 // or an error.
73 void OnGetMetadataForGetLengthReceived( 73 void OnGetMetadataForGetLengthReceived(
74 const net::Int64CompletionCallback& callback, 74 const net::Int64CompletionCallback& callback,
75 base::File::Error result, 75 base::File::Error result,
76 const base::File::Info& file_info); 76 const base::File::Info& file_info);
77 77
78 // Same as Read(), but called after initializing is completed. 78 // Same as Read(), but called after initializing is completed.
(...skipping 15 matching lines...) Expand all
94 int file_handle_; 94 int file_handle_;
95 95
96 base::WeakPtrFactory<FileStreamReader> weak_ptr_factory_; 96 base::WeakPtrFactory<FileStreamReader> weak_ptr_factory_;
97 DISALLOW_COPY_AND_ASSIGN(FileStreamReader); 97 DISALLOW_COPY_AND_ASSIGN(FileStreamReader);
98 }; 98 };
99 99
100 } // namespace file_system_provider 100 } // namespace file_system_provider
101 } // namespace chromeos 101 } // namespace chromeos
102 102
103 #endif // CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_FILEAPI_FILE_STREAM_READ ER_H_ 103 #endif // CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_FILEAPI_FILE_STREAM_READ ER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698