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

Side by Side Diff: content/worker/worker_thread.cc

Issue 11231016: Move content's a plugin, ppapi_plugin, utility, and worker subdirectories to the content namespace. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix mac Created 8 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « content/worker/worker_thread.h ('k') | content/worker/worker_webapplicationcachehost_impl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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/common/appcache/appcache_dispatcher.h" 10 #include "content/common/appcache/appcache_dispatcher.h"
11 #include "content/common/db_message_filter.h" 11 #include "content/common/db_message_filter.h"
12 #include "content/common/indexed_db/indexed_db_message_filter.h" 12 #include "content/common/indexed_db/indexed_db_message_filter.h"
13 #include "content/common/web_database_observer_impl.h" 13 #include "content/common/web_database_observer_impl.h"
14 #include "content/common/worker_messages.h" 14 #include "content/common/worker_messages.h"
15 #include "content/public/common/content_switches.h" 15 #include "content/public/common/content_switches.h"
16 #include "content/worker/websharedworker_stub.h" 16 #include "content/worker/websharedworker_stub.h"
17 #include "content/worker/worker_webkitplatformsupport_impl.h" 17 #include "content/worker/worker_webkitplatformsupport_impl.h"
18 #include "ipc/ipc_sync_channel.h" 18 #include "ipc/ipc_sync_channel.h"
19 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebBlobRegis try.h" 19 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebBlobRegis try.h"
20 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDatabase.h" 20 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDatabase.h"
21 #include "third_party/WebKit/Source/WebKit/chromium/public/WebKit.h" 21 #include "third_party/WebKit/Source/WebKit/chromium/public/WebKit.h"
22 #include "third_party/WebKit/Source/WebKit/chromium/public/WebRuntimeFeatures.h" 22 #include "third_party/WebKit/Source/WebKit/chromium/public/WebRuntimeFeatures.h"
23 #include "webkit/glue/webkit_glue.h" 23 #include "webkit/glue/webkit_glue.h"
24 24
25 using WebKit::WebRuntimeFeatures; 25 using WebKit::WebRuntimeFeatures;
26 26
27 namespace content {
28
27 static base::LazyInstance<base::ThreadLocalPointer<WorkerThread> > lazy_tls = 29 static base::LazyInstance<base::ThreadLocalPointer<WorkerThread> > lazy_tls =
28 LAZY_INSTANCE_INITIALIZER; 30 LAZY_INSTANCE_INITIALIZER;
29 31
30
31 WorkerThread::WorkerThread() { 32 WorkerThread::WorkerThread() {
32 lazy_tls.Pointer()->Set(this); 33 lazy_tls.Pointer()->Set(this);
33 webkit_platform_support_.reset(new WorkerWebKitPlatformSupportImpl); 34 webkit_platform_support_.reset(new WorkerWebKitPlatformSupportImpl);
34 WebKit::initialize(webkit_platform_support_.get()); 35 WebKit::initialize(webkit_platform_support_.get());
35 36
36 appcache_dispatcher_.reset(new AppCacheDispatcher(this)); 37 appcache_dispatcher_.reset(new AppCacheDispatcher(this));
37 38
38 web_database_observer_impl_.reset( 39 web_database_observer_impl_.reset(
39 new WebDatabaseObserverImpl(sync_message_filter())); 40 new WebDatabaseObserverImpl(sync_message_filter()));
40 WebKit::WebDatabase::setObserver(web_database_observer_impl_.get()); 41 WebKit::WebDatabase::setObserver(web_database_observer_impl_.get());
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 } 120 }
120 } 121 }
121 122
122 void WorkerThread::RemoveWorkerStub(WebSharedWorkerStub* stub) { 123 void WorkerThread::RemoveWorkerStub(WebSharedWorkerStub* stub) {
123 worker_stubs_.erase(stub); 124 worker_stubs_.erase(stub);
124 } 125 }
125 126
126 void WorkerThread::AddWorkerStub(WebSharedWorkerStub* stub) { 127 void WorkerThread::AddWorkerStub(WebSharedWorkerStub* stub) {
127 worker_stubs_.insert(stub); 128 worker_stubs_.insert(stub);
128 } 129 }
130
131 } // namespace content
OLDNEW
« no previous file with comments | « content/worker/worker_thread.h ('k') | content/worker/worker_webapplicationcachehost_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698