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 489 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
500 // at this stage. | 500 // at this stage. |
501 child_process_launcher_.reset(new ChildProcessLauncher( | 501 child_process_launcher_.reset(new ChildProcessLauncher( |
502 #if defined(OS_WIN) | 502 #if defined(OS_WIN) |
503 FilePath(), | 503 FilePath(), |
504 #elif defined(OS_POSIX) | 504 #elif defined(OS_POSIX) |
505 renderer_prefix.empty(), | 505 renderer_prefix.empty(), |
506 base::EnvironmentVector(), | 506 base::EnvironmentVector(), |
507 channel_->TakeClientFileDescriptor(), | 507 channel_->TakeClientFileDescriptor(), |
508 #endif | 508 #endif |
509 cmd_line, | 509 cmd_line, |
| 510 GetID(), |
510 this)); | 511 this)); |
511 | 512 |
512 fast_shutdown_started_ = false; | 513 fast_shutdown_started_ = false; |
513 } | 514 } |
514 | 515 |
515 is_initialized_ = true; | 516 is_initialized_ = true; |
516 return true; | 517 return true; |
517 } | 518 } |
518 | 519 |
519 void RenderProcessHostImpl::CreateMessageFilters() { | 520 void RenderProcessHostImpl::CreateMessageFilters() { |
(...skipping 1061 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1581 const gfx::Size& size, | 1582 const gfx::Size& size, |
1582 int32 gpu_process_host_id) { | 1583 int32 gpu_process_host_id) { |
1583 TRACE_EVENT0("renderer_host", | 1584 TRACE_EVENT0("renderer_host", |
1584 "RenderWidgetHostImpl::OnCompositorSurfaceBuffersSwappedNoHost"); | 1585 "RenderWidgetHostImpl::OnCompositorSurfaceBuffersSwappedNoHost"); |
1585 RenderWidgetHostImpl::AcknowledgeBufferPresent(route_id, | 1586 RenderWidgetHostImpl::AcknowledgeBufferPresent(route_id, |
1586 gpu_process_host_id, | 1587 gpu_process_host_id, |
1587 0); | 1588 0); |
1588 } | 1589 } |
1589 | 1590 |
1590 } // namespace content | 1591 } // namespace content |
OLD | NEW |