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

Side by Side Diff: content/browser/payments/payment_manager.cc

Issue 2790013002: PaymentHandler: Implement set/get methods in PaymentInstruments (blink) (Closed)
Patch Set: blink Created 3 years, 8 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
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 "content/browser/payments/payment_manager.h" 5 #include "content/browser/payments/payment_manager.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/optional.h" 10 #include "base/optional.h"
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 payment_app_context_->payment_app_database()->WriteManifest( 50 payment_app_context_->payment_app_database()->WriteManifest(
51 scope_, std::move(manifest), callback); 51 scope_, std::move(manifest), callback);
52 } 52 }
53 53
54 void PaymentManager::GetManifest(const GetManifestCallback& callback) { 54 void PaymentManager::GetManifest(const GetManifestCallback& callback) {
55 DCHECK_CURRENTLY_ON(BrowserThread::IO); 55 DCHECK_CURRENTLY_ON(BrowserThread::IO);
56 56
57 payment_app_context_->payment_app_database()->ReadManifest(scope_, callback); 57 payment_app_context_->payment_app_database()->ReadManifest(scope_, callback);
58 } 58 }
59 59
60 void PaymentManager::SetPaymentInstrument(
61 const std::string& instrumentKey,
62 payments::mojom::PaymentInstrumentPtr details,
63 const PaymentManager::SetPaymentInstrumentCallback& callback) {
64 callback.Run(payments::mojom::PaymentHandlerStatus::NOT_IMPLEMENTED);
65 }
66
67 void PaymentManager::GetPaymentInstrument(
68 const std::string& instrumentKey,
69 const PaymentManager::GetPaymentInstrumentCallback& callback) {
70 callback.Run(payments::mojom::PaymentInstrument::New(),
71 payments::mojom::PaymentHandlerStatus::NOT_IMPLEMENTED);
72 }
73
60 void PaymentManager::OnConnectionError() { 74 void PaymentManager::OnConnectionError() {
61 DCHECK_CURRENTLY_ON(BrowserThread::IO); 75 DCHECK_CURRENTLY_ON(BrowserThread::IO);
62 payment_app_context_->PaymentManagerHadConnectionError(this); 76 payment_app_context_->PaymentManagerHadConnectionError(this);
63 } 77 }
64 78
65 } // namespace content 79 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/payments/payment_manager.h ('k') | third_party/WebKit/Source/modules/payments/PaymentInstruments.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698