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

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

Issue 886153003: Reorganize ChannelMojo related flags. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 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 (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 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 #include "content/public/browser/render_process_host_factory.h" 120 #include "content/public/browser/render_process_host_factory.h"
121 #include "content/public/browser/render_process_host_observer.h" 121 #include "content/public/browser/render_process_host_observer.h"
122 #include "content/public/browser/render_widget_host.h" 122 #include "content/public/browser/render_widget_host.h"
123 #include "content/public/browser/render_widget_host_iterator.h" 123 #include "content/public/browser/render_widget_host_iterator.h"
124 #include "content/public/browser/render_widget_host_view_frame_subscriber.h" 124 #include "content/public/browser/render_widget_host_view_frame_subscriber.h"
125 #include "content/public/browser/resource_context.h" 125 #include "content/public/browser/resource_context.h"
126 #include "content/public/browser/user_metrics.h" 126 #include "content/public/browser/user_metrics.h"
127 #include "content/public/browser/worker_service.h" 127 #include "content/public/browser/worker_service.h"
128 #include "content/public/common/content_constants.h" 128 #include "content/public/common/content_constants.h"
129 #include "content/public/common/content_switches.h" 129 #include "content/public/common/content_switches.h"
130 #include "content/public/common/mojo_channel_switches.h"
130 #include "content/public/common/process_type.h" 131 #include "content/public/common/process_type.h"
131 #include "content/public/common/resource_type.h" 132 #include "content/public/common/resource_type.h"
132 #include "content/public/common/result_codes.h" 133 #include "content/public/common/result_codes.h"
133 #include "content/public/common/sandboxed_process_launcher_delegate.h" 134 #include "content/public/common/sandboxed_process_launcher_delegate.h"
134 #include "content/public/common/url_constants.h" 135 #include "content/public/common/url_constants.h"
135 #include "device/battery/battery_monitor_impl.h" 136 #include "device/battery/battery_monitor_impl.h"
136 #include "device/vibration/vibration_manager_impl.h" 137 #include "device/vibration/vibration_manager_impl.h"
137 #include "gpu/GLES2/gl2extchromium.h" 138 #include "gpu/GLES2/gl2extchromium.h"
138 #include "gpu/command_buffer/client/gpu_switches.h" 139 #include "gpu/command_buffer/client/gpu_switches.h"
139 #include "gpu/command_buffer/common/gles2_cmd_utils.h" 140 #include "gpu/command_buffer/common/gles2_cmd_utils.h"
(...skipping 1063 matching lines...) Expand 10 before | Expand all | Expand 10 after
1203 switches::kDisableEncryptedMedia, 1204 switches::kDisableEncryptedMedia,
1204 switches::kDisableFileSystem, 1205 switches::kDisableFileSystem,
1205 switches::kDisableGpuCompositing, 1206 switches::kDisableGpuCompositing,
1206 switches::kDisableGpuVsync, 1207 switches::kDisableGpuVsync,
1207 switches::kDisableLowResTiling, 1208 switches::kDisableLowResTiling,
1208 switches::kDisableHistogramCustomizer, 1209 switches::kDisableHistogramCustomizer,
1209 switches::kDisableLCDText, 1210 switches::kDisableLCDText,
1210 switches::kDisableLocalStorage, 1211 switches::kDisableLocalStorage,
1211 switches::kDisableLogging, 1212 switches::kDisableLogging,
1212 switches::kDisableMediaSource, 1213 switches::kDisableMediaSource,
1214 switches::kDisableMojoChannel,
1213 switches::kDisableOverlayScrollbar, 1215 switches::kDisableOverlayScrollbar,
1214 switches::kDisablePinch, 1216 switches::kDisablePinch,
1215 switches::kDisablePrefixedEncryptedMedia, 1217 switches::kDisablePrefixedEncryptedMedia,
1216 switches::kDisableSeccompFilterSandbox, 1218 switches::kDisableSeccompFilterSandbox,
1217 switches::kDisableSharedWorkers, 1219 switches::kDisableSharedWorkers,
1218 switches::kDisableSVG1DOM, 1220 switches::kDisableSVG1DOM,
1219 switches::kDisableThreadedCompositing, 1221 switches::kDisableThreadedCompositing,
1220 switches::kDisableThreadedScrolling, 1222 switches::kDisableThreadedScrolling,
1221 switches::kDisableTouchAdjustment, 1223 switches::kDisableTouchAdjustment,
1222 switches::kDisableTouchDragDrop, 1224 switches::kDisableTouchDragDrop,
(...skipping 1165 matching lines...) Expand 10 before | Expand all | Expand 10 after
2388 2390
2389 void RenderProcessHostImpl::DecrementWorkerRefCount() { 2391 void RenderProcessHostImpl::DecrementWorkerRefCount() {
2390 DCHECK_CURRENTLY_ON(BrowserThread::UI); 2392 DCHECK_CURRENTLY_ON(BrowserThread::UI);
2391 DCHECK_GT(worker_ref_count_, 0); 2393 DCHECK_GT(worker_ref_count_, 0);
2392 --worker_ref_count_; 2394 --worker_ref_count_;
2393 if (worker_ref_count_ == 0) 2395 if (worker_ref_count_ == 0)
2394 Cleanup(); 2396 Cleanup();
2395 } 2397 }
2396 2398
2397 } // namespace content 2399 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698