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

Unified Diff: chrome/renderer/user_script_slave.h

Issue 6242010: Refactor away most of ExtensionRendererInfo (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: address comments Created 9 years, 11 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 | « chrome/renderer/render_view.cc ('k') | chrome/renderer/user_script_slave.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/user_script_slave.h
diff --git a/chrome/renderer/user_script_slave.h b/chrome/renderer/user_script_slave.h
index 72e1ea358f5b9fd290c110906233c87377d93315..ab1cee0d80f98388e55031e2efae5a90f0cf573c 100644
--- a/chrome/renderer/user_script_slave.h
+++ b/chrome/renderer/user_script_slave.h
@@ -17,6 +17,8 @@
#include "chrome/common/extensions/user_script.h"
#include "third_party/WebKit/Source/WebKit/chromium/public/WebScriptSource.h"
+class ExtensionRendererInfo;
+
namespace WebKit {
class WebFrame;
}
@@ -26,7 +28,7 @@ using WebKit::WebScriptSource;
// Manages installed UserScripts for a render process.
class UserScriptSlave {
public:
- UserScriptSlave();
+ UserScriptSlave(const ExtensionRendererInfo* extensions);
~UserScriptSlave();
// Returns the unique set of extension IDs this UserScriptSlave knows about.
@@ -55,6 +57,9 @@ class UserScriptSlave {
// Greasemonkey API source that is injected with the scripts.
base::StringPiece api_js_;
+ // Extension metadata.
+ const ExtensionRendererInfo* extensions_;
+
DISALLOW_COPY_AND_ASSIGN(UserScriptSlave);
};
« no previous file with comments | « chrome/renderer/render_view.cc ('k') | chrome/renderer/user_script_slave.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698