Move a bunch of code in content\common (as well as a few left in renderer) to the content namespace.
Review URL: https://codereview.chromium.org/11227033
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@163359 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/content/common/gpu/gpu_command_buffer_stub.cc b/content/common/gpu/gpu_command_buffer_stub.cc
index 32aa0dc..404d7326 100644
--- a/content/common/gpu/gpu_command_buffer_stub.cc
+++ b/content/common/gpu/gpu_command_buffer_stub.cc
@@ -37,6 +37,7 @@
#include "content/common/gpu/stream_texture_manager_android.h"
#endif
+namespace content {
namespace {
// The GpuCommandBufferMemoryTracker class provides a bridge between the
@@ -75,7 +76,7 @@
static size_t g_last_url_hash = 0;
if (url_hash != g_last_url_hash) {
g_last_url_hash = url_hash;
- content::GetContentClient()->SetActiveURL(url);
+ GetContentClient()->SetActiveURL(url);
}
}
@@ -645,7 +646,7 @@
if (buffer.shared_memory) {
#if defined(OS_WIN)
transfer_buffer = NULL;
- content::BrokerDuplicateHandle(buffer.shared_memory->handle(),
+ BrokerDuplicateHandle(buffer.shared_memory->handle(),
channel_->renderer_pid(), &transfer_buffer, FILE_MAP_READ |
FILE_MAP_WRITE, 0);
DCHECK(transfer_buffer != NULL);
@@ -844,4 +845,6 @@
surface_->SetFrontbufferAllocation(allocation.suggest_have_frontbuffer);
}
+} // namespace content
+
#endif // defined(ENABLE_GPU)