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