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

Unified Diff: content/child/blink_platform_impl.cc

Issue 1660383002: Refactoring: Move some classes from content/child to platform (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add PLATFORM_EXPORT; Address haraken's review Created 4 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/child/blink_platform_impl.h ('k') | content/child/web_discardable_memory_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/child/blink_platform_impl.cc
diff --git a/content/child/blink_platform_impl.cc b/content/child/blink_platform_impl.cc
index 8f9c7b16a81400c76363223efbc721d4b3ea0099..7f471e4cf5f58810715db2d8e768c440da6d26ad 100644
--- a/content/child/blink_platform_impl.cc
+++ b/content/child/blink_platform_impl.cc
@@ -50,8 +50,6 @@
#include "content/child/push_messaging/push_provider.h"
#include "content/child/thread_safe_sender.h"
#include "content/child/web_discardable_memory_impl.h"
-#include "content/child/web_memory_dump_provider_adapter.h"
-#include "content/child/web_process_memory_dump_impl.h"
#include "content/child/web_url_loader_impl.h"
#include "content/child/web_url_request_util.h"
#include "content/child/websocket_bridge.h"
@@ -487,34 +485,6 @@ blink::WebThread* BlinkPlatformImpl::currentThread() {
return static_cast<blink::WebThread*>(current_thread_slot_.Get());
}
-void BlinkPlatformImpl::registerMemoryDumpProvider(
- blink::WebMemoryDumpProvider* wmdp, const char* name) {
- WebMemoryDumpProviderAdapter* wmdp_adapter =
- new WebMemoryDumpProviderAdapter(wmdp);
- bool did_insert =
- memory_dump_providers_.add(wmdp, make_scoped_ptr(wmdp_adapter)).second;
- if (!did_insert)
- return;
- wmdp_adapter->set_is_registered(true);
- base::trace_event::MemoryDumpManager::GetInstance()->RegisterDumpProvider(
- wmdp_adapter, name, base::ThreadTaskRunnerHandle::Get());
-}
-
-void BlinkPlatformImpl::unregisterMemoryDumpProvider(
- blink::WebMemoryDumpProvider* wmdp) {
- scoped_ptr<WebMemoryDumpProviderAdapter> wmdp_adapter =
- memory_dump_providers_.take_and_erase(wmdp);
- if (!wmdp_adapter)
- return;
- base::trace_event::MemoryDumpManager::GetInstance()->UnregisterDumpProvider(
- wmdp_adapter.get());
- wmdp_adapter->set_is_registered(false);
-}
-
-blink::WebProcessMemoryDump* BlinkPlatformImpl::createProcessMemoryDump() {
- return new WebProcessMemoryDumpImpl();
-}
-
blink::Platform::WebMemoryAllocatorDumpGuid
BlinkPlatformImpl::createWebMemoryAllocatorDumpGuid(
const blink::WebString& guidStr) {
« no previous file with comments | « content/child/blink_platform_impl.h ('k') | content/child/web_discardable_memory_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698