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

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

Issue 2261073002: Make HistoryBackend a client of memory coordinator (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: singleton Created 4 years, 4 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 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
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 2436 matching lines...) Expand 10 before | Expand all | Expand 10 after
2898 LOG(ERROR) << "Terminating render process for bad Mojo message: " << error; 2898 LOG(ERROR) << "Terminating render process for bad Mojo message: " << error;
2899 2899
2900 // The ReceivedBadMessage call below will trigger a DumpWithoutCrashing. Alias 2900 // The ReceivedBadMessage call below will trigger a DumpWithoutCrashing. Alias
2901 // enough information here so that we can determine what the bad message was. 2901 // enough information here so that we can determine what the bad message was.
2902 base::debug::Alias(&error); 2902 base::debug::Alias(&error);
2903 bad_message::ReceivedBadMessage(process.get(), 2903 bad_message::ReceivedBadMessage(process.get(),
2904 bad_message::RPH_MOJO_PROCESS_ERROR); 2904 bad_message::RPH_MOJO_PROCESS_ERROR);
2905 } 2905 }
2906 2906
2907 } // namespace content 2907 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698