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

Unified Diff: chrome/renderer/render_thread.h

Issue 7254: Initial Greasemonkey support (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 12 years, 2 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/greasemonkey_slave.cc ('k') | chrome/renderer/render_thread.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/render_thread.h
===================================================================
--- chrome/renderer/render_thread.h (revision 3492)
+++ chrome/renderer/render_thread.h (working copy)
@@ -18,6 +18,7 @@
struct WebPreferences;
class RenderDnsMaster;
class NotificationService;
+class GreasemonkeySlave;
// The RenderThreadBase is the minimal interface that a RenderWidget expects
// from a render thread. The interface basically abstracts a way to send and
@@ -64,8 +65,12 @@
// The RenderThread instance for the current thread.
static RenderThread* current();
+ // Gets the VisitedLinkSlave instance for this thread
VisitedLinkSlave* visited_link_slave() const { return visited_link_slave_; }
+ // Gets the GreasemonkeySlave instance for this thread
+ GreasemonkeySlave* greasemonkey_slave() const { return greasemonkey_slave_; }
+
// Do DNS prefetch resolution of a hostname.
void Resolve(const char* name, size_t length);
@@ -89,6 +94,7 @@
private:
void OnUpdateVisitedLinks(SharedMemoryHandle table);
+ void OnUpdateGreasemonkeyScripts(SharedMemoryHandle table);
void OnPluginMessage(const std::wstring& dll_path,
const std::vector<uint8>& data);
@@ -120,6 +126,7 @@
// These objects live solely on the render thread.
VisitedLinkSlave* visited_link_slave_;
+ GreasemonkeySlave* greasemonkey_slave_;
scoped_ptr<RenderDnsMaster> render_dns_master_;
« no previous file with comments | « chrome/renderer/greasemonkey_slave.cc ('k') | chrome/renderer/render_thread.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698