OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "webkit/glue/user_agent.h" | 5 #include "webkit/glue/user_agent.h" |
6 #include "webkit/glue/webkit_glue.h" | 6 #include "webkit/glue/webkit_glue.h" |
7 | 7 |
8 #include "chrome/common/chrome_version_info.h" | 8 #include "chrome/common/chrome_version_info.h" |
9 | 9 |
10 class GURL; | 10 class GURL; |
11 | 11 |
12 bool IsPluginProcess() { | 12 bool IsPluginProcess() { |
13 return false; | 13 return false; |
14 } | 14 } |
15 | 15 |
16 namespace webkit_glue { | 16 namespace webkit_glue { |
17 | 17 |
18 bool FindProxyForUrl(const GURL& url, std::string* proxy_list) { | |
19 return false; | |
20 } | |
21 | |
22 std::string BuildUserAgent(bool mimic_windows) { | 18 std::string BuildUserAgent(bool mimic_windows) { |
23 chrome::VersionInfo version_info; | 19 chrome::VersionInfo version_info; |
24 std::string product("Chrome/"); | 20 std::string product("Chrome/"); |
25 product += version_info.is_valid() ? version_info.Version() | 21 product += version_info.is_valid() ? version_info.Version() |
26 : "0.0.0.0"; | 22 : "0.0.0.0"; |
27 return webkit_glue::BuildUserAgentHelper(mimic_windows, product); | 23 return webkit_glue::BuildUserAgentHelper(mimic_windows, product); |
28 } | 24 } |
29 | 25 |
30 } // end namespace webkit_glue | 26 } // end namespace webkit_glue |
OLD | NEW |