OLD | NEW |
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_BROWSER_WORKER_HOST_WORKER_DOCUMENT_SET_H_ | 5 #ifndef CONTENT_BROWSER_WORKER_HOST_WORKER_DOCUMENT_SET_H_ |
6 #define CONTENT_BROWSER_WORKER_HOST_WORKER_DOCUMENT_SET_H_ | 6 #define CONTENT_BROWSER_WORKER_HOST_WORKER_DOCUMENT_SET_H_ |
7 #pragma once | |
8 | 7 |
9 #include <set> | 8 #include <set> |
10 | 9 |
11 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
12 #include "base/memory/ref_counted.h" | 11 #include "base/memory/ref_counted.h" |
13 | 12 |
14 class WorkerMessageFilter; | 13 class WorkerMessageFilter; |
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 |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
81 const DocumentInfoSet& documents() { return document_set_; } | 80 const DocumentInfoSet& documents() { return document_set_; } |
82 | 81 |
83 private: | 82 private: |
84 friend class base::RefCounted<WorkerDocumentSet>; | 83 friend class base::RefCounted<WorkerDocumentSet>; |
85 virtual ~WorkerDocumentSet(); | 84 virtual ~WorkerDocumentSet(); |
86 | 85 |
87 DocumentInfoSet document_set_; | 86 DocumentInfoSet document_set_; |
88 }; | 87 }; |
89 | 88 |
90 #endif // CONTENT_BROWSER_WORKER_HOST_WORKER_DOCUMENT_SET_H_ | 89 #endif // CONTENT_BROWSER_WORKER_HOST_WORKER_DOCUMENT_SET_H_ |
OLD | NEW |