Chromium Code Reviews| OLD | NEW |
|---|---|
| (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 } | |
| OLD | NEW |