a752c08672c56fc66d01b140e51d806b75171d06
[platform/framework/web/crosswalk.git] / src / content / renderer / renderer_webapplicationcachehost_impl.h
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.
4
5 #ifndef CONTENT_RENDERER_RENDERER_WEBAPPLICATIONCACHEHOST_IMPL_H_
6 #define CONTENT_RENDERER_RENDERER_WEBAPPLICATIONCACHEHOST_IMPL_H_
7
8 #include "content/child/appcache/web_application_cache_host_impl.h"
9
10 namespace content {
11 class RenderViewImpl;
12
13 class RendererWebApplicationCacheHostImpl : public WebApplicationCacheHostImpl {
14  public:
15   RendererWebApplicationCacheHostImpl(
16       RenderViewImpl* render_view,
17       blink::WebApplicationCacheHostClient* client,
18       AppCacheBackend* backend);
19
20   // WebApplicationCacheHostImpl:
21   virtual void OnLogMessage(AppCacheLogLevel log_level,
22                             const std::string& message) OVERRIDE;
23   virtual void OnContentBlocked(const GURL& manifest_url) OVERRIDE;
24   virtual void OnCacheSelected(const AppCacheInfo& info) OVERRIDE;
25
26  private:
27   RenderViewImpl* GetRenderView();
28
29   int routing_id_;
30 };
31
32 }  // namespace content
33
34 #endif  // CONTENT_RENDERER_RENDERER_WEBAPPLICATIONCACHEHOST_IMPL_H_