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

Side by Side Diff: ios/public/provider/chrome/browser/chrome_browser_provider.h

Issue 2612583002: Remove ChromeBrowserProvider::CreateCardUnmaskPromptView(). (Closed)
Patch Set: Created 3 years, 11 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 IOS_PUBLIC_PROVIDER_CHROME_BROWSER_CHROME_BROWSER_PROVIDER_H_ 5 #ifndef IOS_PUBLIC_PROVIDER_CHROME_BROWSER_CHROME_BROWSER_PROVIDER_H_
6 #define IOS_PUBLIC_PROVIDER_CHROME_BROWSER_CHROME_BROWSER_PROVIDER_H_ 6 #define IOS_PUBLIC_PROVIDER_CHROME_BROWSER_CHROME_BROWSER_PROVIDER_H_
7 7
8 #include <CoreGraphics/CoreGraphics.h> 8 #include <CoreGraphics/CoreGraphics.h>
9 #import <Foundation/Foundation.h> 9 #import <Foundation/Foundation.h>
10 #include <stddef.h> 10 #include <stddef.h>
11 11
12 #include <memory> 12 #include <memory>
13 #include <string> 13 #include <string>
14 #include <vector> 14 #include <vector>
15 15
16 #include "base/callback_forward.h" 16 #include "base/callback_forward.h"
17 #include "base/memory/ref_counted.h" 17 #include "base/memory/ref_counted.h"
18 #include "components/favicon_base/favicon_callback.h" 18 #include "components/favicon_base/favicon_callback.h"
19 19
20 class AppDistributionProvider; 20 class AppDistributionProvider;
21 class BrandedImageProvider; 21 class BrandedImageProvider;
22 class GURL; 22 class GURL;
23 class OmahaServiceProvider; 23 class OmahaServiceProvider;
24 class SpotlightProvider; 24 class SpotlightProvider;
25 class UserFeedbackProvider; 25 class UserFeedbackProvider;
26 class VoiceSearchProvider; 26 class VoiceSearchProvider;
27 27
28 namespace autofill {
29 class CardUnmaskPromptController;
30 class CardUnmaskPromptView;
31 }
32
33 namespace web { 28 namespace web {
34 class WebState; 29 class WebState;
35 } 30 }
36 31
37 namespace sync_sessions { 32 namespace sync_sessions {
38 class SyncedWindowDelegatesGetter; 33 class SyncedWindowDelegatesGetter;
39 } 34 }
40 35
41 @protocol AppRatingPrompt; 36 @protocol AppRatingPrompt;
42 @protocol LogoVendor; 37 @protocol LogoVendor;
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 virtual void SetChromeIdentityServiceForTesting( 82 virtual void SetChromeIdentityServiceForTesting(
88 std::unique_ptr<ChromeIdentityService> service); 83 std::unique_ptr<ChromeIdentityService> service);
89 // Returns an instance of a Chrome identity service. 84 // Returns an instance of a Chrome identity service.
90 virtual ChromeIdentityService* GetChromeIdentityService(); 85 virtual ChromeIdentityService* GetChromeIdentityService();
91 // Returns an instance of a GeolocationUpdaterProvider. 86 // Returns an instance of a GeolocationUpdaterProvider.
92 virtual GeolocationUpdaterProvider* GetGeolocationUpdaterProvider(); 87 virtual GeolocationUpdaterProvider* GetGeolocationUpdaterProvider();
93 // Returns "enabled", "disabled", or "default". 88 // Returns "enabled", "disabled", or "default".
94 virtual std::string DataReductionProxyAvailability(); 89 virtual std::string DataReductionProxyAvailability();
95 // Returns the distribution brand code. 90 // Returns the distribution brand code.
96 virtual std::string GetDistributionBrandCode(); 91 virtual std::string GetDistributionBrandCode();
97 // Returns an instance of a CardUnmaskPromptView used to unmask Wallet cards.
98 // The view is responsible for its own lifetime.
99 virtual autofill::CardUnmaskPromptView* CreateCardUnmaskPromptView(
100 autofill::CardUnmaskPromptController* controller);
101 // Returns risk data used in Wallet requests. 92 // Returns risk data used in Wallet requests.
102 virtual std::string GetRiskData(); 93 virtual std::string GetRiskData();
103 // Returns whether there is an Off-The-Record session active. 94 // Returns whether there is an Off-The-Record session active.
104 virtual bool IsOffTheRecordSessionActive(); 95 virtual bool IsOffTheRecordSessionActive();
105 // Get the favicon for |page_url| and run |callback| with result when loaded. 96 // Get the favicon for |page_url| and run |callback| with result when loaded.
106 // Note. |callback| is always run asynchronously. 97 // Note. |callback| is always run asynchronously.
107 virtual void GetFaviconForURL( 98 virtual void GetFaviconForURL(
108 ChromeBrowserState* browser_state, 99 ChromeBrowserState* browser_state,
109 const GURL& page_url, 100 const GURL& page_url,
110 const std::vector<int>& desired_sizes_in_pixel, 101 const std::vector<int>& desired_sizes_in_pixel,
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
168 // not dismiss them. 159 // not dismiss them.
169 virtual void LogIfModalViewsArePresented() const; 160 virtual void LogIfModalViewsArePresented() const;
170 161
171 // Returns an instance of the spotlight provider. 162 // Returns an instance of the spotlight provider.
172 virtual SpotlightProvider* GetSpotlightProvider() const; 163 virtual SpotlightProvider* GetSpotlightProvider() const;
173 }; 164 };
174 165
175 } // namespace ios 166 } // namespace ios
176 167
177 #endif // IOS_PUBLIC_PROVIDER_CHROME_BROWSER_CHROME_BROWSER_PROVIDER_H_ 168 #endif // IOS_PUBLIC_PROVIDER_CHROME_BROWSER_CHROME_BROWSER_PROVIDER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698