summaryrefslogtreecommitdiffstats
path: root/chrome/browser/render_process_host.h
diff options
context:
space:
mode:
authoraa@chromium.org <aa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2008-10-30 23:57:59 +0000
committeraa@chromium.org <aa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2008-10-30 23:57:59 +0000
commit4cc1a29b935e7d260ee24ab4e78193186febecac (patch)
tree84e348ccb55117b02bed787c55139bc600b8dfde /chrome/browser/render_process_host.h
parentf6cda7598ff5c5bdd6b7b91440589fdf2d37eb55 (diff)
downloadchromium_src-4cc1a29b935e7d260ee24ab4e78193186febecac.zip
chromium_src-4cc1a29b935e7d260ee24ab4e78193186febecac.tar.gz
chromium_src-4cc1a29b935e7d260ee24ab4e78193186febecac.tar.bz2
Make it so that you can refresh and see changes in Greasemonkey
scripts immediately, without having to restart the renderer. Review URL: http://codereview.chromium.org/8908 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@4256 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/render_process_host.h')
-rw-r--r--chrome/browser/render_process_host.h21
1 files changed, 15 insertions, 6 deletions
diff --git a/chrome/browser/render_process_host.h b/chrome/browser/render_process_host.h
index bd55bb2..5b89597 100644
--- a/chrome/browser/render_process_host.h
+++ b/chrome/browser/render_process_host.h
@@ -84,12 +84,6 @@ class RenderProcessHost : public IPC::Channel::Listener,
// the process has been created, it should just call Init().
bool Init();
- // Send the child process its initial visited link database.
- void InitVisitedLinks(HANDLE target_process);
-
- // Send the child process its initial greasemonkey scripts.
- void InitGreasemonkeyScripts(HANDLE target_process);
-
// Used for refcounting, each holder of this object must Attach and Release
// just like it would for a COM object. This object should be allocated on
// the heap; when no listeners own it any more, it will delete itself.
@@ -211,6 +205,21 @@ class RenderProcessHost : public IPC::Channel::Listener,
void OnClipboardReadHTML(std::wstring* markup, GURL* src_url);
void OnUpdatedCacheStats(const CacheManager::UsageStats& stats);
+ // Initialize support for visited links. Send the renderer process its initial
+ // set of visited links.
+ void InitVisitedLinks();
+
+ // Initialize support for Greasemonkey scripts. Send the renderer process its
+ // initial set of scripts and listen for updates to scripts.
+ void InitGreasemonkeyScripts();
+
+ // Sends the renderer process a new set of Greasemonkey scripts.
+ void SendGreasemonkeyScriptsUpdate(SharedMemory* shared_memory);
+
+ // Gets a handle to the renderer process, normalizing the case where we were
+ // started with --single-process.
+ HANDLE GetRendererProcessHandle();
+
// Callers can reduce the RenderProcess' priority.
// Returns true if the priority is backgrounded; false otherwise.
void SetBackgrounded(bool boost);