Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_WEB_CHROME_WEB_CLIENT_H_ | 5 #ifndef IOS_CHROME_BROWSER_WEB_CHROME_WEB_CLIENT_H_ |
| 6 #define IOS_CHROME_BROWSER_WEB_CHROME_WEB_CLIENT_H_ | 6 #define IOS_CHROME_BROWSER_WEB_CHROME_WEB_CLIENT_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "ios/web/public/web_client.h" | 9 #include "ios/web/public/web_client.h" |
| 10 | 10 |
| 11 // Chrome implementation of WebClient. | 11 // Chrome implementation of WebClient. |
| 12 class ChromeWebClient : public web::WebClient { | 12 class ChromeWebClient : public web::WebClient { |
| 13 public: | 13 public: |
| 14 ChromeWebClient(); | 14 ChromeWebClient(); |
| 15 ~ChromeWebClient() override; | 15 ~ChromeWebClient() override; |
| 16 | 16 |
| 17 // WebClient implementation. | 17 // WebClient implementation. |
| 18 web::WebMainParts* CreateWebMainParts() override; | 18 std::unique_ptr<web::WebMainParts> CreateWebMainParts() override; |
|
Eugene But (OOO till 7-30)
2017/01/20 22:11:41
Please include <memory> everywhere where std::uniq
michaeldo
2017/01/23 17:30:54
Done.
| |
| 19 void PreWebViewCreation() const override; | 19 void PreWebViewCreation() const override; |
| 20 void AddAdditionalSchemes(std::vector<url::SchemeWithType>* | 20 void AddAdditionalSchemes(std::vector<url::SchemeWithType>* |
| 21 additional_standard_schemes) const override; | 21 additional_standard_schemes) const override; |
| 22 std::string GetAcceptLangs(web::BrowserState* state) const override; | 22 std::string GetAcceptLangs(web::BrowserState* state) const override; |
| 23 std::string GetApplicationLocale() const override; | 23 std::string GetApplicationLocale() const override; |
| 24 bool IsAppSpecificURL(const GURL& url) const override; | 24 bool IsAppSpecificURL(const GURL& url) const override; |
| 25 base::string16 GetPluginNotSupportedText() const override; | 25 base::string16 GetPluginNotSupportedText() const override; |
| 26 std::string GetProduct() const override; | 26 std::string GetProduct() const override; |
| 27 std::string GetUserAgent(bool desktop_user_agent) const override; | 27 std::string GetUserAgent(bool desktop_user_agent) const override; |
| 28 base::string16 GetLocalizedString(int message_id) const override; | 28 base::string16 GetLocalizedString(int message_id) const override; |
| (...skipping 17 matching lines...) Expand all Loading... | |
| 46 std::vector<base::SchedulerWorkerPoolParams>* params_vector, | 46 std::vector<base::SchedulerWorkerPoolParams>* params_vector, |
| 47 base::TaskScheduler::WorkerPoolIndexForTraitsCallback* | 47 base::TaskScheduler::WorkerPoolIndexForTraitsCallback* |
| 48 index_to_traits_callback) override; | 48 index_to_traits_callback) override; |
| 49 void PerformExperimentalTaskSchedulerRedirections() override; | 49 void PerformExperimentalTaskSchedulerRedirections() override; |
| 50 | 50 |
| 51 private: | 51 private: |
| 52 DISALLOW_COPY_AND_ASSIGN(ChromeWebClient); | 52 DISALLOW_COPY_AND_ASSIGN(ChromeWebClient); |
| 53 }; | 53 }; |
| 54 | 54 |
| 55 #endif // IOS_CHROME_BROWSER_WEB_CHROME_WEB_CLIENT_H_ | 55 #endif // IOS_CHROME_BROWSER_WEB_CHROME_WEB_CLIENT_H_ |
| OLD | NEW |