summaryrefslogtreecommitdiffstats
path: root/chrome/renderer/renderer_glue.cc
diff options
context:
space:
mode:
authormaruel@google.com <maruel@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-08-02 18:03:31 +0000
committermaruel@google.com <maruel@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-08-02 18:03:31 +0000
commita23f3031457f6518580a976204c099bb43069dd2 (patch)
treed87d6f6a3865121c50f19bc1bcc1799c7ce91efa /chrome/renderer/renderer_glue.cc
parent5d15ae918f5b07bb5203ee001cdefd9058ddac86 (diff)
downloadchromium_src-a23f3031457f6518580a976204c099bb43069dd2.zip
chromium_src-a23f3031457f6518580a976204c099bb43069dd2.tar.gz
chromium_src-a23f3031457f6518580a976204c099bb43069dd2.tar.bz2
Trim the dependencies of the plugin_dll and renderer_dll projects. Browser_dll will follow. At this point, plugin.dll and renderer.dll are roughly 35% smaller than browser.dll and chrome.dll
BUG=1211534 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@290 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/renderer/renderer_glue.cc')
-rw-r--r--chrome/renderer/renderer_glue.cc39
1 files changed, 0 insertions, 39 deletions
diff --git a/chrome/renderer/renderer_glue.cc b/chrome/renderer/renderer_glue.cc
index 5d9c9d4..7be4c7b 100644
--- a/chrome/renderer/renderer_glue.cc
+++ b/chrome/renderer/renderer_glue.cc
@@ -32,27 +32,14 @@
#include <windows.h>
#include <wininet.h>
-#include "base/command_line.h"
-#include "base/logging.h"
-#include "base/path_service.h"
-#include "base/string_util.h"
#include "chrome/renderer/net/render_dns_master.h"
-#include "chrome/common/chrome_paths.h"
-#include "chrome/common/chrome_switches.h"
-#include "chrome/common/render_messages.h"
#include "chrome/common/resource_bundle.h"
-#include "chrome/common/resource_dispatcher.h"
#include "chrome/plugin/npobject_util.h"
-#include "chrome/renderer/render_process.h"
-#include "chrome/renderer/render_thread.h"
#include "chrome/renderer/render_view.h"
#include "chrome/renderer/visitedlink_slave.h"
-#include "googleurl/src/gurl.h"
#include "googleurl/src/url_util.h"
#include "net/base/mime_util.h"
-#include "webkit/glue/resource_type.h"
#include "webkit/glue/webframe.h"
-#include "webkit/glue/webview.h"
#include "webkit/glue/webkit_glue.h"
#include "SkBitmap.h"
@@ -202,10 +189,6 @@ IMLangFontLink2* webkit_glue::GetLangFontLink() {
return RenderProcess::GetLangFontLink();
}
-std::wstring webkit_glue::GetLocalizedString(int message_id) {
- return ResourceBundle::GetSharedInstance().GetLocalizedString(message_id);
-}
-
std::string webkit_glue::GetDataResource(int resource_id) {
return ResourceBundle::GetSharedInstance().GetDataResource(resource_id);
}
@@ -289,11 +272,6 @@ void webkit_glue::ClipboardReadHTML(std::wstring* markup, GURL* url) {
RenderThread::current()->Send(new ViewHostMsg_ClipboardReadHTML(markup, url));
}
-
-bool webkit_glue::GetApplicationDirectory(std::wstring *path) {
- return PathService::Get(chrome::DIR_APP, path);
-}
-
GURL webkit_glue::GetInspectorURL() {
return GURL("chrome-resource://inspector/inspector.html");
}
@@ -302,20 +280,12 @@ std::string webkit_glue::GetUIResourceProtocol() {
return "chrome-resource";
}
-bool webkit_glue::GetExeDirectory(std::wstring *path) {
- return PathService::Get(base::DIR_EXE, path);
-}
-
bool webkit_glue::GetPlugins(bool refresh,
std::vector<WebPluginInfo>* plugins) {
return RenderThread::current()->Send(
new ViewHostMsg_GetPlugins(refresh, plugins));
}
-bool webkit_glue::IsPluginRunningInRendererProcess() {
- return !IsPluginProcess();
-}
-
bool webkit_glue::EnsureFontLoaded(HFONT font) {
LOGFONT logfont;
GetObject(font, sizeof(LOGFONT), &logfont);
@@ -329,15 +299,6 @@ MONITORINFOEX webkit_glue::GetMonitorInfoForWindow(HWND window) {
return monitor_info;
}
-std::wstring webkit_glue::GetWebKitLocale() {
- // The browser process should have passed the locale to the renderer via the
- // --lang command line flag.
- CommandLine parsed_command_line;
- const std::wstring& lang =
- parsed_command_line.GetSwitchValue(switches::kLang);
- DCHECK(!lang.empty());
- return lang;
-}
#ifndef USING_SIMPLE_RESOURCE_LOADER_BRIDGE