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

Side by Side Diff: chrome/renderer/renderer_webapplicationcachehost_impl.cc

Issue 1600002: Indicate in the tab UI if appcache creation was blocked by privacy settings. (Closed)
Patch Set: updates Created 10 years, 8 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "chrome/renderer/renderer_webapplicationcachehost_impl.h"
6
7 #include "chrome/common/content_settings_types.h"
8 #include "chrome/renderer/render_thread.h"
9 #include "chrome/renderer/render_view.h"
10
11 using appcache::AppCacheBackend;
12 using WebKit::WebApplicationCacheHostClient;
13
14 RendererWebApplicationCacheHostImpl::RendererWebApplicationCacheHostImpl(
15 RenderView* render_view,
16 WebApplicationCacheHostClient* client,
17 AppCacheBackend* backend)
18 : WebApplicationCacheHostImpl(client, backend),
19 content_blocked_(false),
20 render_view_(render_view) {
21 }
22
23 RendererWebApplicationCacheHostImpl::~RendererWebApplicationCacheHostImpl() {
24 }
25
26 void RendererWebApplicationCacheHostImpl::OnContentBlocked() {
27 if (!content_blocked_) {
28 RenderThread::current()->Send(new ViewHostMsg_ContentBlocked(
29 render_view_->routing_id(), CONTENT_SETTINGS_TYPE_COOKIES));
michaeln 2010/04/08 18:17:42 Here's where the raciness i mentioned earlier come
jochen (gone - plz use gerrit) 2010/04/09 15:44:47 Done.
30 content_blocked_ = true;
31 }
32 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698