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

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

Issue 10797027: Revert 147413 - 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
« no previous file with comments | « no previous file | chrome/browser/chromeos/gdata/gdata_operations.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 bool ParseResponse(GDataErrorCode fetch_error_code, 256 virtual base::Value* ParseResponse(const std::string& data) OVERRIDE;
257 const std::string& data) OVERRIDE;
258 private: 257 private:
259 std::string app_id_; 258 std::string app_id_;
260 GURL document_url_; 259 GURL document_url_;
261 260
262 DISALLOW_COPY_AND_ASSIGN(AuthorizeAppsOperation); 261 DISALLOW_COPY_AND_ASSIGN(AuthorizeAppsOperation);
263 }; 262 };
264 263
265 //======================= AddResourceToDirectoryOperation ====================== 264 //======================= AddResourceToDirectoryOperation ======================
266 265
267 // This class performs the operation for adding a document/file/directory 266 // This class performs the operation for adding a document/file/directory
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
380 ResumeUploadCallback callback_; 379 ResumeUploadCallback callback_;
381 ResumeUploadParams params_; 380 ResumeUploadParams params_;
382 bool last_chunk_completed_; 381 bool last_chunk_completed_;
383 382
384 DISALLOW_COPY_AND_ASSIGN(ResumeUploadOperation); 383 DISALLOW_COPY_AND_ASSIGN(ResumeUploadOperation);
385 }; 384 };
386 385
387 } // namespace gdata 386 } // namespace gdata
388 387
389 #endif // CHROME_BROWSER_CHROMEOS_GDATA_GDATA_OPERATIONS_H_ 388 #endif // CHROME_BROWSER_CHROMEOS_GDATA_GDATA_OPERATIONS_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/chromeos/gdata/gdata_operations.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698