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

Unified Diff: extensions/renderer/scripts_run_info.h

Issue 878513005: Extensions: suspend extension's scripts when V8 is paused (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed ActivityLogPrerenderTest.TestScriptInjected Created 5 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
Index: extensions/renderer/scripts_run_info.h
diff --git a/extensions/renderer/scripts_run_info.h b/extensions/renderer/scripts_run_info.h
index e577cc32cb3175e8c3058de7a2c13df06e144d7c..5ed9249429e2f6078a8abe2977a248cf416f531e 100644
--- a/extensions/renderer/scripts_run_info.h
+++ b/extensions/renderer/scripts_run_info.h
@@ -11,6 +11,7 @@
#include "base/basictypes.h"
#include "base/macros.h"
+#include "base/memory/ref_counted.h"
#include "base/timer/elapsed_timer.h"
#include "extensions/common/user_script.h"
@@ -21,12 +22,11 @@ class WebFrame;
namespace extensions {
// A struct containing information about a script run.
-struct ScriptsRunInfo {
+struct ScriptsRunInfo : public base::RefCounted<ScriptsRunInfo> {
// Map of extensions IDs to the executing script paths.
typedef std::map<std::string, std::set<std::string> > ExecutingScriptsMap;
ScriptsRunInfo();
- ~ScriptsRunInfo();
// The number of CSS scripts injected.
size_t num_css;
@@ -42,6 +42,9 @@ struct ScriptsRunInfo {
private:
DISALLOW_COPY_AND_ASSIGN(ScriptsRunInfo);
+
+ ~ScriptsRunInfo();
+ friend class base::RefCounted<ScriptsRunInfo>;
};
} // namespace extensions

Powered by Google App Engine
This is Rietveld 408576698