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

Unified Diff: chrome/browser/local_discovery/privet_confirm_api_flow.h

Issue 298883012: Added GetURL, GetOAuthScope, GetExtraRequestHeaders into GCDBaseApiFlow::Delegate. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/local_discovery/privet_confirm_api_flow.h
diff --git a/chrome/browser/local_discovery/privet_confirm_api_flow.h b/chrome/browser/local_discovery/privet_confirm_api_flow.h
index 6faf9305aafc49bbde82c6acb2d871e0e2d3e5c4..ce51842e440352a29aa2776a335ee9ea0ef30033 100644
--- a/chrome/browser/local_discovery/privet_confirm_api_flow.h
+++ b/chrome/browser/local_discovery/privet_confirm_api_flow.h
@@ -14,7 +14,7 @@
namespace local_discovery {
// API call flow for server-side communication with cloudprint for registration.
-class PrivetConfirmApiCallFlow : public GCDBaseApiFlow::Delegate {
+class PrivetConfirmApiCallFlow : public CloudPrintApiFlowDelegate {
public:
typedef base::Callback<void(GCDBaseApiFlow::Status /*success*/)>
ResponseCallback;
@@ -23,7 +23,6 @@ class PrivetConfirmApiCallFlow : public GCDBaseApiFlow::Delegate {
PrivetConfirmApiCallFlow(net::URLRequestContextGetter* request_context,
OAuth2TokenService* token_service_,
const std::string& account_id,
- bool is_cloud_print,
const std::string& token,
const ResponseCallback& callback);
@@ -36,17 +35,16 @@ class PrivetConfirmApiCallFlow : public GCDBaseApiFlow::Delegate {
virtual void OnGCDAPIFlowComplete(GCDBaseApiFlow* flow,
const base::DictionaryValue* value)
OVERRIDE;
- virtual bool GCDIsCloudPrint() OVERRIDE;
virtual net::URLFetcher::RequestType GetRequestType() OVERRIDE;
- virtual void GetUploadData(std::string* upload_type,
- std::string* upload_data) OVERRIDE;
+
+ virtual GURL GetURL() OVERRIDE;
GCDBaseApiFlow* GetBaseApiFlowForTests() { return &flow_; }
private:
- bool is_cloud_print_;
GCDBaseApiFlow flow_;
ResponseCallback callback_;
+ std::string token_;
};
} // namespace local_discovery
« no previous file with comments | « chrome/browser/local_discovery/gcd_base_api_flow.cc ('k') | chrome/browser/local_discovery/privet_confirm_api_flow.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698