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

Side by Side Diff: content/browser/renderer_host/render_process_host_impl.cc

Issue 494473002: Cleanup: Change const char* foo to const char foo[] in content/browser. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 6 years, 4 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « content/browser/media/webrtc_identity_store_unittest.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // Represents the browser side of the browser <--> renderer communication 5 // Represents the browser side of the browser <--> renderer communication
6 // channel. There will be one RenderProcessHost per renderer process. 6 // channel. There will be one RenderProcessHost per renderer process.
7 7
8 #include "content/browser/renderer_host/render_process_host_impl.h" 8 #include "content/browser/renderer_host/render_process_host_impl.h"
9 9
10 #include <algorithm> 10 #include <algorithm>
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
155 #include "content/browser/renderer_host/compositor_impl_android.h" 155 #include "content/browser/renderer_host/compositor_impl_android.h"
156 #include "content/browser/screen_orientation/screen_orientation_message_filter_a ndroid.h" 156 #include "content/browser/screen_orientation/screen_orientation_message_filter_a ndroid.h"
157 #include "content/common/gpu/client/gpu_memory_buffer_impl_surface_texture.h" 157 #include "content/common/gpu/client/gpu_memory_buffer_impl_surface_texture.h"
158 #endif 158 #endif
159 159
160 #if defined(OS_MACOSX) 160 #if defined(OS_MACOSX)
161 #include "content/common/gpu/client/gpu_memory_buffer_impl_io_surface.h" 161 #include "content/common/gpu/client/gpu_memory_buffer_impl_io_surface.h"
162 #endif 162 #endif
163 163
164 #if defined(OS_WIN) 164 #if defined(OS_WIN)
165 #include "base/strings/string_number_conversions.h"
166 #include "base/win/scoped_com_initializer.h" 165 #include "base/win/scoped_com_initializer.h"
167 #include "content/common/font_cache_dispatcher_win.h" 166 #include "content/common/font_cache_dispatcher_win.h"
168 #include "content/common/sandbox_win.h" 167 #include "content/common/sandbox_win.h"
169 #include "ui/gfx/win/dpi.h" 168 #include "ui/gfx/win/dpi.h"
170 #endif 169 #endif
171 170
172 #if defined(ENABLE_WEBRTC) 171 #if defined(ENABLE_WEBRTC)
173 #include "content/browser/media/webrtc_internals.h" 172 #include "content/browser/media/webrtc_internals.h"
174 #include "content/browser/renderer_host/media/media_stream_track_metrics_host.h" 173 #include "content/browser/renderer_host/media/media_stream_track_metrics_host.h"
175 #include "content/browser/renderer_host/media/webrtc_identity_service_host.h" 174 #include "content/browser/renderer_host/media/webrtc_identity_service_host.h"
176 #include "content/browser/renderer_host/p2p/socket_dispatcher_host.h" 175 #include "content/browser/renderer_host/p2p/socket_dispatcher_host.h"
177 #include "content/common/media/aec_dump_messages.h" 176 #include "content/common/media/aec_dump_messages.h"
178 #include "content/common/media/media_stream_messages.h" 177 #include "content/common/media/media_stream_messages.h"
179 #endif 178 #endif
180 179
181 extern bool g_exited_main_message_loop; 180 extern bool g_exited_main_message_loop;
182 181
183 static const char* kSiteProcessMapKeyName = "content_site_process_map";
184
185 namespace content { 182 namespace content {
186 namespace { 183 namespace {
187 184
185 const char kSiteProcessMapKeyName[] = "content_site_process_map";
186
188 void CacheShaderInfo(int32 id, base::FilePath path) { 187 void CacheShaderInfo(int32 id, base::FilePath path) {
189 ShaderCacheFactory::GetInstance()->SetCacheInfo(id, path); 188 ShaderCacheFactory::GetInstance()->SetCacheInfo(id, path);
190 } 189 }
191 190
192 void RemoveShaderInfo(int32 id) { 191 void RemoveShaderInfo(int32 id) {
193 ShaderCacheFactory::GetInstance()->RemoveCacheInfo(id); 192 ShaderCacheFactory::GetInstance()->RemoveCacheInfo(id);
194 } 193 }
195 194
196 net::URLRequestContext* GetRequestContext( 195 net::URLRequestContext* GetRequestContext(
197 scoped_refptr<net::URLRequestContextGetter> request_context, 196 scoped_refptr<net::URLRequestContextGetter> request_context,
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
297 map = new SiteProcessMap(); 296 map = new SiteProcessMap();
298 context->SetUserData(kSiteProcessMapKeyName, map); 297 context->SetUserData(kSiteProcessMapKeyName, map);
299 } 298 }
300 return map; 299 return map;
301 } 300 }
302 301
303 // NOTE: changes to this class need to be reviewed by the security team. 302 // NOTE: changes to this class need to be reviewed by the security team.
304 class RendererSandboxedProcessLauncherDelegate 303 class RendererSandboxedProcessLauncherDelegate
305 : public content::SandboxedProcessLauncherDelegate { 304 : public content::SandboxedProcessLauncherDelegate {
306 public: 305 public:
307 RendererSandboxedProcessLauncherDelegate(IPC::ChannelProxy* channel) 306 explicit RendererSandboxedProcessLauncherDelegate(IPC::ChannelProxy* channel)
308 #if defined(OS_POSIX) 307 #if defined(OS_POSIX)
309 : ipc_fd_(channel->TakeClientFileDescriptor()) 308 : ipc_fd_(channel->TakeClientFileDescriptor())
310 #endif // OS_POSIX 309 #endif // OS_POSIX
311 {} 310 {}
312 311
313 virtual ~RendererSandboxedProcessLauncherDelegate() {} 312 virtual ~RendererSandboxedProcessLauncherDelegate() {}
314 313
315 #if defined(OS_WIN) 314 #if defined(OS_WIN)
316 virtual void PreSpawnTarget(sandbox::TargetPolicy* policy, 315 virtual void PreSpawnTarget(sandbox::TargetPolicy* policy,
317 bool* success) { 316 bool* success) {
(...skipping 2032 matching lines...) Expand 10 before | Expand all | Expand 10 after
2350 } 2349 }
2351 2350
2352 void RenderProcessHostImpl::OnDeletedGpuMemoryBuffer( 2351 void RenderProcessHostImpl::OnDeletedGpuMemoryBuffer(
2353 gfx::GpuMemoryBufferType type, 2352 gfx::GpuMemoryBufferType type,
2354 const gfx::GpuMemoryBufferId& id) { 2353 const gfx::GpuMemoryBufferId& id) {
2355 DCHECK_CURRENTLY_ON(BrowserThread::UI); 2354 DCHECK_CURRENTLY_ON(BrowserThread::UI);
2356 GpuMemoryBufferImpl::DeletedByChildProcess(type, id, GetHandle()); 2355 GpuMemoryBufferImpl::DeletedByChildProcess(type, id, GetHandle());
2357 } 2356 }
2358 2357
2359 } // namespace content 2358 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/media/webrtc_identity_store_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698