blob: 64890efb33da1c4d8440b1033122eb001d5aaf6f [file] [log] [blame]
[email protected]e67a73f42010-08-31 15:05:021// 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]d7196e32011-06-16 22:35:505#include "webkit/glue/user_agent.h"
6#include "webkit/glue/webkit_glue.h"
7
[email protected]30c91802010-12-18 00:40:178#include "chrome/common/chrome_version_info.h"
[email protected]e67a73f42010-08-31 15:05:029
[email protected]105303e2011-03-14 22:16:1010class GURL;
11
12bool IsPluginProcess() {
13 return false;
14}
15
[email protected]e67a73f42010-08-31 15:05:0216namespace webkit_glue {
17
[email protected]105303e2011-03-14 22:16:1018bool FindProxyForUrl(const GURL& url, std::string* proxy_list) {
19 return false;
[email protected]db10d8f2011-03-14 00:21:4720}
21
[email protected]d7196e32011-06-16 22:35:5022std::string BuildUserAgent(bool mimic_windows) {
[email protected]30c91802010-12-18 00:40:1723 chrome::VersionInfo version_info;
[email protected]e67a73f42010-08-31 15:05:0224 std::string product("Chrome/");
[email protected]30c91802010-12-18 00:40:1725 product += version_info.is_valid() ? version_info.Version()
26 : "0.0.0.0";
[email protected]d7196e32011-06-16 22:35:5027 return webkit_glue::BuildUserAgentHelper(mimic_windows, product);
[email protected]e67a73f42010-08-31 15:05:0228}
29
30} // end namespace webkit_glue