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.
5 #include "webkit/glue/user_agent.h"
6 #include "webkit/glue/webkit_glue.h"
8 #include "chrome/common/chrome_version_info.h"
12 bool IsPluginProcess() {
16 namespace webkit_glue
{
18 bool FindProxyForUrl(const GURL
& url
, std::string
* proxy_list
) {
22 std::string
BuildUserAgent(bool mimic_windows
) {
23 chrome::VersionInfo version_info
;
24 std::string
product("Chrome/");
25 product
+= version_info
.is_valid() ? version_info
.Version()
27 return webkit_glue::BuildUserAgentHelper(mimic_windows
, product
);
30 } // end namespace webkit_glue