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

Unified Diff: content/renderer/webplugin_delegate_proxy.cc

Issue 11232014: Move a bunch of code in content\renderer to the content namespace. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix mac Created 8 years, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/renderer/webplugin_delegate_proxy.h ('k') | content/test/webrtc_audio_device_test.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/webplugin_delegate_proxy.cc
===================================================================
--- content/renderer/webplugin_delegate_proxy.cc (revision 163045)
+++ content/renderer/webplugin_delegate_proxy.cc (working copy)
@@ -72,6 +72,8 @@
using WebKit::WebString;
using WebKit::WebView;
+namespace content {
+
namespace {
class ScopedLogLevel {
@@ -458,7 +460,7 @@
}
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 @@
#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 @@
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 @@
plugin_->URLRedirectResponse(allow, resource_id);
}
+
+} // namespace content
« no previous file with comments | « content/renderer/webplugin_delegate_proxy.h ('k') | content/test/webrtc_audio_device_test.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698