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

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

Issue 2476343002: PaymentApp: Initial implementation for PaymentAppManager.setManifest(). (Closed)
Patch Set: Created 4 years, 1 month 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #include "content/browser/payments/payment_app_manager.h"
6
7 #include <utility>
8
9 #include "base/memory/weak_ptr.h"
10 #include "base/stl_util.h"
11 #include "content/browser/payments/payment_app_context.h"
12 #include "content/public/browser/browser_thread.h"
13
14 namespace content {
15
16 PaymentAppManager::~PaymentAppManager() {
17 DCHECK_CURRENTLY_ON(BrowserThread::IO);
18 }
19
20 PaymentAppManager::PaymentAppManager(
21 PaymentAppContext* payment_app_context,
22 mojo::InterfaceRequest<blink::mojom::PaymentAppManager> request)
23 : payment_app_context_(payment_app_context),
24 binding_(this, std::move(request)),
25 weak_ptr_factory_(this) {
26 DCHECK_CURRENTLY_ON(BrowserThread::IO);
27 DCHECK(payment_app_context);
28
29 binding_.set_connection_error_handler(
30 base::Bind(&PaymentAppManager::OnConnectionError,
31 base::Unretained(this)));
32 }
33
34 void PaymentAppManager::OnConnectionError() {
35 payment_app_context_->ServiceHadConnectionError(this);
36 }
37
38 void PaymentAppManager::SetManifest(
39 const mojo::String& scope,
40 blink::mojom::PaymentAppManifestPtr manifest,
41 const SetManifestCallback& callback) {
42 DCHECK_CURRENTLY_ON(BrowserThread::IO);
43 callback.Run(blink::mojom::PaymentAppManifestError::NOT_IMPLEMENTED);
44 }
45
46 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698