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

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

Issue 10392192: Remove content::URLFetcherDelegate (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 7 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 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 // an authentication failure. 75 // an authentication failure.
76 virtual void SetReAuthenticateCallback( 76 virtual void SetReAuthenticateCallback(
77 const ReAuthenticateCallback& callback) = 0; 77 const ReAuthenticateCallback& callback) = 0;
78 }; 78 };
79 79
80 //============================ UrlFetchOperationBase =========================== 80 //============================ UrlFetchOperationBase ===========================
81 81
82 // Base class for operations that are fetching URLs. 82 // Base class for operations that are fetching URLs.
83 class UrlFetchOperationBase : public GDataOperationInterface, 83 class UrlFetchOperationBase : public GDataOperationInterface,
84 public GDataOperationRegistry::Operation, 84 public GDataOperationRegistry::Operation,
85 public content::URLFetcherDelegate { 85 public net::URLFetcherDelegate {
86 public: 86 public:
87 // Overridden from GDataOperationInterface. 87 // Overridden from GDataOperationInterface.
88 virtual void Start(const std::string& auth_token) OVERRIDE; 88 virtual void Start(const std::string& auth_token) OVERRIDE;
89 89
90 // Overridden from GDataOperationInterface. 90 // Overridden from GDataOperationInterface.
91 virtual void SetReAuthenticateCallback( 91 virtual void SetReAuthenticateCallback(
92 const ReAuthenticateCallback& callback) OVERRIDE; 92 const ReAuthenticateCallback& callback) OVERRIDE;
93 93
94 protected: 94 protected:
95 UrlFetchOperationBase(GDataOperationRegistry* registry, Profile* profile); 95 UrlFetchOperationBase(GDataOperationRegistry* registry, Profile* profile);
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after
263 const FilePath& output_file_path); 263 const FilePath& output_file_path);
264 virtual ~DownloadFileOperation(); 264 virtual ~DownloadFileOperation();
265 265
266 protected: 266 protected:
267 // Overridden from UrlFetchOperationBase. 267 // Overridden from UrlFetchOperationBase.
268 virtual GURL GetURL() const OVERRIDE; 268 virtual GURL GetURL() const OVERRIDE;
269 virtual bool ProcessURLFetchResults(const net::URLFetcher* source) 269 virtual bool ProcessURLFetchResults(const net::URLFetcher* source)
270 OVERRIDE; 270 OVERRIDE;
271 virtual void RunCallbackOnPrematureFailure(GDataErrorCode code) OVERRIDE; 271 virtual void RunCallbackOnPrematureFailure(GDataErrorCode code) OVERRIDE;
272 272
273 // Overridden from content::URLFetcherDelegate. 273 // Overridden from net::URLFetcherDelegate.
274 virtual void OnURLFetchDownloadProgress(const net::URLFetcher* source, 274 virtual void OnURLFetchDownloadProgress(const net::URLFetcher* source,
275 int64 current, int64 total) OVERRIDE; 275 int64 current, int64 total) OVERRIDE;
276 virtual bool ShouldSendDownloadData() OVERRIDE; 276 virtual bool ShouldSendDownloadData() OVERRIDE;
277 virtual void OnURLFetchDownloadData( 277 virtual void OnURLFetchDownloadData(
278 const net::URLFetcher* source, 278 const net::URLFetcher* source,
279 scoped_ptr<std::string> download_data) OVERRIDE; 279 scoped_ptr<std::string> download_data) OVERRIDE;
280 280
281 private: 281 private:
282 DownloadActionCallback download_action_callback_; 282 DownloadActionCallback download_action_callback_;
283 GetDownloadDataCallback get_download_data_callback_; 283 GetDownloadDataCallback get_download_data_callback_;
(...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after
514 ResumeUploadCallback callback_; 514 ResumeUploadCallback callback_;
515 ResumeUploadParams params_; 515 ResumeUploadParams params_;
516 bool last_chunk_completed_; 516 bool last_chunk_completed_;
517 517
518 DISALLOW_COPY_AND_ASSIGN(ResumeUploadOperation); 518 DISALLOW_COPY_AND_ASSIGN(ResumeUploadOperation);
519 }; 519 };
520 520
521 } // namespace gdata 521 } // namespace gdata
522 522
523 #endif // CHROME_BROWSER_CHROMEOS_GDATA_GDATA_OPERATIONS_H_ 523 #endif // CHROME_BROWSER_CHROMEOS_GDATA_GDATA_OPERATIONS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698