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

Side by Side Diff: chrome/browser/chromeos/drive/drive_file_stream_reader.h

Issue 881403003: Rename gdata_errorcode.h to drive_api_error_codes.h (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix typos in BUILD.gn Created 5 years, 10 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_DRIVE_DRIVE_FILE_STREAM_READER_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_DRIVE_DRIVE_FILE_STREAM_READER_H_
6 #define CHROME_BROWSER_CHROMEOS_DRIVE_DRIVE_FILE_STREAM_READER_H_ 6 #define CHROME_BROWSER_CHROMEOS_DRIVE_DRIVE_FILE_STREAM_READER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
11 #include "base/callback.h" 11 #include "base/callback.h"
12 #include "base/memory/ref_counted.h" 12 #include "base/memory/ref_counted.h"
13 #include "base/memory/scoped_ptr.h" 13 #include "base/memory/scoped_ptr.h"
14 #include "base/memory/scoped_vector.h" 14 #include "base/memory/scoped_vector.h"
15 #include "chrome/browser/chromeos/drive/file_errors.h" 15 #include "chrome/browser/chromeos/drive/file_errors.h"
16 #include "google_apis/drive/gdata_errorcode.h" 16 #include "google_apis/drive/drive_api_error_codes.h"
17 #include "net/base/completion_callback.h" 17 #include "net/base/completion_callback.h"
18 18
19 namespace base { 19 namespace base {
20 class SequencedTaskRunner; 20 class SequencedTaskRunner;
21 } // namespace base 21 } // namespace base
22 22
23 namespace net { 23 namespace net {
24 class HttpByteRange; 24 class HttpByteRange;
25 class IOBuffer; 25 class IOBuffer;
26 } // namespace net 26 } // namespace net
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after
194 194
195 // Part of Initialize. Called when the local file open process is done. 195 // Part of Initialize. Called when the local file open process is done.
196 void InitializeAfterLocalFileOpen( 196 void InitializeAfterLocalFileOpen(
197 int64 length, 197 int64 length,
198 const InitializeCompletionCallback& callback, 198 const InitializeCompletionCallback& callback,
199 scoped_ptr<ResourceEntry> entry, 199 scoped_ptr<ResourceEntry> entry,
200 scoped_ptr<util::LocalFileReader> file_reader, 200 scoped_ptr<util::LocalFileReader> file_reader,
201 int open_result); 201 int open_result);
202 202
203 // Called when the data is received from the server. 203 // Called when the data is received from the server.
204 void OnGetContent(google_apis::GDataErrorCode error_code, 204 void OnGetContent(google_apis::DriveApiErrorCode error_code,
205 scoped_ptr<std::string> data); 205 scoped_ptr<std::string> data);
206 206
207 // Called when GetFileContent is completed. 207 // Called when GetFileContent is completed.
208 void OnGetFileContentCompletion( 208 void OnGetFileContentCompletion(
209 const InitializeCompletionCallback& callback, 209 const InitializeCompletionCallback& callback,
210 FileError error); 210 FileError error);
211 211
212 const FileSystemGetter file_system_getter_; 212 const FileSystemGetter file_system_getter_;
213 scoped_refptr<base::SequencedTaskRunner> file_task_runner_; 213 scoped_refptr<base::SequencedTaskRunner> file_task_runner_;
214 base::Closure cancel_download_closure_; 214 base::Closure cancel_download_closure_;
215 scoped_ptr<internal::ReaderProxy> reader_proxy_; 215 scoped_ptr<internal::ReaderProxy> reader_proxy_;
216 216
217 // This should remain the last member so it'll be destroyed first and 217 // This should remain the last member so it'll be destroyed first and
218 // invalidate its weak pointers before other members are destroyed. 218 // invalidate its weak pointers before other members are destroyed.
219 base::WeakPtrFactory<DriveFileStreamReader> weak_ptr_factory_; 219 base::WeakPtrFactory<DriveFileStreamReader> weak_ptr_factory_;
220 DISALLOW_COPY_AND_ASSIGN(DriveFileStreamReader); 220 DISALLOW_COPY_AND_ASSIGN(DriveFileStreamReader);
221 }; 221 };
222 222
223 } // namespace drive 223 } // namespace drive
224 224
225 #endif // CHROME_BROWSER_CHROMEOS_DRIVE_DRIVE_FILE_STREAM_READER_H_ 225 #endif // CHROME_BROWSER_CHROMEOS_DRIVE_DRIVE_FILE_STREAM_READER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698