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
3 // found in the LICENSE file.
5 #ifndef CONTENT_RENDERER_RENDERER_WEBAPPLICATIONCACHEHOST_IMPL_H_
6 #define CONTENT_RENDERER_RENDERER_WEBAPPLICATIONCACHEHOST_IMPL_H_
8 #include "content/common/content_export.h"
9 #include "webkit/appcache/web_application_cache_host_impl.h"
14 class RendererWebApplicationCacheHostImpl
15 : public appcache::WebApplicationCacheHostImpl
{
17 RendererWebApplicationCacheHostImpl(
18 RenderViewImpl
* render_view
,
19 WebKit::WebApplicationCacheHostClient
* client
,
20 appcache::AppCacheBackend
* backend
);
22 // appcache::WebApplicationCacheHostImpl methods.
23 virtual void OnLogMessage(appcache::LogLevel log_level
,
24 const std::string
& message
) OVERRIDE
;
25 virtual void OnContentBlocked(const GURL
& manifest_url
) OVERRIDE
;
26 virtual void OnCacheSelected(const appcache::AppCacheInfo
& info
) OVERRIDE
;
28 CONTENT_EXPORT
static void DisableLoggingForTesting();
31 RenderViewImpl
* GetRenderView();
36 } // namespace content
38 #endif // CONTENT_RENDERER_RENDERER_WEBAPPLICATIONCACHEHOST_IMPL_H_