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 #ifndef CONTENT_BROWSER_WORKER_HOST_WORKER_PROCESS_HOST_H_ | 5 #ifndef CONTENT_BROWSER_WORKER_HOST_WORKER_PROCESS_HOST_H_ |
6 #define CONTENT_BROWSER_WORKER_HOST_WORKER_PROCESS_HOST_H_ | 6 #define CONTENT_BROWSER_WORKER_HOST_WORKER_PROCESS_HOST_H_ |
7 | 7 |
8 #include <list> | 8 #include <list> |
9 #include <string> | 9 #include <string> |
10 #include <utility> | 10 #include <utility> |
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
109 WorkerDocumentSet* worker_document_set() const { | 109 WorkerDocumentSet* worker_document_set() const { |
110 return worker_document_set_.get(); | 110 return worker_document_set_.get(); |
111 } | 111 } |
112 ResourceContext* resource_context() const { | 112 ResourceContext* resource_context() const { |
113 return resource_context_; | 113 return resource_context_; |
114 } | 114 } |
115 const WorkerStoragePartition& partition() const { | 115 const WorkerStoragePartition& partition() const { |
116 return partition_; | 116 return partition_; |
117 } | 117 } |
118 | 118 |
| 119 // Flag to distinquish appcache executable handlers from WebSharedWorkers. |
| 120 bool is_embedded_worker_; |
| 121 |
119 private: | 122 private: |
120 // Set of all filters (clients) associated with this worker. | 123 // Set of all filters (clients) associated with this worker. |
121 GURL url_; | 124 GURL url_; |
122 bool closed_; | 125 bool closed_; |
123 string16 name_; | 126 string16 name_; |
124 int worker_route_id_; | 127 int worker_route_id_; |
125 int parent_process_id_; | 128 int parent_process_id_; |
126 int64 main_resource_appcache_id_; | 129 int64 main_resource_appcache_id_; |
127 FilterList filters_; | 130 FilterList filters_; |
128 scoped_refptr<WorkerDocumentSet> worker_document_set_; | 131 scoped_refptr<WorkerDocumentSet> worker_document_set_; |
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
241 public: | 244 public: |
242 WorkerProcessHostIterator() | 245 WorkerProcessHostIterator() |
243 : BrowserChildProcessHostTypeIterator<WorkerProcessHost>( | 246 : BrowserChildProcessHostTypeIterator<WorkerProcessHost>( |
244 PROCESS_TYPE_WORKER) { | 247 PROCESS_TYPE_WORKER) { |
245 } | 248 } |
246 }; | 249 }; |
247 | 250 |
248 } // namespace content | 251 } // namespace content |
249 | 252 |
250 #endif // CONTENT_BROWSER_WORKER_HOST_WORKER_PROCESS_HOST_H_ | 253 #endif // CONTENT_BROWSER_WORKER_HOST_WORKER_PROCESS_HOST_H_ |
OLD | NEW |