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

Unified Diff: ios/web/ui_web_view_util.h

Issue 1043243003: Upstream most of ios/web/net (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove accidentally-added clients Created 5 years, 9 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
« no previous file with comments | « ios/web/public/test/test_web_client.mm ('k') | ios/web/ui_web_view_util.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/web/ui_web_view_util.h
diff --git a/ios/web/ui_web_view_util.h b/ios/web/ui_web_view_util.h
new file mode 100644
index 0000000000000000000000000000000000000000..46b36abab59dd44a2a6c558c206be8d2e8e21001
--- /dev/null
+++ b/ios/web/ui_web_view_util.h
@@ -0,0 +1,24 @@
+// 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.
+
+#ifndef IOS_WEB_UI_WEB_VIEW_UTIL_H_
+#define IOS_WEB_UI_WEB_VIEW_UTIL_H_
+
+#include <Foundation/Foundation.h>
+
+namespace web {
+
+// Registers the user agent encoding |request_group_id| in the user defaults.
+// This is a utility method, used to workaround crbug.com/228397. Do not use
+// it for other purposes.
+void BuildAndRegisterUserAgentForUIWebView(NSString* request_group_id,
+ BOOL use_desktop_user_agent);
+
+// Registers |user_agent| as the user agent string to be used by the UIWebView
+// instances that are created from now on.
+void RegisterUserAgentForUIWebView(NSString* user_agent);
+
+} // namespace web
+
+#endif // IOS_WEB_UI_WEB_VIEW_UTIL_H_
« no previous file with comments | « ios/web/public/test/test_web_client.mm ('k') | ios/web/ui_web_view_util.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698