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

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

Issue 792873004: Win32k lockdown: move to chrome://flags, add UMA, add finch (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: nits Created 6 years 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
« no previous file with comments | « chrome/browser/chrome_browser_main_win.cc ('k') | content/common/sandbox_win.cc » ('j') | 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 1282 matching lines...) Expand 10 before | Expand all | Expand 10 after
1293 #if defined(OS_MACOSX) 1293 #if defined(OS_MACOSX)
1294 // Allow this to be set when invoking the browser and relayed along. 1294 // Allow this to be set when invoking the browser and relayed along.
1295 switches::kEnableSandboxLogging, 1295 switches::kEnableSandboxLogging,
1296 #endif 1296 #endif
1297 #if defined(OS_MACOSX) && !defined(OS_IOS) 1297 #if defined(OS_MACOSX) && !defined(OS_IOS)
1298 switches::kEnableThreadedEventHandlingMac, 1298 switches::kEnableThreadedEventHandlingMac,
1299 #endif 1299 #endif
1300 #if defined(OS_WIN) 1300 #if defined(OS_WIN)
1301 switches::kDisableDirectWrite, 1301 switches::kDisableDirectWrite,
1302 switches::kEnableWin32kRendererLockDown, 1302 switches::kEnableWin32kRendererLockDown,
1303 switches::kDisableWin32kRendererLockDown,
1303 #endif 1304 #endif
1304 #if defined(OS_CHROMEOS) 1305 #if defined(OS_CHROMEOS)
1305 switches::kDisableVaapiAcceleratedVideoEncode, 1306 switches::kDisableVaapiAcceleratedVideoEncode,
1306 #endif 1307 #endif
1307 }; 1308 };
1308 renderer_cmd->CopySwitchesFrom(browser_cmd, kSwitchNames, 1309 renderer_cmd->CopySwitchesFrom(browser_cmd, kSwitchNames,
1309 arraysize(kSwitchNames)); 1310 arraysize(kSwitchNames));
1310 1311
1311 if (browser_cmd.HasSwitch(switches::kTraceStartup) && 1312 if (browser_cmd.HasSwitch(switches::kTraceStartup) &&
1312 BrowserMainLoop::GetInstance()->is_tracing_startup()) { 1313 BrowserMainLoop::GetInstance()->is_tracing_startup()) {
(...skipping 1000 matching lines...) Expand 10 before | Expand all | Expand 10 after
2313 2314
2314 void RenderProcessHostImpl::DecrementWorkerRefCount() { 2315 void RenderProcessHostImpl::DecrementWorkerRefCount() {
2315 DCHECK_CURRENTLY_ON(BrowserThread::UI); 2316 DCHECK_CURRENTLY_ON(BrowserThread::UI);
2316 DCHECK_GT(worker_ref_count_, 0); 2317 DCHECK_GT(worker_ref_count_, 0);
2317 --worker_ref_count_; 2318 --worker_ref_count_;
2318 if (worker_ref_count_ == 0) 2319 if (worker_ref_count_ == 0)
2319 Cleanup(); 2320 Cleanup();
2320 } 2321 }
2321 2322
2322 } // namespace content 2323 } // namespace content
OLDNEW
« no previous file with comments | « chrome/browser/chrome_browser_main_win.cc ('k') | content/common/sandbox_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698