| 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 void GetFaviconForURL( | |
| 23 ios::ChromeBrowserState* browser_state, | |
| 24 const GURL& page_url, | |
| 25 const std::vector<int>& desired_sizes_in_pixel, | |
| 26 const favicon_base::FaviconResultsCallback& callback) const override; | |
| 27 std::unique_ptr<sync_sessions::SyncedWindowDelegatesGetter> | 22 std::unique_ptr<sync_sessions::SyncedWindowDelegatesGetter> |
| 28 CreateSyncedWindowDelegatesGetter( | 23 CreateSyncedWindowDelegatesGetter( |
| 29 ios::ChromeBrowserState* browser_state) override; | 24 ios::ChromeBrowserState* browser_state) override; |
| 30 | 25 |
| 31 DISALLOW_COPY_AND_ASSIGN(DownstreamChromiumBrowserProvider); | 26 DISALLOW_COPY_AND_ASSIGN(DownstreamChromiumBrowserProvider); |
| 32 }; | 27 }; |
| 33 | 28 |
| 34 #endif // IOS_CHROME_BROWSER_DOWNSTREAM_CHROMIUM_BROWSER_PROVIDER_H_ | 29 #endif // IOS_CHROME_BROWSER_DOWNSTREAM_CHROMIUM_BROWSER_PROVIDER_H_ |
| OLD | NEW |