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

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

Issue 1313533003: Fix some extern usage in .cc files. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 3 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
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 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 193 matching lines...) Expand 10 before | Expand all | Expand 10 after
204 204
205 #if defined(ENABLE_WEBRTC) 205 #if defined(ENABLE_WEBRTC)
206 #include "content/browser/media/webrtc_internals.h" 206 #include "content/browser/media/webrtc_internals.h"
207 #include "content/browser/renderer_host/media/media_stream_track_metrics_host.h" 207 #include "content/browser/renderer_host/media/media_stream_track_metrics_host.h"
208 #include "content/browser/renderer_host/media/webrtc_identity_service_host.h" 208 #include "content/browser/renderer_host/media/webrtc_identity_service_host.h"
209 #include "content/browser/renderer_host/p2p/socket_dispatcher_host.h" 209 #include "content/browser/renderer_host/p2p/socket_dispatcher_host.h"
210 #include "content/common/media/aec_dump_messages.h" 210 #include "content/common/media/aec_dump_messages.h"
211 #include "content/common/media/media_stream_messages.h" 211 #include "content/common/media/media_stream_messages.h"
212 #endif 212 #endif
213 213
214 extern bool g_exited_main_message_loop;
215
216 namespace content { 214 namespace content {
217 namespace { 215 namespace {
218 216
219 const char kSiteProcessMapKeyName[] = "content_site_process_map"; 217 const char kSiteProcessMapKeyName[] = "content_site_process_map";
220 218
221 void CacheShaderInfo(int32 id, base::FilePath path) { 219 void CacheShaderInfo(int32 id, base::FilePath path) {
222 ShaderCacheFactory::GetInstance()->SetCacheInfo(id, path); 220 ShaderCacheFactory::GetInstance()->SetCacheInfo(id, path);
223 } 221 }
224 222
225 void RemoveShaderInfo(int32 id) { 223 void RemoveShaderInfo(int32 id) {
(...skipping 284 matching lines...) Expand 10 before | Expand all | Expand 10 after
510 worker_ref_count_(0), 508 worker_ref_count_(0),
511 max_worker_count_(0), 509 max_worker_count_(0),
512 permission_service_context_(new PermissionServiceContext(this)), 510 permission_service_context_(new PermissionServiceContext(this)),
513 pending_valuebuffer_state_(new gpu::ValueStateMap()), 511 pending_valuebuffer_state_(new gpu::ValueStateMap()),
514 subscribe_uniform_enabled_(false), 512 subscribe_uniform_enabled_(false),
515 weak_factory_(this) { 513 weak_factory_(this) {
516 widget_helper_ = new RenderWidgetHelper(); 514 widget_helper_ = new RenderWidgetHelper();
517 515
518 ChildProcessSecurityPolicyImpl::GetInstance()->Add(GetID()); 516 ChildProcessSecurityPolicyImpl::GetInstance()->Add(GetID());
519 517
520 CHECK(!g_exited_main_message_loop); 518 CHECK(!BrowserMainRunner::ExitedMainMessageLoop());
521 RegisterHost(GetID(), this); 519 RegisterHost(GetID(), this);
522 g_all_hosts.Get().set_check_on_null_data(true); 520 g_all_hosts.Get().set_check_on_null_data(true);
523 // Initialize |child_process_activity_time_| to a reasonable value. 521 // Initialize |child_process_activity_time_| to a reasonable value.
524 mark_child_process_activity_time(); 522 mark_child_process_activity_time();
525 523
526 if (!GetBrowserContext()->IsOffTheRecord() && 524 if (!GetBrowserContext()->IsOffTheRecord() &&
527 !base::CommandLine::ForCurrentProcess()->HasSwitch( 525 !base::CommandLine::ForCurrentProcess()->HasSwitch(
528 switches::kDisableGpuShaderDiskCache)) { 526 switches::kDisableGpuShaderDiskCache)) {
529 BrowserThread::PostTask(BrowserThread::IO, FROM_HERE, 527 BrowserThread::PostTask(BrowserThread::IO, FROM_HERE,
530 base::Bind(&CacheShaderInfo, GetID(), 528 base::Bind(&CacheShaderInfo, GetID(),
(...skipping 1995 matching lines...) Expand 10 before | Expand all | Expand 10 after
2526 void RenderProcessHostImpl::GetAudioOutputControllers( 2524 void RenderProcessHostImpl::GetAudioOutputControllers(
2527 const GetAudioOutputControllersCallback& callback) const { 2525 const GetAudioOutputControllersCallback& callback) const {
2528 audio_renderer_host()->GetOutputControllers(callback); 2526 audio_renderer_host()->GetOutputControllers(callback);
2529 } 2527 }
2530 2528
2531 BluetoothDispatcherHost* RenderProcessHostImpl::GetBluetoothDispatcherHost() { 2529 BluetoothDispatcherHost* RenderProcessHostImpl::GetBluetoothDispatcherHost() {
2532 return bluetooth_dispatcher_host_.get(); 2530 return bluetooth_dispatcher_host_.get();
2533 } 2531 }
2534 2532
2535 } // namespace content 2533 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698