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

Unified Diff: chrome/renderer/user_script_slave.h

Issue 173556: Implement script API:executeScript (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 11 years, 3 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
===================================================================
--- chrome/renderer/user_script_slave.h (revision 26435)
+++ chrome/renderer/user_script_slave.h (working copy)
@@ -6,6 +6,7 @@
#define CHROME_BROWSER_EXTENSIONS_USER_SCRIPT_SLAVE_H_
#include <map>
+#include <string>
#include <vector>
#include "base/scoped_ptr.h"
@@ -13,11 +14,14 @@
#include "base/stl_util-inl.h"
#include "base/string_piece.h"
#include "chrome/common/extensions/user_script.h"
+#include "webkit/api/public/WebScriptSource.h"
namespace WebKit {
class WebFrame;
}
+using WebKit::WebScriptSource;
+
// Manages installed UserScripts for a render process.
class UserScriptSlave {
public:
@@ -31,6 +35,8 @@
// testability.
bool InjectScripts(WebKit::WebFrame* frame, UserScript::RunLocation location);
+ static void InsertInitExtensionCode(std::vector<WebScriptSource>* sources,
+ const std::string& extension_id);
private:
// Shared memory containing raw script data.
scoped_ptr<base::SharedMemory> shared_memory_;
« 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