summaryrefslogtreecommitdiffstats
path: root/chrome/renderer/chrome_render_view_observer.h
diff options
context:
space:
mode:
authorbattre@chromium.org <battre@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-09-29 16:54:31 +0000
committerbattre@chromium.org <battre@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-09-29 16:54:31 +0000
commite81d4d7c8966f4650ea8041f8d0bad4fe72b4f54 (patch)
tree46394d04d84e59b9caf598a7138350c3400762c9 /chrome/renderer/chrome_render_view_observer.h
parent965b6b2599050aab93cc398630d10ce30f3b4248 (diff)
downloadchromium_src-e81d4d7c8966f4650ea8041f8d0bad4fe72b4f54.zip
chromium_src-e81d4d7c8966f4650ea8041f8d0bad4fe72b4f54.tar.gz
chromium_src-e81d4d7c8966f4650ea8041f8d0bad4fe72b4f54.tar.bz2
Allow webRequest API extensions to clear the in-memory cache of WebKit.
If the behavior of a webRequest API extension changes (i.e. different URLs are blocked) this effect was not visible instantly due to WebKit's in-memory cache. This CL introduces a means to clear the cache. BUG=94284 TEST=no Review URL: http://codereview.chromium.org/7835031 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@103289 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/renderer/chrome_render_view_observer.h')
-rw-r--r--chrome/renderer/chrome_render_view_observer.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/chrome/renderer/chrome_render_view_observer.h b/chrome/renderer/chrome_render_view_observer.h
index fa2946a..cf1497e 100644
--- a/chrome/renderer/chrome_render_view_observer.h
+++ b/chrome/renderer/chrome_render_view_observer.h
@@ -16,6 +16,7 @@
#include "googleurl/src/gurl.h"
#include "third_party/WebKit/Source/WebKit/chromium/public/WebPermissionClient.h"
+class ChromeRenderProcessObserver;
class ContentSettingsObserver;
class DomAutomationController;
class ExtensionDispatcher;
@@ -43,6 +44,7 @@ class ChromeRenderViewObserver : public RenderViewObserver,
ChromeRenderViewObserver(
RenderView* render_view,
ContentSettingsObserver* content_settings,
+ ChromeRenderProcessObserver* chrome_render_process_observer,
ExtensionDispatcher* extension_dispatcher,
TranslateHelper* translate_helper);
virtual ~ChromeRenderViewObserver();
@@ -171,9 +173,12 @@ class ChromeRenderViewObserver : public RenderViewObserver,
// Save the JavaScript to preload if a ViewMsg_WebUIJavaScript is received.
scoped_ptr<WebUIJavaScript> webui_javascript_;
+ // Owned by ChromeContentRendererClient and outlive us.
+ ChromeRenderProcessObserver* chrome_render_process_observer_;
+ ExtensionDispatcher* extension_dispatcher_;
+
// Have the same lifetime as us.
ContentSettingsObserver* content_settings_;
- ExtensionDispatcher* extension_dispatcher_;
TranslateHelper* translate_helper_;
safe_browsing::PhishingClassifierDelegate* phishing_classifier_;