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

Side by Side Diff: chrome/browser/chromeos/gdata/gdata_upload_file_info.h

Issue 10877006: Rename GDataErrorCode to DriveErrorCode, GDataFileError to DriveFileError (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase. Created 8 years, 4 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_GDATA_GDATA_UPLOAD_FILE_INFO_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_GDATA_GDATA_UPLOAD_FILE_INFO_H_
6 #define CHROME_BROWSER_CHROMEOS_GDATA_GDATA_UPLOAD_FILE_INFO_H_ 6 #define CHROME_BROWSER_CHROMEOS_GDATA_GDATA_UPLOAD_FILE_INFO_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/basictypes.h" 11 #include "base/basictypes.h"
12 #include "base/callback.h" 12 #include "base/callback.h"
13 #include "base/file_path.h" 13 #include "base/file_path.h"
14 #include "base/memory/ref_counted.h" 14 #include "base/memory/ref_counted.h"
15 #include "chrome/browser/chromeos/gdata/gdata_errorcode.h" 15 #include "chrome/browser/chromeos/gdata/drive_errorcode.h"
16 #include "googleurl/src/gurl.h" 16 #include "googleurl/src/gurl.h"
17 #include "net/base/file_stream.h" 17 #include "net/base/file_stream.h"
18 #include "net/base/io_buffer.h" 18 #include "net/base/io_buffer.h"
19 19
20 namespace content { 20 namespace content {
21 class DownloadItem; 21 class DownloadItem;
22 } 22 }
23 23
24 namespace gdata { 24 namespace gdata {
25 25
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 bool all_bytes_present; // Whether all bytes of this file are present. 81 bool all_bytes_present; // Whether all bytes of this file are present.
82 bool upload_paused; // Whether this file's upload has been paused. 82 bool upload_paused; // Whether this file's upload has been paused.
83 83
84 bool should_retry_file_open; // Whether we should retry opening this file. 84 bool should_retry_file_open; // Whether we should retry opening this file.
85 int num_file_open_tries; // Number of times we've tried to open this file. 85 int num_file_open_tries; // Number of times we've tried to open this file.
86 86
87 // Will be set once the upload is complete. 87 // Will be set once the upload is complete.
88 scoped_ptr<DocumentEntry> entry; 88 scoped_ptr<DocumentEntry> entry;
89 89
90 // Callback to be invoked once the upload has completed. 90 // Callback to be invoked once the upload has completed.
91 typedef base::Callback<void(GDataFileError error, 91 typedef base::Callback<void(DriveFileError error,
92 scoped_ptr<UploadFileInfo> upload_file_info)> UploadCompletionCallback; 92 scoped_ptr<UploadFileInfo> upload_file_info)> UploadCompletionCallback;
93 UploadCompletionCallback completion_callback; 93 UploadCompletionCallback completion_callback;
94 }; 94 };
95 95
96 } // namespace gdata 96 } // namespace gdata
97 97
98 #endif // CHROME_BROWSER_CHROMEOS_GDATA_GDATA_UPLOAD_FILE_INFO_H_ 98 #endif // CHROME_BROWSER_CHROMEOS_GDATA_GDATA_UPLOAD_FILE_INFO_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698