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

Side by Side Diff: components/autofill/browser/wallet/encryption_escrow_client.cc

Issue 12434004: Move remaining Autofill code to //components/autofill. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix long lines Created 7 years, 9 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 #include "chrome/browser/autofill/wallet/encryption_escrow_client.h" 5 #include "components/autofill/browser/wallet/encryption_escrow_client.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "base/string_number_conversions.h" 9 #include "base/string_number_conversions.h"
10 #include "base/stringprintf.h" 10 #include "base/stringprintf.h"
11 #include "base/strings/string_split.h" 11 #include "base/strings/string_split.h"
12 #include "base/utf_string_conversions.h" 12 #include "base/utf_string_conversions.h"
13 #include "chrome/browser/autofill/wallet/encryption_escrow_client_observer.h" 13 #include "components/autofill/browser/wallet/encryption_escrow_client_observer.h "
14 #include "chrome/browser/autofill/wallet/instrument.h" 14 #include "components/autofill/browser/wallet/instrument.h"
15 #include "chrome/browser/autofill/wallet/wallet_service_url.h" 15 #include "components/autofill/browser/wallet/wallet_service_url.h"
16 #include "googleurl/src/gurl.h" 16 #include "googleurl/src/gurl.h"
17 #include "net/base/escape.h" 17 #include "net/base/escape.h"
18 #include "net/http/http_status_code.h" 18 #include "net/http/http_status_code.h"
19 #include "net/url_request/url_fetcher.h" 19 #include "net/url_request/url_fetcher.h"
20 #include "net/url_request/url_request_context_getter.h" 20 #include "net/url_request/url_request_context_getter.h"
21 21
22 namespace { 22 namespace {
23 23
24 const char kEncryptOtpBodyFormat[] = "cvv=%s:%s"; 24 const char kEncryptOtpBodyFormat[] = "cvv=%s:%s";
25 const char kEscrowInstrumentInformationFormat[] = "gid=%s&cardNumber=%s&cvv=%s"; 25 const char kEscrowInstrumentInformationFormat[] = "gid=%s&cardNumber=%s&cvv=%s";
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 } 169 }
170 170
171 void EncryptionEscrowClient::HandleMalformedResponse(net::URLFetcher* request) { 171 void EncryptionEscrowClient::HandleMalformedResponse(net::URLFetcher* request) {
172 // Called to inform exponential backoff logic of the error. 172 // Called to inform exponential backoff logic of the error.
173 request->ReceivedContentWasMalformed(); 173 request->ReceivedContentWasMalformed();
174 observer_->OnMalformedResponse(); 174 observer_->OnMalformedResponse();
175 } 175 }
176 176
177 } // namespace wallet 177 } // namespace wallet
178 } // namespace autofill 178 } // namespace autofill
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698