Update V8 to version 4.6.61.
[chromium-blink-merge.git] / ios / web / ui_web_view_util.h
blob46b36abab59dd44a2a6c558c206be8d2e8e21001
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 #ifndef IOS_WEB_UI_WEB_VIEW_UTIL_H_
6 #define IOS_WEB_UI_WEB_VIEW_UTIL_H_
8 #include <Foundation/Foundation.h>
10 namespace web {
12 // Registers the user agent encoding |request_group_id| in the user defaults.
13 // This is a utility method, used to workaround crbug.com/228397. Do not use
14 // it for other purposes.
15 void BuildAndRegisterUserAgentForUIWebView(NSString* request_group_id,
16 BOOL use_desktop_user_agent);
18 // Registers |user_agent| as the user agent string to be used by the UIWebView
19 // instances that are created from now on.
20 void RegisterUserAgentForUIWebView(NSString* user_agent);
22 } // namespace web
24 #endif // IOS_WEB_UI_WEB_VIEW_UTIL_H_