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
3 // found in the LICENSE file.
5 #include "ios/web/public/web_client.h"
7 #include <Foundation/Foundation.h>
11 static WebClient* g_client;
13 void SetWebClient(WebClient* client) {
17 WebClient* GetWebClient() {
21 WebClient::WebClient() {
24 WebClient::~WebClient() {
27 WebMainParts* WebClient::CreateWebMainParts() {
31 std::string WebClient::GetAcceptLangs(BrowserState* state) const {
35 std::string WebClient::GetApplicationLocale() const {
39 bool WebClient::IsAppSpecificURL(const GURL& url) const {
43 bool WebClient::AllowWebViewAllocInit() const {
47 bool WebClient::WebViewsNeedActiveStateManager() const {
51 base::string16 WebClient::GetPluginNotSupportedText() const {
52 return base::string16();
55 std::string WebClient::GetProduct() const {
59 std::string WebClient::GetUserAgent(bool desktop_user_agent) const {
63 base::string16 WebClient::GetLocalizedString(int message_id) const {
64 return base::string16();
67 base::StringPiece WebClient::GetDataResource(
69 ui::ScaleFactor scale_factor) const {
70 return base::StringPiece();
73 base::RefCountedStaticMemory* WebClient::GetDataResourceBytes(
74 int resource_id) const {
78 NSString* WebClient::GetEarlyPageScript(WebViewType web_view_type) const {
82 bool WebClient::IsExternalURLBlockingEnabled() const {