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

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

Issue 10808027: gdrive: Get JSON feeds parsing off the UI thread. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 5 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_OPERATIONS_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_GDATA_GDATA_OPERATIONS_H_
6 #define CHROME_BROWSER_CHROMEOS_GDATA_GDATA_OPERATIONS_H_ 6 #define CHROME_BROWSER_CHROMEOS_GDATA_GDATA_OPERATIONS_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after
246 virtual bool GetContentData(std::string* upload_content_type, 246 virtual bool GetContentData(std::string* upload_content_type,
247 std::string* upload_content) OVERRIDE; 247 std::string* upload_content) OVERRIDE;
248 virtual std::vector<std::string> GetExtraRequestHeaders() const OVERRIDE; 248 virtual std::vector<std::string> GetExtraRequestHeaders() const OVERRIDE;
249 249
250 // Overridden from GetDataOperation. 250 // Overridden from GetDataOperation.
251 virtual GURL GetURL() const OVERRIDE; 251 virtual GURL GetURL() const OVERRIDE;
252 virtual bool ProcessURLFetchResults(const net::URLFetcher* source) OVERRIDE; 252 virtual bool ProcessURLFetchResults(const net::URLFetcher* source) OVERRIDE;
253 253
254 // Must override GetDataOperation's ParseResponse because the response is XML 254 // Must override GetDataOperation's ParseResponse because the response is XML
255 // not JSON. 255 // not JSON.
256 virtual base::Value* ParseResponse(const std::string& data) OVERRIDE; 256 virtual bool ParseResponse(GDataErrorCode fetch_error_code,
257 const std::string& data) OVERRIDE;
257 private: 258 private:
258 std::string app_id_; 259 std::string app_id_;
259 GURL document_url_; 260 GURL document_url_;
260 261
261 DISALLOW_COPY_AND_ASSIGN(AuthorizeAppsOperation); 262 DISALLOW_COPY_AND_ASSIGN(AuthorizeAppsOperation);
262 }; 263 };
263 264
264 //======================= AddResourceToDirectoryOperation ====================== 265 //======================= AddResourceToDirectoryOperation ======================
265 266
266 // This class performs the operation for adding a document/file/directory 267 // This class performs the operation for adding a document/file/directory
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
379 ResumeUploadCallback callback_; 380 ResumeUploadCallback callback_;
380 ResumeUploadParams params_; 381 ResumeUploadParams params_;
381 bool last_chunk_completed_; 382 bool last_chunk_completed_;
382 383
383 DISALLOW_COPY_AND_ASSIGN(ResumeUploadOperation); 384 DISALLOW_COPY_AND_ASSIGN(ResumeUploadOperation);
384 }; 385 };
385 386
386 } // namespace gdata 387 } // namespace gdata
387 388
388 #endif // CHROME_BROWSER_CHROMEOS_GDATA_GDATA_OPERATIONS_H_ 389 #endif // CHROME_BROWSER_CHROMEOS_GDATA_GDATA_OPERATIONS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698