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

Unified Diff: chrome/browser/local_discovery/gcd_api_flow.cc

Issue 318283002: Added new GCD/Privet interfaces. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 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/gcd_api_flow.cc
diff --git a/chrome/browser/local_discovery/gcd_api_flow.cc b/chrome/browser/local_discovery/gcd_api_flow.cc
index d3ca5842cf8a3d5a0a00a657e74774c22eff2294..b8ed6716e03d79d9ba088133d26e0f8b8a2f26a1 100644
--- a/chrome/browser/local_discovery/gcd_api_flow.cc
+++ b/chrome/browser/local_discovery/gcd_api_flow.cc
@@ -23,37 +23,42 @@ namespace {
const char kCloudPrintOAuthHeaderFormat[] = "Authorization: Bearer %s";
}
-GCDApiFlow::Request::Request() {
+GCDApiFlowInterface::Request::Request() {
}
-GCDApiFlow::Request::~Request() {
+GCDApiFlowInterface::Request::~Request() {
}
-net::URLFetcher::RequestType GCDApiFlow::Request::GetRequestType() {
+net::URLFetcher::RequestType GCDApiFlowInterface::Request::GetRequestType() {
return net::URLFetcher::GET;
}
-void GCDApiFlow::Request::GetUploadData(std::string* upload_type,
- std::string* upload_data) {
+void GCDApiFlowInterface::Request::GetUploadData(std::string* upload_type,
+ std::string* upload_data) {
*upload_type = std::string();
*upload_data = std::string();
}
+GCDApiFlowInterface::GCDApiFlowInterface() {
+}
+
+GCDApiFlowInterface::~GCDApiFlowInterface() {
+}
+
GCDApiFlow::GCDApiFlow(net::URLRequestContextGetter* request_context,
OAuth2TokenService* token_service,
- const std::string& account_id,
- scoped_ptr<Request> delegate)
+ const std::string& account_id)
: OAuth2TokenService::Consumer("cloud_print"),
request_context_(request_context),
token_service_(token_service),
- account_id_(account_id),
- request_(delegate.Pass()) {
+ account_id_(account_id) {
}
GCDApiFlow::~GCDApiFlow() {
}
-void GCDApiFlow::Start() {
+void GCDApiFlow::Start(scoped_ptr<Request> request) {
+ request_ = request.Pass();
OAuth2TokenService::ScopeSet oauth_scopes;
oauth_scopes.insert(request_->GetOAuthScope());
oauth_request_ =

Powered by Google App Engine
This is Rietveld 408576698