Fix crash on app list start page contents not existing.
[chromium-blink-merge.git] / ios / web / public / web_client.cc
blob0f2cf0c686380d160f957c93bf29527e4f2fe680
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 namespace web {
9 static WebClient* g_client;
11 void SetWebClient(WebClient* client) {
12 g_client = client;
15 WebClient* GetWebClient() {
16 return g_client;
19 WebClient::WebClient() {
22 WebClient::~WebClient() {
25 WebMainParts* WebClient::CreateWebMainParts() {
26 return nullptr;
29 WebViewFactory* WebClient::GetWebViewFactory() const {
30 return nullptr;
33 std::string WebClient::GetAcceptLangs(BrowserState* state) const {
34 return std::string();
37 bool WebClient::IsAppSpecificURL(const GURL& url) const {
38 return false;
41 base::string16 WebClient::GetPluginNotSupportedText() const {
42 return base::string16();
45 std::string WebClient::GetProduct() const {
46 return std::string();
49 std::string WebClient::GetUserAgent(bool desktop_user_agent) const {
50 return std::string();
53 base::string16 WebClient::GetLocalizedString(int message_id) const {
54 return base::string16();
57 base::StringPiece WebClient::GetDataResource(
58 int resource_id,
59 ui::ScaleFactor scale_factor) const {
60 return base::StringPiece();
63 base::RefCountedStaticMemory* WebClient::GetDataResourceBytes(
64 int resource_id) const {
65 return nullptr;
68 } // namespace web