OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_BROWSER_SHARED_WORKER_WORKER_DOCUMENT_SET_H_ | 5 #ifndef CONTENT_BROWSER_SHARED_WORKER_WORKER_DOCUMENT_SET_H_ |
6 #define CONTENT_BROWSER_SHARED_WORKER_WORKER_DOCUMENT_SET_H_ | 6 #define CONTENT_BROWSER_SHARED_WORKER_WORKER_DOCUMENT_SET_H_ |
7 | 7 |
8 #include <set> | 8 #include <set> |
9 | 9 |
10 #include "base/basictypes.h" | |
11 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
12 | 11 |
13 namespace content { | 12 namespace content { |
14 class BrowserMessageFilter; | 13 class BrowserMessageFilter; |
15 | 14 |
16 // The WorkerDocumentSet tracks all of the DOM documents associated with a | 15 // The WorkerDocumentSet tracks all of the DOM documents associated with a |
17 // set of workers. With nested workers, multiple workers can share the same | 16 // set of workers. With nested workers, multiple workers can share the same |
18 // WorkerDocumentSet (meaning that they all share the same lifetime, and will | 17 // WorkerDocumentSet (meaning that they all share the same lifetime, and will |
19 // all exit when the last document in that set exits, per the WebWorkers spec). | 18 // all exit when the last document in that set exits, per the WebWorkers spec). |
20 class WorkerDocumentSet : public base::RefCounted<WorkerDocumentSet> { | 19 class WorkerDocumentSet : public base::RefCounted<WorkerDocumentSet> { |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
87 private: | 86 private: |
88 friend class base::RefCounted<WorkerDocumentSet>; | 87 friend class base::RefCounted<WorkerDocumentSet>; |
89 virtual ~WorkerDocumentSet(); | 88 virtual ~WorkerDocumentSet(); |
90 | 89 |
91 DocumentInfoSet document_set_; | 90 DocumentInfoSet document_set_; |
92 }; | 91 }; |
93 | 92 |
94 } // namespace content | 93 } // namespace content |
95 | 94 |
96 #endif // CONTENT_BROWSER_SHARED_WORKER_WORKER_DOCUMENT_SET_H_ | 95 #endif // CONTENT_BROWSER_SHARED_WORKER_WORKER_DOCUMENT_SET_H_ |
OLD | NEW |