summaryrefslogtreecommitdiffstats
path: root/chrome/renderer
diff options
context:
space:
mode:
authorjochen@chromium.org <jochen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-07-12 04:00:01 +0000
committerjochen@chromium.org <jochen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-07-12 04:00:01 +0000
commit71aaa7aa371e39947d951addfcdf32f2cda353ac (patch)
treeab138d9c44fde00390e5f5cc203f292d7aa80815 /chrome/renderer
parent6cd36ac0c3138c5c3e741e32dd6f3e3e6dff9d45 (diff)
downloadchromium_src-71aaa7aa371e39947d951addfcdf32f2cda353ac.zip
chromium_src-71aaa7aa371e39947d951addfcdf32f2cda353ac.tar.gz
chromium_src-71aaa7aa371e39947d951addfcdf32f2cda353ac.tar.bz2
Pass notifications to the browser on access to the appcache main resource manifest.
BUG=45230 TEST=browser_tests Review URL: http://codereview.chromium.org/2808046 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@52072 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/renderer')
-rw-r--r--chrome/renderer/renderer_webapplicationcachehost_impl.cc17
-rw-r--r--chrome/renderer/renderer_webapplicationcachehost_impl.h4
2 files changed, 14 insertions, 7 deletions
diff --git a/chrome/renderer/renderer_webapplicationcachehost_impl.cc b/chrome/renderer/renderer_webapplicationcachehost_impl.cc
index 6a2d6e3..c4b6e71 100644
--- a/chrome/renderer/renderer_webapplicationcachehost_impl.cc
+++ b/chrome/renderer/renderer_webapplicationcachehost_impl.cc
@@ -35,12 +35,17 @@ void RendererWebApplicationCacheHostImpl::OnLogMessage(
WebKit::WebString::fromUTF8(message.c_str())));
}
-void RendererWebApplicationCacheHostImpl::OnContentBlocked() {
- if (!content_blocked_) {
- RenderThread::current()->Send(new ViewHostMsg_ContentBlocked(
- routing_id_, CONTENT_SETTINGS_TYPE_COOKIES));
- content_blocked_ = true;
- }
+void RendererWebApplicationCacheHostImpl::OnContentBlocked(
+ const GURL& manifest_url) {
+ RenderThread::current()->Send(new ViewHostMsg_AppCacheAccessed(
+ routing_id_, manifest_url, true));
+}
+
+void RendererWebApplicationCacheHostImpl::OnCacheSelected(
+ int64 selected_cache_id, appcache::Status status) {
+ // TODO(jochen): Send a ViewHostMsg_AppCacheAccessed to the browser once this
+ // methods gets the manifest url passed.
+ WebApplicationCacheHostImpl::OnCacheSelected(selected_cache_id, status);
}
RenderView* RendererWebApplicationCacheHostImpl::GetRenderView() {
diff --git a/chrome/renderer/renderer_webapplicationcachehost_impl.h b/chrome/renderer/renderer_webapplicationcachehost_impl.h
index 0e4173e..e709fa9 100644
--- a/chrome/renderer/renderer_webapplicationcachehost_impl.h
+++ b/chrome/renderer/renderer_webapplicationcachehost_impl.h
@@ -20,7 +20,9 @@ class RendererWebApplicationCacheHostImpl
// appcache::WebApplicationCacheHostImpl methods.
virtual void OnLogMessage(appcache::LogLevel log_level,
const std::string& message);
- virtual void OnContentBlocked();
+ virtual void OnContentBlocked(const GURL& manifest_url);
+ virtual void OnCacheSelected(int64 selected_cache_id,
+ appcache::Status status);
private:
RenderView* GetRenderView();