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