summaryrefslogtreecommitdiffstats
path: root/chrome_frame/renderer_glue.cc
blob: 8ecbe14dcd4f4adae94c822359c29bd607c39b07 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
// Copyright (c) 2010 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "chrome/common/chrome_version_info.h"

class GURL;

bool IsPluginProcess() {
  return false;
}

namespace webkit_glue {

void AppendToLog(const char* filename, int line, const char* message) {
}

bool IsDefaultPluginEnabled() {
  return false;
}

bool FindProxyForUrl(const GURL& url, std::string* proxy_list) {
  return false;
}

// This function is called from BuildUserAgent so we have our own version
// here instead of pulling in the whole renderer lib where this function
// is implemented for Chrome.
std::string GetProductVersion() {
  chrome::VersionInfo version_info;
  std::string product("Chrome/");
  product += version_info.is_valid() ? version_info.Version()
                                     : "0.0.0.0";
  return product;
}

}  // end namespace webkit_glue