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

Side by Side Diff: components/payments/content/payment_request.h

Issue 2851893002: [Payments] Record CanMakePayment metrics on Desktop. (Closed)
Patch Set: Created 3 years, 7 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 #ifndef COMPONENTS_PAYMENTS_CONTENT_PAYMENT_REQUEST_H_ 5 #ifndef COMPONENTS_PAYMENTS_CONTENT_PAYMENT_REQUEST_H_
6 #define COMPONENTS_PAYMENTS_CONTENT_PAYMENT_REQUEST_H_ 6 #define COMPONENTS_PAYMENTS_CONTENT_PAYMENT_REQUEST_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/macros.h" 11 #include "base/macros.h"
12 #include "components/payments/content/payment_request_spec.h" 12 #include "components/payments/content/payment_request_spec.h"
13 #include "components/payments/content/payment_request_state.h" 13 #include "components/payments/content/payment_request_state.h"
14 #include "components/payments/core/journey_logger.h"
14 #include "components/payments/core/payment_request_delegate.h" 15 #include "components/payments/core/payment_request_delegate.h"
15 #include "components/payments/mojom/payment_request.mojom.h" 16 #include "components/payments/mojom/payment_request.mojom.h"
16 #include "mojo/public/cpp/bindings/binding.h" 17 #include "mojo/public/cpp/bindings/binding.h"
17 #include "mojo/public/cpp/bindings/interface_request.h" 18 #include "mojo/public/cpp/bindings/interface_request.h"
18 19
19 namespace content { 20 namespace content {
20 class WebContents; 21 class WebContents;
21 } 22 }
22 23
23 namespace payments { 24 namespace payments {
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 PaymentRequestWebContentsManager* manager_; 96 PaymentRequestWebContentsManager* manager_;
96 mojo::Binding<mojom::PaymentRequest> binding_; 97 mojo::Binding<mojom::PaymentRequest> binding_;
97 mojom::PaymentRequestClientPtr client_; 98 mojom::PaymentRequestClientPtr client_;
98 99
99 std::unique_ptr<PaymentRequestSpec> spec_; 100 std::unique_ptr<PaymentRequestSpec> spec_;
100 std::unique_ptr<PaymentRequestState> state_; 101 std::unique_ptr<PaymentRequestState> state_;
101 102
102 // May be null, must outlive this object. 103 // May be null, must outlive this object.
103 ObserverForTest* observer_for_testing_; 104 ObserverForTest* observer_for_testing_;
104 105
106 JourneyLogger journey_logger_;
107
105 DISALLOW_COPY_AND_ASSIGN(PaymentRequest); 108 DISALLOW_COPY_AND_ASSIGN(PaymentRequest);
106 }; 109 };
107 110
108 } // namespace payments 111 } // namespace payments
109 112
110 #endif // COMPONENTS_PAYMENTS_CONTENT_PAYMENT_REQUEST_H_ 113 #endif // COMPONENTS_PAYMENTS_CONTENT_PAYMENT_REQUEST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698