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 "chrome/common/chrome_version_info.h" | 5 #include "chrome/common/chrome_version_info.h" |
6 | 6 |
| 7 class GURL; |
| 8 |
| 9 bool IsPluginProcess() { |
| 10 return false; |
| 11 } |
| 12 |
7 namespace webkit_glue { | 13 namespace webkit_glue { |
8 | 14 |
9 void AppendToLog(const char* filename, int line, const char* message) { | 15 void AppendToLog(const char* filename, int line, const char* message) { |
10 } | 16 } |
11 | 17 |
12 bool IsPluginRunningInRendererProcess() { | 18 bool IsDefaultPluginEnabled() { |
13 return true; | 19 return false; |
| 20 } |
| 21 |
| 22 bool FindProxyForUrl(const GURL& url, std::string* proxy_list) { |
| 23 return false; |
14 } | 24 } |
15 | 25 |
16 // This function is called from BuildUserAgent so we have our own version | 26 // This function is called from BuildUserAgent so we have our own version |
17 // here instead of pulling in the whole renderer lib where this function | 27 // here instead of pulling in the whole renderer lib where this function |
18 // is implemented for Chrome. | 28 // is implemented for Chrome. |
19 std::string GetProductVersion() { | 29 std::string GetProductVersion() { |
20 chrome::VersionInfo version_info; | 30 chrome::VersionInfo version_info; |
21 std::string product("Chrome/"); | 31 std::string product("Chrome/"); |
22 product += version_info.is_valid() ? version_info.Version() | 32 product += version_info.is_valid() ? version_info.Version() |
23 : "0.0.0.0"; | 33 : "0.0.0.0"; |
24 return product; | 34 return product; |
25 } | 35 } |
26 | 36 |
27 } // end namespace webkit_glue | 37 } // end namespace webkit_glue |
28 | |
OLD | NEW |