Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(779)

Unified Diff: content/browser/shared_worker/shared_worker_host.h

Issue 2586863002: Worker: Enable UseCounter for SharedWorkerGlobalScope (Closed)
Patch Set: tweak Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | content/browser/shared_worker/shared_worker_host.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..356d713b02589e055acc3a483dbbdc8c1620e753 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 use_counter_id);
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_;
+ std::set<uint32_t> use_counter_;
dcheng 2017/02/03 18:27:50 Nit: add a comment on this and note that this is t
nhiroki 2017/02/06 00:35:56 Done.
+
base::WeakPtrFactory<SharedWorkerHost> weak_factory_;
DISALLOW_COPY_AND_ASSIGN(SharedWorkerHost);
« no previous file with comments | « no previous file | content/browser/shared_worker/shared_worker_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698