| Index: content/browser/shared_worker/shared_worker_host.h
|
| diff --git a/content/browser/shared_worker/shared_worker_host.h b/content/browser/shared_worker/shared_worker_host.h
|
| index 49c65f0d23c1f2938ced8c3c96d88fce8d3aa1e7..2087f4b91fe212e1074e52562a646ca6fcd5dbf3 100644
|
| --- a/content/browser/shared_worker/shared_worker_host.h
|
| +++ b/content/browser/shared_worker/shared_worker_host.h
|
| @@ -15,6 +15,7 @@
|
| #include "base/strings/string16.h"
|
| #include "base/time/time.h"
|
| #include "content/browser/shared_worker/worker_document_set.h"
|
| +#include "content/common/worker_use_counter.h"
|
|
|
| class GURL;
|
|
|
| @@ -62,12 +63,13 @@ class SharedWorkerHost {
|
| // referenced by active documents.
|
| void RenderFrameDetached(int render_process_id, int render_frame_id);
|
|
|
| + void CountFeature(uint32_t feature);
|
| void WorkerContextClosed();
|
| + void WorkerContextDestroyed();
|
| void WorkerReadyForInspection();
|
| void WorkerScriptLoaded();
|
| void WorkerScriptLoadFailed();
|
| void WorkerConnected(int message_port_id);
|
| - void WorkerContextDestroyed();
|
| void AllowFileSystem(const GURL& url,
|
| std::unique_ptr<IPC::Message> reply_msg);
|
| void AllowIndexedDB(const GURL& url,
|
| @@ -141,6 +143,8 @@ class SharedWorkerHost {
|
| bool closed_ = false;
|
| const base::TimeTicks creation_time_;
|
|
|
| + WorkerUseCounter use_counter_;
|
| +
|
| base::WeakPtrFactory<SharedWorkerHost> weak_factory_;
|
|
|
| DISALLOW_COPY_AND_ASSIGN(SharedWorkerHost);
|
|
|