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 #include "content/child/child_thread.h" | 5 #include "content/child/child_thread.h" |
6 | 6 |
7 #include <signal.h> | 7 #include <signal.h> |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 340 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
351 | 351 |
352 router_.AddRoute(routing_id, listener); | 352 router_.AddRoute(routing_id, listener); |
353 } | 353 } |
354 | 354 |
355 void ChildThread::RemoveRoute(int32 routing_id) { | 355 void ChildThread::RemoveRoute(int32 routing_id) { |
356 DCHECK(base::MessageLoop::current() == message_loop()); | 356 DCHECK(base::MessageLoop::current() == message_loop()); |
357 | 357 |
358 router_.RemoveRoute(routing_id); | 358 router_.RemoveRoute(routing_id); |
359 } | 359 } |
360 | 360 |
361 webkit_glue::ResourceLoaderBridge* ChildThread::CreateBridge( | 361 ResourceLoaderBridge* ChildThread::CreateBridge( |
362 const webkit_glue::ResourceLoaderBridge::RequestInfo& request_info) { | 362 const ResourceLoaderBridge::RequestInfo& request_info) { |
363 return resource_dispatcher()->CreateBridge(request_info); | 363 return resource_dispatcher()->CreateBridge(request_info); |
364 } | 364 } |
365 | 365 |
366 base::SharedMemory* ChildThread::AllocateSharedMemory(size_t buf_size) { | 366 base::SharedMemory* ChildThread::AllocateSharedMemory(size_t buf_size) { |
367 return AllocateSharedMemory(buf_size, this); | 367 return AllocateSharedMemory(buf_size, this); |
368 } | 368 } |
369 | 369 |
370 // static | 370 // static |
371 base::SharedMemory* ChildThread::AllocateSharedMemory( | 371 base::SharedMemory* ChildThread::AllocateSharedMemory( |
372 size_t buf_size, | 372 size_t buf_size, |
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
529 // inflight that would addref it. | 529 // inflight that would addref it. |
530 Send(new ChildProcessHostMsg_ShutdownRequest); | 530 Send(new ChildProcessHostMsg_ShutdownRequest); |
531 } | 531 } |
532 | 532 |
533 void ChildThread::EnsureConnected() { | 533 void ChildThread::EnsureConnected() { |
534 VLOG(0) << "ChildThread::EnsureConnected()"; | 534 VLOG(0) << "ChildThread::EnsureConnected()"; |
535 base::KillProcess(base::GetCurrentProcessHandle(), 0, false); | 535 base::KillProcess(base::GetCurrentProcessHandle(), 0, false); |
536 } | 536 } |
537 | 537 |
538 } // namespace content | 538 } // namespace content |
OLD | NEW |