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 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
99 bool closed() const { return closed_; } | 99 bool closed() const { return closed_; } |
100 void set_closed(bool closed) { closed_ = closed; } | 100 void set_closed(bool closed) { closed_ = closed; } |
101 const GURL& url() const { return url_; } | 101 const GURL& url() const { return url_; } |
102 const string16 name() const { return name_; } | 102 const string16 name() const { return name_; } |
103 int worker_route_id() const { return worker_route_id_; } | 103 int worker_route_id() const { return worker_route_id_; } |
104 int parent_process_id() const { return parent_process_id_; } | 104 int parent_process_id() const { return parent_process_id_; } |
105 int64 main_resource_appcache_id() const { | 105 int64 main_resource_appcache_id() const { |
106 return main_resource_appcache_id_; | 106 return main_resource_appcache_id_; |
107 } | 107 } |
108 WorkerDocumentSet* worker_document_set() const { | 108 WorkerDocumentSet* worker_document_set() const { |
109 return worker_document_set_; | 109 return worker_document_set_.get(); |
110 } | 110 } |
111 ResourceContext* resource_context() const { | 111 ResourceContext* resource_context() const { |
112 return resource_context_; | 112 return resource_context_; |
113 } | 113 } |
114 const WorkerStoragePartition& partition() const { | 114 const WorkerStoragePartition& partition() const { |
115 return partition_; | 115 return partition_; |
116 } | 116 } |
117 | 117 |
118 private: | 118 private: |
119 // Set of all filters (clients) associated with this worker. | 119 // Set of all filters (clients) associated with this worker. |
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
236 public: | 236 public: |
237 WorkerProcessHostIterator() | 237 WorkerProcessHostIterator() |
238 : BrowserChildProcessHostTypeIterator<WorkerProcessHost>( | 238 : BrowserChildProcessHostTypeIterator<WorkerProcessHost>( |
239 PROCESS_TYPE_WORKER) { | 239 PROCESS_TYPE_WORKER) { |
240 } | 240 } |
241 }; | 241 }; |
242 | 242 |
243 } // namespace content | 243 } // namespace content |
244 | 244 |
245 #endif // CONTENT_BROWSER_WORKER_HOST_WORKER_PROCESS_HOST_H_ | 245 #endif // CONTENT_BROWSER_WORKER_HOST_WORKER_PROCESS_HOST_H_ |
OLD | NEW |