| 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..5e8a4b8ef8531b78e18eca340cc2c9cc3276edd8 100644
|
| --- a/content/browser/shared_worker/shared_worker_host.h
|
| +++ b/content/browser/shared_worker/shared_worker_host.h
|
| @@ -7,6 +7,7 @@
|
|
|
| #include <list>
|
| #include <memory>
|
| +#include <set>
|
| #include <utility>
|
| #include <vector>
|
|
|
| @@ -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,10 @@ class SharedWorkerHost {
|
| bool closed_ = false;
|
| const base::TimeTicks creation_time_;
|
|
|
| + // This is the set of features that this worker has used. The values must be
|
| + // from blink::UseCounter::Feature enum.
|
| + std::set<uint32_t> used_features_;
|
| +
|
| base::WeakPtrFactory<SharedWorkerHost> weak_factory_;
|
|
|
| DISALLOW_COPY_AND_ASSIGN(SharedWorkerHost);
|
|
|