summaryrefslogtreecommitdiffstats
path: root/content/renderer/webplugin_delegate_proxy.cc
diff options
context:
space:
mode:
authorjam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-10-19 21:31:26 +0000
committerjam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-10-19 21:31:26 +0000
commite9ff79ccdf72412480abf22860924c3eedcc61f0 (patch)
treec85c010a58d15374fc7fc2d31f9c8f33e3f74ae3 /content/renderer/webplugin_delegate_proxy.cc
parent5f23a1cf7f266005763a9c40ec4a422f7dc9b3bb (diff)
downloadchromium_src-e9ff79ccdf72412480abf22860924c3eedcc61f0.zip
chromium_src-e9ff79ccdf72412480abf22860924c3eedcc61f0.tar.gz
chromium_src-e9ff79ccdf72412480abf22860924c3eedcc61f0.tar.bz2
Move a bunch of code in content\renderer to the content namespace.
Review URL: https://codereview.chromium.org/11232014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@163061 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/renderer/webplugin_delegate_proxy.cc')
-rw-r--r--content/renderer/webplugin_delegate_proxy.cc12
1 files changed, 8 insertions, 4 deletions
diff --git a/content/renderer/webplugin_delegate_proxy.cc b/content/renderer/webplugin_delegate_proxy.cc
index e76d421..8c23272 100644
--- a/content/renderer/webplugin_delegate_proxy.cc
+++ b/content/renderer/webplugin_delegate_proxy.cc
@@ -72,6 +72,8 @@ using WebKit::WebInputEvent;
using WebKit::WebString;
using WebKit::WebView;
+namespace content {
+
namespace {
class ScopedLogLevel {
@@ -458,7 +460,7 @@ void WebPluginDelegateProxy::DidManualLoadFail() {
}
bool WebPluginDelegateProxy::OnMessageReceived(const IPC::Message& msg) {
- content::GetContentClient()->SetActiveURL(page_url_);
+ GetContentClient()->SetActiveURL(page_url_);
bool handled = true;
IPC_BEGIN_MESSAGE_MAP(WebPluginDelegateProxy, msg)
@@ -555,8 +557,8 @@ static void CopyTransportDIBHandleForMessage(
#elif defined(OS_WIN)
// On Windows we need to duplicate the handle for the plugin process.
*handle_out = NULL;
- content::BrokerDuplicateHandle(handle_in, peer_pid, handle_out,
- FILE_MAP_READ | FILE_MAP_WRITE, 0);
+ BrokerDuplicateHandle(handle_in, peer_pid, handle_out,
+ FILE_MAP_READ | FILE_MAP_WRITE, 0);
DCHECK(*handle_out != NULL);
#else
// Don't need to do anything special for other platforms.
@@ -1255,7 +1257,7 @@ void WebPluginDelegateProxy::PaintSadPlugin(WebKit::WebCanvas* native_context,
const gfx::Rect& rect) {
// Lazily load the sad plugin image.
if (!sad_plugin_)
- sad_plugin_ = content::GetContentClient()->renderer()->GetSadPluginBitmap();
+ sad_plugin_ = GetContentClient()->renderer()->GetSadPluginBitmap();
if (sad_plugin_)
webkit::PaintSadPlugin(native_context, plugin_rect_, *sad_plugin_);
}
@@ -1532,3 +1534,5 @@ void WebPluginDelegateProxy::OnURLRedirectResponse(bool allow,
plugin_->URLRedirectResponse(allow, resource_id);
}
+
+} // namespace content