| 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 #ifndef CHROME_RENDERER_RENDERER_WEBAPPLICATIONCACHEHOST_IMPL_H_ | |
| 6 #define CHROME_RENDERER_RENDERER_WEBAPPLICATIONCACHEHOST_IMPL_H_ | |
| 7 #pragma once | |
| 8 | |
| 9 #include "webkit/appcache/web_application_cache_host_impl.h" | |
| 10 | |
| 11 class RenderView; | |
| 12 | |
| 13 class RendererWebApplicationCacheHostImpl | |
| 14 : public appcache::WebApplicationCacheHostImpl { | |
| 15 public: | |
| 16 RendererWebApplicationCacheHostImpl( | |
| 17 RenderView* render_view, | |
| 18 WebKit::WebApplicationCacheHostClient* client, | |
| 19 appcache::AppCacheBackend* backend); | |
| 20 | |
| 21 // appcache::WebApplicationCacheHostImpl methods. | |
| 22 virtual void OnLogMessage(appcache::LogLevel log_level, | |
| 23 const std::string& message); | |
| 24 virtual void OnContentBlocked(const GURL& manifest_url); | |
| 25 virtual void OnCacheSelected(const appcache::AppCacheInfo& info); | |
| 26 | |
| 27 private: | |
| 28 RenderView* GetRenderView(); | |
| 29 | |
| 30 bool content_blocked_; | |
| 31 int routing_id_; | |
| 32 }; | |
| 33 | |
| 34 #endif // CHROME_RENDERER_RENDERER_WEBAPPLICATIONCACHEHOST_IMPL_H_ | |
| OLD | NEW |