OLD | NEW |
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_PARAMS_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_GDATA_GDATA_PARAMS_H_ |
6 #define CHROME_BROWSER_CHROMEOS_GDATA_GDATA_PARAMS_H_ | 6 #define CHROME_BROWSER_CHROMEOS_GDATA_GDATA_PARAMS_H_ |
7 | 7 |
8 #include "chrome/browser/chromeos/gdata/gdata_errorcode.h" | 8 #include "chrome/browser/chromeos/gdata/gdata_errorcode.h" |
9 | 9 |
10 #include <string> | 10 #include <string> |
11 | 11 |
12 #include "base/basictypes.h" | 12 #include "base/basictypes.h" |
13 #include "base/callback.h" | 13 #include "base/callback.h" |
14 #include "base/file_path.h" | 14 #include "base/file_path.h" |
15 #include "base/memory/scoped_ptr.h" | 15 #include "base/memory/scoped_ptr.h" |
16 #include "base/memory/weak_ptr.h" | 16 #include "base/memory/weak_ptr.h" |
17 #include "base/platform_file.h" | 17 #include "base/platform_file.h" |
18 #include "base/values.h" | 18 #include "base/values.h" |
19 #include "chrome/browser/chromeos/gdata/gdata_parser.h" | |
20 #include "chrome/browser/chromeos/gdata/gdata_upload_file_info.h" | 19 #include "chrome/browser/chromeos/gdata/gdata_upload_file_info.h" |
| 20 #include "googleurl/src/gurl.h" |
21 #include "net/base/io_buffer.h" | 21 #include "net/base/io_buffer.h" |
22 #include "googleurl/src/gurl.h" | |
23 | 22 |
24 namespace gdata { | 23 namespace gdata { |
25 | 24 |
26 class GDataEntry; | 25 class GDataEntry; |
27 | 26 |
28 // Struct for response to ResumeUpload. | 27 // Struct for response to ResumeUpload. |
29 struct ResumeUploadResponse { | 28 struct ResumeUploadResponse { |
30 ResumeUploadResponse(GDataErrorCode code, | 29 ResumeUploadResponse(GDataErrorCode code, |
31 int64 start_range_received, | 30 int64 start_range_received, |
32 int64 end_range_received); | 31 int64 end_range_received); |
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
128 scoped_ptr<gdata::DocumentEntry> new_entry)> ResumeUploadCallback; | 127 scoped_ptr<gdata::DocumentEntry> new_entry)> ResumeUploadCallback; |
129 | 128 |
130 // Callback type used to get result of file search. | 129 // Callback type used to get result of file search. |
131 // If |error| is not PLATFORM_FILE_OK, |entry| is set to NULL. | 130 // If |error| is not PLATFORM_FILE_OK, |entry| is set to NULL. |
132 typedef base::Callback<void(base::PlatformFileError error, GDataEntry* entry)> | 131 typedef base::Callback<void(base::PlatformFileError error, GDataEntry* entry)> |
133 FindEntryCallback; | 132 FindEntryCallback; |
134 | 133 |
135 } // namespace gdata | 134 } // namespace gdata |
136 | 135 |
137 #endif // CHROME_BROWSER_CHROMEOS_GDATA_GDATA_PARAMS_H_ | 136 #endif // CHROME_BROWSER_CHROMEOS_GDATA_GDATA_PARAMS_H_ |
OLD | NEW |