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

Side by Side Diff: chrome/browser/payments/chrome_payment_request_delegate.h

Issue 2883563002: Refactor UKM interface for mojo-ification (Closed)
Patch Set: Fix uma_session_stats.cc 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 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 #ifndef CHROME_BROWSER_PAYMENTS_CHROME_PAYMENT_REQUEST_DELEGATE_H_ 5 #ifndef CHROME_BROWSER_PAYMENTS_CHROME_PAYMENT_REQUEST_DELEGATE_H_
6 #define CHROME_BROWSER_PAYMENTS_CHROME_PAYMENT_REQUEST_DELEGATE_H_ 6 #define CHROME_BROWSER_PAYMENTS_CHROME_PAYMENT_REQUEST_DELEGATE_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 10
(...skipping 22 matching lines...) Expand all
33 const std::string& GetApplicationLocale() const override; 33 const std::string& GetApplicationLocale() const override;
34 bool IsIncognito() const override; 34 bool IsIncognito() const override;
35 bool IsSslCertificateValid() override; 35 bool IsSslCertificateValid() override;
36 const GURL& GetLastCommittedURL() const override; 36 const GURL& GetLastCommittedURL() const override;
37 void DoFullCardRequest( 37 void DoFullCardRequest(
38 const autofill::CreditCard& credit_card, 38 const autofill::CreditCard& credit_card,
39 base::WeakPtr<autofill::payments::FullCardRequest::ResultDelegate> 39 base::WeakPtr<autofill::payments::FullCardRequest::ResultDelegate>
40 result_delegate) override; 40 result_delegate) override;
41 AddressNormalizer* GetAddressNormalizer() override; 41 AddressNormalizer* GetAddressNormalizer() override;
42 autofill::RegionDataLoader* GetRegionDataLoader() override; 42 autofill::RegionDataLoader* GetRegionDataLoader() override;
43 ukm::UkmService* GetUkmService() override; 43 ukm::UkmRecorder* GetUkmRecorder() override;
44 std::string GetAuthenticatedEmail() const override; 44 std::string GetAuthenticatedEmail() const override;
45 PrefService* GetPrefService() override; 45 PrefService* GetPrefService() override;
46 46
47 protected: 47 protected:
48 // Reference to the dialog so that we can satisfy calls to CloseDialog(). This 48 // Reference to the dialog so that we can satisfy calls to CloseDialog(). This
49 // reference is invalid once CloseDialog() has been called on it, because the 49 // reference is invalid once CloseDialog() has been called on it, because the
50 // dialog will be destroyed. Protected for testing. 50 // dialog will be destroyed. Protected for testing.
51 PaymentRequestDialog* dialog_; 51 PaymentRequestDialog* dialog_;
52 52
53 private: 53 private:
54 // Not owned but outlives the PaymentRequest object that owns this. 54 // Not owned but outlives the PaymentRequest object that owns this.
55 content::WebContents* web_contents_; 55 content::WebContents* web_contents_;
56 56
57 // The address normalizer to use for the duration of the Payment Request. 57 // The address normalizer to use for the duration of the Payment Request.
58 AddressNormalizerImpl address_normalizer_; 58 AddressNormalizerImpl address_normalizer_;
59 59
60 DISALLOW_COPY_AND_ASSIGN(ChromePaymentRequestDelegate); 60 DISALLOW_COPY_AND_ASSIGN(ChromePaymentRequestDelegate);
61 }; 61 };
62 62
63 } // namespace payments 63 } // namespace payments
64 64
65 #endif // CHROME_BROWSER_PAYMENTS_CHROME_PAYMENT_REQUEST_DELEGATE_H_ 65 #endif // CHROME_BROWSER_PAYMENTS_CHROME_PAYMENT_REQUEST_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698