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 // This file provides the embedder's side of random webkit glue functions. | 5 // This file provides the embedder's side of random webkit glue functions. |
6 | 6 |
7 #include "build/build_config.h" | 7 #include "build/build_config.h" |
8 | 8 |
9 #if defined(OS_WIN) | 9 #if defined(OS_WIN) |
10 #include <windows.h> | 10 #include <windows.h> |
(...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
249 RenderThread::current()->SetCacheMode(enabled); | 249 RenderThread::current()->SetCacheMode(enabled); |
250 } | 250 } |
251 | 251 |
252 void ClearCache() { | 252 void ClearCache() { |
253 RenderThread::current()->ClearCache(); | 253 RenderThread::current()->ClearCache(); |
254 } | 254 } |
255 | 255 |
256 std::string GetProductVersion() { | 256 std::string GetProductVersion() { |
257 chrome::VersionInfo version_info; | 257 chrome::VersionInfo version_info; |
258 std::string product("Chrome/"); | 258 std::string product("Chrome/"); |
259 product += version_info.is_valid() ? version_info.Version() | 259 product += version_info.Version(); |
260 : "0.0.0.0"; | |
261 return product; | 260 return product; |
262 } | 261 } |
263 | 262 |
264 bool IsSingleProcess() { | 263 bool IsSingleProcess() { |
265 return CommandLine::ForCurrentProcess()->HasSwitch(switches::kSingleProcess); | 264 return CommandLine::ForCurrentProcess()->HasSwitch(switches::kSingleProcess); |
266 } | 265 } |
267 | 266 |
268 void EnableSpdy(bool enable) { | 267 void EnableSpdy(bool enable) { |
269 RenderThread::current()->EnableSpdy(enable); | 268 RenderThread::current()->EnableSpdy(enable); |
270 } | 269 } |
(...skipping 11 matching lines...) Expand all Loading... |
282 } | 281 } |
283 | 282 |
284 bool GetFontTable(int fd, uint32_t table, uint8_t* output, | 283 bool GetFontTable(int fd, uint32_t table, uint8_t* output, |
285 size_t* output_length) { | 284 size_t* output_length) { |
286 return renderer_sandbox_support::GetFontTable( | 285 return renderer_sandbox_support::GetFontTable( |
287 fd, table, output, output_length); | 286 fd, table, output, output_length); |
288 } | 287 } |
289 #endif | 288 #endif |
290 | 289 |
291 } // namespace webkit_glue | 290 } // namespace webkit_glue |
OLD | NEW |