OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 | 7 |
8 #include "content/common/content_export.h" | |
9 #include "webkit/appcache/web_application_cache_host_impl.h" | 8 #include "webkit/appcache/web_application_cache_host_impl.h" |
10 | 9 |
11 namespace content { | 10 namespace content { |
12 class RenderViewImpl; | 11 class RenderViewImpl; |
13 | 12 |
14 class RendererWebApplicationCacheHostImpl | 13 class RendererWebApplicationCacheHostImpl |
15 : public appcache::WebApplicationCacheHostImpl { | 14 : public appcache::WebApplicationCacheHostImpl { |
16 public: | 15 public: |
17 RendererWebApplicationCacheHostImpl( | 16 RendererWebApplicationCacheHostImpl( |
18 RenderViewImpl* render_view, | 17 RenderViewImpl* render_view, |
19 WebKit::WebApplicationCacheHostClient* client, | 18 WebKit::WebApplicationCacheHostClient* client, |
20 appcache::AppCacheBackend* backend); | 19 appcache::AppCacheBackend* backend); |
21 | 20 |
22 // appcache::WebApplicationCacheHostImpl methods. | 21 // appcache::WebApplicationCacheHostImpl methods. |
23 virtual void OnLogMessage(appcache::LogLevel log_level, | 22 virtual void OnLogMessage(appcache::LogLevel log_level, |
24 const std::string& message) OVERRIDE; | 23 const std::string& message) OVERRIDE; |
25 virtual void OnContentBlocked(const GURL& manifest_url) OVERRIDE; | 24 virtual void OnContentBlocked(const GURL& manifest_url) OVERRIDE; |
26 virtual void OnCacheSelected(const appcache::AppCacheInfo& info) OVERRIDE; | 25 virtual void OnCacheSelected(const appcache::AppCacheInfo& info) OVERRIDE; |
27 | 26 |
28 CONTENT_EXPORT static void DisableLoggingForTesting(); | |
29 | |
30 private: | 27 private: |
31 RenderViewImpl* GetRenderView(); | 28 RenderViewImpl* GetRenderView(); |
32 | 29 |
33 int routing_id_; | 30 int routing_id_; |
34 }; | 31 }; |
35 | 32 |
36 } // namespace content | 33 } // namespace content |
37 | 34 |
38 #endif // CONTENT_RENDERER_RENDERER_WEBAPPLICATIONCACHEHOST_IMPL_H_ | 35 #endif // CONTENT_RENDERER_RENDERER_WEBAPPLICATIONCACHEHOST_IMPL_H_ |
OLD | NEW |