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 WebViewFactory* WebClient::GetWebViewFactory() const {
35 std::string WebClient::GetAcceptLangs(BrowserState* state) const {
39 std::string WebClient::GetApplicationLocale() const {
43 bool WebClient::IsAppSpecificURL(const GURL& url) const {
47 base::string16 WebClient::GetPluginNotSupportedText() const {
48 return base::string16();
51 std::string WebClient::GetProduct() const {
55 std::string WebClient::GetUserAgent(bool desktop_user_agent) const {
59 base::string16 WebClient::GetLocalizedString(int message_id) const {
60 return base::string16();
63 base::StringPiece WebClient::GetDataResource(
65 ui::ScaleFactor scale_factor) const {
66 return base::StringPiece();
69 base::RefCountedStaticMemory* WebClient::GetDataResourceBytes(
70 int resource_id) const {
74 NSString* WebClient::GetEarlyPageScript(WebViewType web_view_type) const {