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

Unified Diff: third_party/WebKit/Source/platform/exported/Platform.cpp

Issue 2444873002: Move WebMIMERegistry impl from //content to blink:platform/network/mime (Closed)
Patch Set: Created 4 years, 2 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
Index: third_party/WebKit/Source/platform/exported/Platform.cpp
diff --git a/third_party/WebKit/Source/platform/exported/Platform.cpp b/third_party/WebKit/Source/platform/exported/Platform.cpp
index 5d6d4f918409ec4f46a0eca145f1fdc2d1ec9f31..4778d2950d91724b66ec5afefd2eadc432cb1aa9 100644
--- a/third_party/WebKit/Source/platform/exported/Platform.cpp
+++ b/third_party/WebKit/Source/platform/exported/Platform.cpp
@@ -35,6 +35,7 @@
#include "platform/fonts/FontCacheMemoryDumpProvider.h"
#include "platform/heap/BlinkGCMemoryDumpProvider.h"
#include "platform/heap/GCTaskRunner.h"
+#include "platform/mime/WebMimeRegistryImpl.h"
#include "platform/tracing/MemoryCacheDumpProvider.h"
#include "public/platform/InterfaceProvider.h"
#include "public/platform/Platform.h"
@@ -141,6 +142,12 @@ Platform* Platform::current() {
return s_platform;
}
+WebMimeRegistry* Platform::mimeRegistry() {
+ // Currently this is only called on the main thread.
+ DEFINE_STATIC_LOCAL(WebMimeRegistryImpl, mimeRegistry, ());
+ return &mimeRegistry;
+}
+
WebThread* Platform::mainThread() const {
return m_mainThread;
}

Powered by Google App Engine
This is Rietveld 408576698