Index: chrome/browser/printing/cloud_print/gcd_api_flow_impl.cc |
diff --git a/chrome/browser/local_discovery/gcd_api_flow_impl.cc b/chrome/browser/printing/cloud_print/gcd_api_flow_impl.cc |
similarity index 88% |
rename from chrome/browser/local_discovery/gcd_api_flow_impl.cc |
rename to chrome/browser/printing/cloud_print/gcd_api_flow_impl.cc |
index ddad20130c18e58df941091129e5115bc80e3c07..a80436459b954e148d5465bb4935e8c36df5b522 100644 |
--- a/chrome/browser/local_discovery/gcd_api_flow_impl.cc |
+++ b/chrome/browser/printing/cloud_print/gcd_api_flow_impl.cc |
@@ -2,7 +2,7 @@ |
// Use of this source code is governed by a BSD-style license that can be |
// found in the LICENSE file. |
-#include "chrome/browser/local_discovery/gcd_api_flow_impl.h" |
+#include "chrome/browser/printing/cloud_print/gcd_api_flow_impl.h" |
#include <stddef.h> |
#include <utility> |
@@ -11,7 +11,7 @@ |
#include "base/strings/string_number_conversions.h" |
#include "base/strings/stringprintf.h" |
#include "base/values.h" |
-#include "chrome/browser/local_discovery/gcd_constants.h" |
+#include "chrome/browser/printing/cloud_print/gcd_constants.h" |
#include "chrome/common/cloud_print/cloud_print_constants.h" |
#include "components/cloud_devices/common/cloud_devices_urls.h" |
#include "google_apis/gaia/google_service_auth_error.h" |
@@ -20,7 +20,7 @@ |
#include "net/http/http_status_code.h" |
#include "net/url_request/url_request_status.h" |
-namespace local_discovery { |
+namespace cloud_print { |
GCDApiFlowImpl::GCDApiFlowImpl(net::URLRequestContextGetter* request_context, |
OAuth2TokenService* token_service, |
@@ -60,7 +60,7 @@ void GCDApiFlowImpl::OnGetTokenSuccess( |
void GCDApiFlowImpl::OnGetTokenFailure( |
const OAuth2TokenService::Request* request, |
const GoogleServiceAuthError& error) { |
- request_->OnGCDAPIFlowError(ERROR_TOKEN); |
+ request_->OnGCDApiFlowError(ERROR_TOKEN); |
} |
void GCDApiFlowImpl::CreateRequest(const GURL& url) { |
@@ -91,12 +91,12 @@ void GCDApiFlowImpl::OnURLFetchComplete(const net::URLFetcher* source) { |
if (source->GetStatus().status() != net::URLRequestStatus::SUCCESS || |
!source->GetResponseAsString(&response_str)) { |
- request_->OnGCDAPIFlowError(ERROR_NETWORK); |
+ request_->OnGCDApiFlowError(ERROR_NETWORK); |
return; |
} |
if (source->GetResponseCode() != net::HTTP_OK) { |
- request_->OnGCDAPIFlowError(ERROR_HTTP_CODE); |
+ request_->OnGCDApiFlowError(ERROR_HTTP_CODE); |
return; |
} |
@@ -105,11 +105,11 @@ void GCDApiFlowImpl::OnURLFetchComplete(const net::URLFetcher* source) { |
const base::DictionaryValue* dictionary_value = NULL; |
if (!value || !value->GetAsDictionary(&dictionary_value)) { |
- request_->OnGCDAPIFlowError(ERROR_MALFORMED_RESPONSE); |
+ request_->OnGCDApiFlowError(ERROR_MALFORMED_RESPONSE); |
return; |
} |
- request_->OnGCDAPIFlowComplete(*dictionary_value); |
+ request_->OnGCDApiFlowComplete(*dictionary_value); |
} |
-} // namespace local_discovery |
+} // namespace cloud_print |