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

Side by Side Diff: components/payments/content/android/payment_manifest_downloader_android.cc

Issue 2759283002: Make payment manifest download/parse cross-platform (Closed)
Patch Set: Address comments Created 3 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
OLDNEW
1 // Copyright 2017 The Chromium Authors. All rights reserved. 1 // Copyright 2017 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 "components/payments/content/android/payment_manifest_downloader_androi d.h" 5 #include "components/payments/content/android/payment_manifest_downloader_androi d.h"
6 6
7 #include <memory> 7 #include <memory>
8 #include <utility> 8 #include <utility>
9 9
10 #include "base/android/jni_string.h" 10 #include "base/android/jni_string.h"
11 #include "base/android/scoped_java_ref.h" 11 #include "base/android/scoped_java_ref.h"
12 #include "base/logging.h" 12 #include "base/logging.h"
13 #include "base/memory/ptr_util.h" 13 #include "base/memory/ptr_util.h"
14 #include "components/payments/content/android/payment_manifest_downloader.h" 14 #include "components/payments/content/payment_manifest_downloader.h"
15 #include "content/public/browser/browser_context.h" 15 #include "content/public/browser/browser_context.h"
16 #include "content/public/browser/storage_partition.h" 16 #include "content/public/browser/storage_partition.h"
17 #include "content/public/browser/web_contents.h" 17 #include "content/public/browser/web_contents.h"
18 #include "jni/PaymentManifestDownloader_jni.h" 18 #include "jni/PaymentManifestDownloader_jni.h"
19 #include "net/url_request/url_request_context_getter.h" 19 #include "net/url_request/url_request_context_getter.h"
20 #include "url/gurl.h" 20 #include "url/gurl.h"
21 #include "url/url_constants.h" 21 #include "url/url_constants.h"
22 22
23 namespace payments { 23 namespace payments {
24 namespace { 24 namespace {
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 base::MakeUnique<PaymentManifestDownloader>( 91 base::MakeUnique<PaymentManifestDownloader>(
92 content::BrowserContext::GetDefaultStoragePartition( 92 content::BrowserContext::GetDefaultStoragePartition(
93 web_contents->GetBrowserContext()) 93 web_contents->GetBrowserContext())
94 ->GetURLRequestContext(), 94 ->GetURLRequestContext(),
95 method_name, delegate); 95 method_name, delegate);
96 delegate->set_downloader(std::move(downloader)); 96 delegate->set_downloader(std::move(downloader));
97 delegate->Download(); 97 delegate->Download();
98 } 98 }
99 99
100 } // namespace payments 100 } // namespace payments
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698