Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(359)

Side by Side Diff: ios/web/public/web_client.cc

Issue 889663002: Upstream the iOS WebClient (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« ios/web/public/web_client.h ('K') | « ios/web/public/web_client.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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.
4
5 #include "ios/web/public/web_client.h"
6
7 namespace web {
8
9 static WebClient* g_client;
10
11 void SetWebClient(WebClient* client) {
12 g_client = client;
13 }
14
15 WebClient* GetWebClient() {
16 return g_client;
17 }
18
19 WebClient::WebClient() {
20 }
21 WebClient::~WebClient() {
sdefresne 2015/01/30 10:29:46 nit: please separate them with an empty line
22 }
23
24 WebMainParts* WebClient::CreateWebMainParts() {
25 return nullptr;
26 }
27
28 WebViewFactory* WebClient::GetWebViewFactory() const {
29 return nullptr;
30 }
31
32 std::string WebClient::GetAcceptLangs(BrowserState* state) const {
33 return std::string();
34 }
35
36 bool WebClient::IsAppSpecificURL(const GURL& url) const {
37 return false;
38 }
39
40 base::string16 WebClient::GetPluginNotSupportedText() const {
41 return base::string16();
42 }
43
44 std::string WebClient::GetProduct() const {
45 return std::string();
46 }
47
48 std::string WebClient::GetUserAgent(bool desktop_user_agent) const {
49 return std::string();
50 }
51
52 base::string16 WebClient::GetLocalizedString(int message_id) const {
53 return base::string16();
54 }
55
56 base::StringPiece WebClient::GetDataResource(
57 int resource_id,
58 ui::ScaleFactor scale_factor) const {
59 return base::StringPiece();
60 }
61
62 base::RefCountedStaticMemory* WebClient::GetDataResourceBytes(
63 int resource_id) const {
64 return nullptr;
65 }
66
67 } // namespace web
OLDNEW
« ios/web/public/web_client.h ('K') | « ios/web/public/web_client.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698