OLD | NEW |
---|---|
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 312 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
323 #endif // OS_POSIX | 323 #endif // OS_POSIX |
324 {} | 324 {} |
325 | 325 |
326 ~RendererSandboxedProcessLauncherDelegate() override {} | 326 ~RendererSandboxedProcessLauncherDelegate() override {} |
327 | 327 |
328 #if defined(OS_WIN) | 328 #if defined(OS_WIN) |
329 virtual void PreSpawnTarget(sandbox::TargetPolicy* policy, | 329 virtual void PreSpawnTarget(sandbox::TargetPolicy* policy, |
330 bool* success) { | 330 bool* success) { |
331 AddBaseHandleClosePolicy(policy); | 331 AddBaseHandleClosePolicy(policy); |
332 | 332 |
333 if (base::win::GetVersion() >= base::win::VERSION_WIN8) { | 333 if (base::win::GetVersion() == base::win::VERSION_WIN8 || |
334 base::win::GetVersion() != base::win::VERSION_WIN8_1) { | |
Will Harris
2015/03/09 01:18:25
I think you mean == here?
| |
334 // TODO(shrikant): Check if these constants should be different across | 335 // TODO(shrikant): Check if these constants should be different across |
335 // various versions of Chromium code base or could be same. | 336 // various versions of Chromium code base or could be same. |
336 // If there should be different SID per channel then move this code | 337 // If there should be different SID per channel then move this code |
337 // in chrome rather than content and assign SID based on | 338 // in chrome rather than content and assign SID based on |
338 // VersionInfo::GetChannel(). | 339 // VersionInfo::GetChannel(). |
339 const wchar_t kAppContainerSid[] = | 340 const wchar_t kAppContainerSid[] = |
340 L"S-1-15-2-3251537155-1984446955-2931258699-841473695-1938553385-" | 341 L"S-1-15-2-3251537155-1984446955-2931258699-841473695-1938553385-" |
341 L"924012148-129201922"; | 342 L"924012148-129201922"; |
342 | 343 |
343 policy->SetLowBox(kAppContainerSid); | 344 policy->SetLowBox(kAppContainerSid); |
(...skipping 2069 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
2413 if (worker_ref_count_ == 0) | 2414 if (worker_ref_count_ == 0) |
2414 Cleanup(); | 2415 Cleanup(); |
2415 } | 2416 } |
2416 | 2417 |
2417 void RenderProcessHostImpl::GetAudioOutputControllers( | 2418 void RenderProcessHostImpl::GetAudioOutputControllers( |
2418 const GetAudioOutputControllersCallback& callback) const { | 2419 const GetAudioOutputControllersCallback& callback) const { |
2419 audio_renderer_host()->GetOutputControllers(callback); | 2420 audio_renderer_host()->GetOutputControllers(callback); |
2420 } | 2421 } |
2421 | 2422 |
2422 } // namespace content | 2423 } // namespace content |
OLD | NEW |