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

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

Issue 7064033: Virtual destructors should have virtual keyword. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Created 9 years, 7 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/renderer/webworker_proxy.h ('k') | ipc/ipc_channel.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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #ifndef CONTENT_WORKER_WORKER_THREAD_H_ 5 #ifndef CONTENT_WORKER_WORKER_THREAD_H_
6 #define CONTENT_WORKER_WORKER_THREAD_H_ 6 #define CONTENT_WORKER_WORKER_THREAD_H_
7 #pragma once 7 #pragma once
8 8
9 #include <set> 9 #include <set>
10 10
11 #include "content/common/child_thread.h" 11 #include "content/common/child_thread.h"
12 12
13 class GURL; 13 class GURL;
14 class AppCacheDispatcher; 14 class AppCacheDispatcher;
15 class DBMessageFilter; 15 class DBMessageFilter;
16 class WebDatabaseObserverImpl; 16 class WebDatabaseObserverImpl;
17 class WebWorkerStubBase; 17 class WebWorkerStubBase;
18 class WorkerWebKitClientImpl; 18 class WorkerWebKitClientImpl;
19 struct WorkerProcessMsg_CreateWorker_Params; 19 struct WorkerProcessMsg_CreateWorker_Params;
20 20
21 class WorkerThread : public ChildThread { 21 class WorkerThread : public ChildThread {
22 public: 22 public:
23 WorkerThread(); 23 WorkerThread();
24 ~WorkerThread(); 24 virtual ~WorkerThread();
25 25
26 // Returns the one worker thread. 26 // Returns the one worker thread.
27 static WorkerThread* current(); 27 static WorkerThread* current();
28 28
29 // Invoked from stub constructors/destructors. Stubs own themselves. 29 // Invoked from stub constructors/destructors. Stubs own themselves.
30 void AddWorkerStub(WebWorkerStubBase* stub); 30 void AddWorkerStub(WebWorkerStubBase* stub);
31 void RemoveWorkerStub(WebWorkerStubBase* stub); 31 void RemoveWorkerStub(WebWorkerStubBase* stub);
32 32
33 AppCacheDispatcher* appcache_dispatcher() { 33 AppCacheDispatcher* appcache_dispatcher() {
34 return appcache_dispatcher_.get(); 34 return appcache_dispatcher_.get();
(...skipping 10 matching lines...) Expand all
45 scoped_ptr<WebDatabaseObserverImpl> web_database_observer_impl_; 45 scoped_ptr<WebDatabaseObserverImpl> web_database_observer_impl_;
46 scoped_refptr<DBMessageFilter> db_message_filter_; 46 scoped_refptr<DBMessageFilter> db_message_filter_;
47 47
48 typedef std::set<WebWorkerStubBase*> WorkerStubsList; 48 typedef std::set<WebWorkerStubBase*> WorkerStubsList;
49 WorkerStubsList worker_stubs_; 49 WorkerStubsList worker_stubs_;
50 50
51 DISALLOW_COPY_AND_ASSIGN(WorkerThread); 51 DISALLOW_COPY_AND_ASSIGN(WorkerThread);
52 }; 52 };
53 53
54 #endif // CONTENT_WORKER_WORKER_THREAD_H_ 54 #endif // CONTENT_WORKER_WORKER_THREAD_H_
OLDNEW
« no previous file with comments | « content/renderer/webworker_proxy.h ('k') | ipc/ipc_channel.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698