| 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
|
|
|