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

Unified 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, 11 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 side-by-side diff with in-line comments
Download patch
« ios/web/public/web_client.h ('K') | « ios/web/public/web_client.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/web/public/web_client.cc
diff --git a/ios/web/public/web_client.cc b/ios/web/public/web_client.cc
new file mode 100644
index 0000000000000000000000000000000000000000..75bdf0d551918a9f109e75b8af86c0c72a4176ce
--- /dev/null
+++ b/ios/web/public/web_client.cc
@@ -0,0 +1,67 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "ios/web/public/web_client.h"
+
+namespace web {
+
+static WebClient* g_client;
+
+void SetWebClient(WebClient* client) {
+ g_client = client;
+}
+
+WebClient* GetWebClient() {
+ return g_client;
+}
+
+WebClient::WebClient() {
+}
+WebClient::~WebClient() {
sdefresne 2015/01/30 10:29:46 nit: please separate them with an empty line
+}
+
+WebMainParts* WebClient::CreateWebMainParts() {
+ return nullptr;
+}
+
+WebViewFactory* WebClient::GetWebViewFactory() const {
+ return nullptr;
+}
+
+std::string WebClient::GetAcceptLangs(BrowserState* state) const {
+ return std::string();
+}
+
+bool WebClient::IsAppSpecificURL(const GURL& url) const {
+ return false;
+}
+
+base::string16 WebClient::GetPluginNotSupportedText() const {
+ return base::string16();
+}
+
+std::string WebClient::GetProduct() const {
+ return std::string();
+}
+
+std::string WebClient::GetUserAgent(bool desktop_user_agent) const {
+ return std::string();
+}
+
+base::string16 WebClient::GetLocalizedString(int message_id) const {
+ return base::string16();
+}
+
+base::StringPiece WebClient::GetDataResource(
+ int resource_id,
+ ui::ScaleFactor scale_factor) const {
+ return base::StringPiece();
+}
+
+base::RefCountedStaticMemory* WebClient::GetDataResourceBytes(
+ int resource_id) const {
+ return nullptr;
+}
+
+} // namespace web
« 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