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

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

Issue 616603004: Replacing the OVERRIDE with override and FINAL with final in content/browser/renderer_host (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased the patch Created 6 years, 2 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 304 matching lines...) Expand 10 before | Expand all | Expand 10 after
315 virtual ~RendererSandboxedProcessLauncherDelegate() {} 315 virtual ~RendererSandboxedProcessLauncherDelegate() {}
316 316
317 #if defined(OS_WIN) 317 #if defined(OS_WIN)
318 virtual void PreSpawnTarget(sandbox::TargetPolicy* policy, 318 virtual void PreSpawnTarget(sandbox::TargetPolicy* policy,
319 bool* success) { 319 bool* success) {
320 AddBaseHandleClosePolicy(policy); 320 AddBaseHandleClosePolicy(policy);
321 GetContentClient()->browser()->PreSpawnRenderer(policy, success); 321 GetContentClient()->browser()->PreSpawnRenderer(policy, success);
322 } 322 }
323 323
324 #elif defined(OS_POSIX) 324 #elif defined(OS_POSIX)
325 virtual bool ShouldUseZygote() OVERRIDE { 325 virtual bool ShouldUseZygote() override {
326 const base::CommandLine& browser_command_line = 326 const base::CommandLine& browser_command_line =
327 *base::CommandLine::ForCurrentProcess(); 327 *base::CommandLine::ForCurrentProcess();
328 base::CommandLine::StringType renderer_prefix = 328 base::CommandLine::StringType renderer_prefix =
329 browser_command_line.GetSwitchValueNative(switches::kRendererCmdPrefix); 329 browser_command_line.GetSwitchValueNative(switches::kRendererCmdPrefix);
330 return renderer_prefix.empty(); 330 return renderer_prefix.empty();
331 } 331 }
332 virtual int GetIpcFd() OVERRIDE { 332 virtual int GetIpcFd() override {
333 return ipc_fd_; 333 return ipc_fd_;
334 } 334 }
335 #endif // OS_WIN 335 #endif // OS_WIN
336 336
337 private: 337 private:
338 #if defined(OS_POSIX) 338 #if defined(OS_POSIX)
339 int ipc_fd_; 339 int ipc_fd_;
340 #endif // OS_POSIX 340 #endif // OS_POSIX
341 }; 341 };
342 342
(...skipping 1909 matching lines...) Expand 10 before | Expand all | Expand 10 after
2252 if (worker_ref_count_ == 0) 2252 if (worker_ref_count_ == 0)
2253 Cleanup(); 2253 Cleanup();
2254 } 2254 }
2255 2255
2256 void RenderProcessHostImpl::EnsureMojoActivated() { 2256 void RenderProcessHostImpl::EnsureMojoActivated() {
2257 mojo_activation_required_ = true; 2257 mojo_activation_required_ = true;
2258 MaybeActivateMojo(); 2258 MaybeActivateMojo();
2259 } 2259 }
2260 2260
2261 } // namespace content 2261 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698