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

Unified Diff: content/browser/browser_main_loop.cc

Issue 17518004: Move IndexedDB from WEBKIT_DEPRECATED to dedicated thread (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add missing files Created 7 years, 6 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: content/browser/browser_main_loop.cc
diff --git a/content/browser/browser_main_loop.cc b/content/browser/browser_main_loop.cc
index 742d675d03cdf399dce5234679845faf2a7a1243..74cd9791505fda668883256a7b00cc4982f61619 100644
--- a/content/browser/browser_main_loop.cc
+++ b/content/browser/browser_main_loop.cc
@@ -27,6 +27,7 @@
#include "content/browser/gpu/gpu_process_host_ui_shim.h"
#include "content/browser/histogram_synchronizer.h"
#include "content/browser/in_process_webkit/webkit_thread.h"
+#include "content/browser/indexed_db/indexed_db_thread.h"
#include "content/browser/loader/resource_dispatcher_host_impl.h"
#include "content/browser/net/browser_online_state_observer.h"
#include "content/browser/plugin_service_impl.h"
@@ -287,6 +288,12 @@ AudioMirroringManager* BrowserMainLoop::GetAudioMirroringManager() {
}
// static
+IndexedDBThread* BrowserMainLoop::GetIndexedDBThread() {
+ return g_current_browser_main_loop ?
+ g_current_browser_main_loop->indexed_db_thread_.get() : NULL;
+}
+
+// static
MediaStreamManager* BrowserMainLoop::GetMediaStreamManager() {
return g_current_browser_main_loop->media_stream_manager_.get();
}
@@ -598,6 +605,10 @@ void BrowserMainLoop::CreateThreads() {
}
+#if !defined(OS_IOS)
+ indexed_db_thread_.reset(new IndexedDBThread());
+#endif
+
BrowserThreadsStarted();
if (parts_) {

Powered by Google App Engine
This is Rietveld 408576698