| OLD | NEW |
| 1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 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 430 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 441 | 441 |
| 442 private: | 442 private: |
| 443 std::map<int, SessionStorageNamespaceMap> | 443 std::map<int, SessionStorageNamespaceMap> |
| 444 session_storage_namespaces_awaiting_close_; | 444 session_storage_namespaces_awaiting_close_; |
| 445 DISALLOW_COPY_AND_ASSIGN(SessionStorageHolder); | 445 DISALLOW_COPY_AND_ASSIGN(SessionStorageHolder); |
| 446 }; | 446 }; |
| 447 | 447 |
| 448 void CreateMemoryCoordinatorHandle( | 448 void CreateMemoryCoordinatorHandle( |
| 449 int render_process_id, | 449 int render_process_id, |
| 450 memory_coordinator::mojom::MemoryCoordinatorHandleRequest request) { | 450 memory_coordinator::mojom::MemoryCoordinatorHandleRequest request) { |
| 451 BrowserMainLoop::GetInstance()->memory_coordinator()->CreateHandle( | 451 memory_coordinator::MemoryCoordinator::GetInstance()->CreateHandle( |
| 452 render_process_id, std::move(request)); | 452 render_process_id, std::move(request)); |
| 453 } | 453 } |
| 454 | 454 |
| 455 } // namespace | 455 } // namespace |
| 456 | 456 |
| 457 RendererMainThreadFactoryFunction g_renderer_main_thread_factory = NULL; | 457 RendererMainThreadFactoryFunction g_renderer_main_thread_factory = NULL; |
| 458 | 458 |
| 459 base::MessageLoop* g_in_process_thread; | 459 base::MessageLoop* g_in_process_thread; |
| 460 | 460 |
| 461 // Stores the maximum number of renderer processes the content module can | 461 // Stores the maximum number of renderer processes the content module can |
| (...skipping 2450 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2912 LOG(ERROR) << "Terminating render process for bad Mojo message: " << error; | 2912 LOG(ERROR) << "Terminating render process for bad Mojo message: " << error; |
| 2913 | 2913 |
| 2914 // The ReceivedBadMessage call below will trigger a DumpWithoutCrashing. Alias | 2914 // The ReceivedBadMessage call below will trigger a DumpWithoutCrashing. Alias |
| 2915 // enough information here so that we can determine what the bad message was. | 2915 // enough information here so that we can determine what the bad message was. |
| 2916 base::debug::Alias(&error); | 2916 base::debug::Alias(&error); |
| 2917 bad_message::ReceivedBadMessage(process.get(), | 2917 bad_message::ReceivedBadMessage(process.get(), |
| 2918 bad_message::RPH_MOJO_PROCESS_ERROR); | 2918 bad_message::RPH_MOJO_PROCESS_ERROR); |
| 2919 } | 2919 } |
| 2920 | 2920 |
| 2921 } // namespace content | 2921 } // namespace content |
| OLD | NEW |