Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(222)

Side by Side Diff: chrome/renderer/renderer_glue.cc

Issue 1560027: Refactor FileVersionInfo into an interface with platform implementations. (Closed)
Patch Set: comments Created 10 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « chrome/common/extensions/extension.cc ('k') | chrome/test/automation/automation_proxy.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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 #include <vector> 9 #include <vector>
10 10
11 #if defined(OS_WIN) 11 #if defined(OS_WIN)
12 #include <windows.h> 12 #include <windows.h>
13 #endif 13 #endif
14 14
15 #include "app/clipboard/clipboard.h" 15 #include "app/clipboard/clipboard.h"
16 #include "app/clipboard/scoped_clipboard_writer.h" 16 #include "app/clipboard/scoped_clipboard_writer.h"
17 #include "app/resource_bundle.h" 17 #include "app/resource_bundle.h"
18 #include "base/file_version_info.h"
19 #include "base/ref_counted.h"
18 #include "base/string_util.h" 20 #include "base/string_util.h"
21 #include "chrome/app/chrome_version_info.h"
19 #include "chrome/common/chrome_switches.h" 22 #include "chrome/common/chrome_switches.h"
20 #include "chrome/common/render_messages.h" 23 #include "chrome/common/render_messages.h"
21 #include "chrome/common/socket_stream_dispatcher.h" 24 #include "chrome/common/socket_stream_dispatcher.h"
22 #include "chrome/common/url_constants.h" 25 #include "chrome/common/url_constants.h"
23 #include "chrome/plugin/npobject_util.h" 26 #include "chrome/plugin/npobject_util.h"
24 #include "chrome/renderer/net/render_dns_master.h" 27 #include "chrome/renderer/net/render_dns_master.h"
25 #include "chrome/renderer/render_process.h" 28 #include "chrome/renderer/render_process.h"
26 #include "chrome/renderer/render_thread.h" 29 #include "chrome/renderer/render_thread.h"
27 #include "googleurl/src/url_util.h" 30 #include "googleurl/src/url_util.h"
28 #include "third_party/skia/include/core/SkBitmap.h" 31 #include "third_party/skia/include/core/SkBitmap.h"
(...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after
258 } 261 }
259 262
260 void CloseCurrentConnections() { 263 void CloseCurrentConnections() {
261 RenderThread::current()->CloseCurrentConnections(); 264 RenderThread::current()->CloseCurrentConnections();
262 } 265 }
263 266
264 void SetCacheMode(bool enabled) { 267 void SetCacheMode(bool enabled) {
265 RenderThread::current()->SetCacheMode(enabled); 268 RenderThread::current()->SetCacheMode(enabled);
266 } 269 }
267 270
271 std::string GetProductVersion() {
272 scoped_ptr<FileVersionInfo> version_info(
273 chrome_app::GetChromeVersionInfo());
274 std::string product("Chrome/");
275 product += version_info.get() ? WideToASCII(version_info->product_version())
276 : "0.0.0.0";
277 return product;
278 }
279
268 } // namespace webkit_glue 280 } // namespace webkit_glue
OLDNEW
« no previous file with comments | « chrome/common/extensions/extension.cc ('k') | chrome/test/automation/automation_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698