OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CONTENT_RENDERER_RENDERER_WEBAPPLICATIONCACHEHOST_IMPL_H_ | 5 #ifndef CONTENT_RENDERER_RENDERER_WEBAPPLICATIONCACHEHOST_IMPL_H_ |
6 #define CONTENT_RENDERER_RENDERER_WEBAPPLICATIONCACHEHOST_IMPL_H_ | 6 #define CONTENT_RENDERER_RENDERER_WEBAPPLICATIONCACHEHOST_IMPL_H_ |
7 #pragma once | |
8 | 7 |
9 #include "webkit/appcache/web_application_cache_host_impl.h" | 8 #include "webkit/appcache/web_application_cache_host_impl.h" |
10 | 9 |
11 class RenderViewImpl; | 10 class RenderViewImpl; |
12 | 11 |
13 class RendererWebApplicationCacheHostImpl | 12 class RendererWebApplicationCacheHostImpl |
14 : public appcache::WebApplicationCacheHostImpl { | 13 : public appcache::WebApplicationCacheHostImpl { |
15 public: | 14 public: |
16 RendererWebApplicationCacheHostImpl( | 15 RendererWebApplicationCacheHostImpl( |
17 RenderViewImpl* render_view, | 16 RenderViewImpl* render_view, |
18 WebKit::WebApplicationCacheHostClient* client, | 17 WebKit::WebApplicationCacheHostClient* client, |
19 appcache::AppCacheBackend* backend); | 18 appcache::AppCacheBackend* backend); |
20 | 19 |
21 // appcache::WebApplicationCacheHostImpl methods. | 20 // appcache::WebApplicationCacheHostImpl methods. |
22 virtual void OnLogMessage(appcache::LogLevel log_level, | 21 virtual void OnLogMessage(appcache::LogLevel log_level, |
23 const std::string& message) OVERRIDE; | 22 const std::string& message) OVERRIDE; |
24 virtual void OnContentBlocked(const GURL& manifest_url) OVERRIDE; | 23 virtual void OnContentBlocked(const GURL& manifest_url) OVERRIDE; |
25 virtual void OnCacheSelected(const appcache::AppCacheInfo& info) OVERRIDE; | 24 virtual void OnCacheSelected(const appcache::AppCacheInfo& info) OVERRIDE; |
26 | 25 |
27 private: | 26 private: |
28 RenderViewImpl* GetRenderView(); | 27 RenderViewImpl* GetRenderView(); |
29 | 28 |
30 bool content_blocked_; | 29 bool content_blocked_; |
31 int routing_id_; | 30 int routing_id_; |
32 }; | 31 }; |
33 | 32 |
34 #endif // CONTENT_RENDERER_RENDERER_WEBAPPLICATIONCACHEHOST_IMPL_H_ | 33 #endif // CONTENT_RENDERER_RENDERER_WEBAPPLICATIONCACHEHOST_IMPL_H_ |
OLD | NEW |