OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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 #include "content/worker/worker_thread.h" | 5 #include "content/worker/worker_thread.h" |
6 | 6 |
7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
8 #include "base/lazy_instance.h" | 8 #include "base/lazy_instance.h" |
9 #include "base/threading/thread_local.h" | 9 #include "base/threading/thread_local.h" |
10 #include "content/child/appcache_dispatcher.h" | 10 #include "content/child/appcache_dispatcher.h" |
(...skipping 29 matching lines...) Expand all Loading... |
40 appcache_dispatcher_.reset( | 40 appcache_dispatcher_.reset( |
41 new AppCacheDispatcher(this, new appcache::AppCacheFrontendImpl())); | 41 new AppCacheDispatcher(this, new appcache::AppCacheFrontendImpl())); |
42 | 42 |
43 web_database_observer_impl_.reset( | 43 web_database_observer_impl_.reset( |
44 new WebDatabaseObserverImpl(sync_message_filter())); | 44 new WebDatabaseObserverImpl(sync_message_filter())); |
45 WebKit::WebDatabase::setObserver(web_database_observer_impl_.get()); | 45 WebKit::WebDatabase::setObserver(web_database_observer_impl_.get()); |
46 db_message_filter_ = new DBMessageFilter(); | 46 db_message_filter_ = new DBMessageFilter(); |
47 channel()->AddFilter(db_message_filter_.get()); | 47 channel()->AddFilter(db_message_filter_.get()); |
48 | 48 |
49 indexed_db_message_filter_ = new IndexedDBMessageFilter( | 49 indexed_db_message_filter_ = new IndexedDBMessageFilter( |
50 sync_message_filter()); | 50 thread_safe_sender()); |
51 channel()->AddFilter(indexed_db_message_filter_.get()); | 51 channel()->AddFilter(indexed_db_message_filter_.get()); |
52 | 52 |
53 const CommandLine& command_line = *CommandLine::ForCurrentProcess(); | 53 const CommandLine& command_line = *CommandLine::ForCurrentProcess(); |
54 SetRuntimeFeaturesDefaultsAndUpdateFromArgs(command_line); | 54 SetRuntimeFeaturesDefaultsAndUpdateFromArgs(command_line); |
55 } | 55 } |
56 | 56 |
57 WorkerThread::~WorkerThread() { | 57 WorkerThread::~WorkerThread() { |
58 } | 58 } |
59 | 59 |
60 void WorkerThread::Shutdown() { | 60 void WorkerThread::Shutdown() { |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
108 | 108 |
109 void WorkerThread::RemoveWorkerStub(WebSharedWorkerStub* stub) { | 109 void WorkerThread::RemoveWorkerStub(WebSharedWorkerStub* stub) { |
110 worker_stubs_.erase(stub); | 110 worker_stubs_.erase(stub); |
111 } | 111 } |
112 | 112 |
113 void WorkerThread::AddWorkerStub(WebSharedWorkerStub* stub) { | 113 void WorkerThread::AddWorkerStub(WebSharedWorkerStub* stub) { |
114 worker_stubs_.insert(stub); | 114 worker_stubs_.insert(stub); |
115 } | 115 } |
116 | 116 |
117 } // namespace content | 117 } // namespace content |
OLD | NEW |