[email protected] | e67a73f4 | 2010-08-31 15:05:02 | [diff] [blame] | 1 | // Copyright (c) 2010 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 | |||||
[email protected] | d7196e3 | 2011-06-16 22:35:50 | [diff] [blame^] | 5 | #include "webkit/glue/user_agent.h" |
6 | #include "webkit/glue/webkit_glue.h" | ||||
7 | |||||
[email protected] | 30c9180 | 2010-12-18 00:40:17 | [diff] [blame] | 8 | #include "chrome/common/chrome_version_info.h" |
[email protected] | e67a73f4 | 2010-08-31 15:05:02 | [diff] [blame] | 9 | |
[email protected] | 105303e | 2011-03-14 22:16:10 | [diff] [blame] | 10 | class GURL; |
11 | |||||
12 | bool IsPluginProcess() { | ||||
13 | return false; | ||||
14 | } | ||||
15 | |||||
[email protected] | e67a73f4 | 2010-08-31 15:05:02 | [diff] [blame] | 16 | namespace webkit_glue { |
17 | |||||
[email protected] | 105303e | 2011-03-14 22:16:10 | [diff] [blame] | 18 | bool FindProxyForUrl(const GURL& url, std::string* proxy_list) { |
19 | return false; | ||||
[email protected] | db10d8f | 2011-03-14 00:21:47 | [diff] [blame] | 20 | } |
21 | |||||
[email protected] | d7196e3 | 2011-06-16 22:35:50 | [diff] [blame^] | 22 | std::string BuildUserAgent(bool mimic_windows) { |
[email protected] | 30c9180 | 2010-12-18 00:40:17 | [diff] [blame] | 23 | chrome::VersionInfo version_info; |
[email protected] | e67a73f4 | 2010-08-31 15:05:02 | [diff] [blame] | 24 | std::string product("Chrome/"); |
[email protected] | 30c9180 | 2010-12-18 00:40:17 | [diff] [blame] | 25 | product += version_info.is_valid() ? version_info.Version() |
26 | : "0.0.0.0"; | ||||
[email protected] | d7196e3 | 2011-06-16 22:35:50 | [diff] [blame^] | 27 | return webkit_glue::BuildUserAgentHelper(mimic_windows, product); |
[email protected] | e67a73f4 | 2010-08-31 15:05:02 | [diff] [blame] | 28 | } |
29 | |||||
30 | } // end namespace webkit_glue |