OLD | NEW |
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 IOS_CHROME_BROWSER_DOWNSTREAM_CHROMIUM_BROWSER_PROVIDER_H_ | 5 #ifndef IOS_CHROME_BROWSER_DOWNSTREAM_CHROMIUM_BROWSER_PROVIDER_H_ |
6 #define IOS_CHROME_BROWSER_DOWNSTREAM_CHROMIUM_BROWSER_PROVIDER_H_ | 6 #define IOS_CHROME_BROWSER_DOWNSTREAM_CHROMIUM_BROWSER_PROVIDER_H_ |
7 | 7 |
8 #include "ios/chrome/browser/providers/chromium_browser_provider.h" | 8 #include "ios/chrome/browser/providers/chromium_browser_provider.h" |
9 | 9 |
10 // DownstreamChromiumBrowserProvider contains provider implementations that will | 10 // DownstreamChromiumBrowserProvider contains provider implementations that will |
11 // eventually move into the upstream ChromiumBrowserProvider, but currently | 11 // eventually move into the upstream ChromiumBrowserProvider, but currently |
12 // cannot move because they have internal dependencies. | 12 // cannot move because they have internal dependencies. |
13 class DownstreamChromiumBrowserProvider : public ChromiumBrowserProvider { | 13 class DownstreamChromiumBrowserProvider : public ChromiumBrowserProvider { |
14 public: | 14 public: |
15 DownstreamChromiumBrowserProvider(); | 15 DownstreamChromiumBrowserProvider(); |
16 ~DownstreamChromiumBrowserProvider() override; | 16 ~DownstreamChromiumBrowserProvider() override; |
17 | 17 |
18 private: | 18 private: |
19 // ChromeBrowserProvider implementations. All of these will move upstream | 19 // ChromeBrowserProvider implementations. All of these will move upstream |
20 // into ChromiumBrowserProvider eventually, and from there callers will be | 20 // into ChromiumBrowserProvider eventually, and from there callers will be |
21 // converted to not go through the provider API at all. | 21 // converted to not go through the provider API at all. |
22 autofill::CardUnmaskPromptView* CreateCardUnmaskPromptView( | |
23 autofill::CardUnmaskPromptController* controller) override; | |
24 bool IsOffTheRecordSessionActive() override; | 22 bool IsOffTheRecordSessionActive() override; |
25 void GetFaviconForURL( | 23 void GetFaviconForURL( |
26 ios::ChromeBrowserState* browser_state, | 24 ios::ChromeBrowserState* browser_state, |
27 const GURL& page_url, | 25 const GURL& page_url, |
28 const std::vector<int>& desired_sizes_in_pixel, | 26 const std::vector<int>& desired_sizes_in_pixel, |
29 const favicon_base::FaviconResultsCallback& callback) const override; | 27 const favicon_base::FaviconResultsCallback& callback) const override; |
30 std::unique_ptr<sync_sessions::SyncedWindowDelegatesGetter> | 28 std::unique_ptr<sync_sessions::SyncedWindowDelegatesGetter> |
31 CreateSyncedWindowDelegatesGetter( | 29 CreateSyncedWindowDelegatesGetter( |
32 ios::ChromeBrowserState* browser_state) override; | 30 ios::ChromeBrowserState* browser_state) override; |
33 | 31 |
34 DISALLOW_COPY_AND_ASSIGN(DownstreamChromiumBrowserProvider); | 32 DISALLOW_COPY_AND_ASSIGN(DownstreamChromiumBrowserProvider); |
35 }; | 33 }; |
36 | 34 |
37 #endif // IOS_CHROME_BROWSER_DOWNSTREAM_CHROMIUM_BROWSER_PROVIDER_H_ | 35 #endif // IOS_CHROME_BROWSER_DOWNSTREAM_CHROMIUM_BROWSER_PROVIDER_H_ |
OLD | NEW |