blob: 4b434a9e9187c4897bf294e999ebe4299428482a [file] [log] [blame]
// Copyright (c) 2010 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CONTENT_RENDERER_RENDERER_WEBAPPLICATIONCACHEHOST_IMPL_H_
#define CONTENT_RENDERER_RENDERER_WEBAPPLICATIONCACHEHOST_IMPL_H_
#pragma once
#include "webkit/appcache/web_application_cache_host_impl.h"
class RenderViewImpl;
class RendererWebApplicationCacheHostImpl
: public appcache::WebApplicationCacheHostImpl {
public:
RendererWebApplicationCacheHostImpl(
RenderViewImpl* render_view,
WebKit::WebApplicationCacheHostClient* client,
appcache::AppCacheBackend* backend);
// appcache::WebApplicationCacheHostImpl methods.
virtual void OnLogMessage(appcache::LogLevel log_level,
const std::string& message);
virtual void OnContentBlocked(const GURL& manifest_url);
virtual void OnCacheSelected(const appcache::AppCacheInfo& info);
private:
RenderViewImpl* GetRenderView();
bool content_blocked_;
int routing_id_;
};
#endif // CONTENT_RENDERER_RENDERER_WEBAPPLICATIONCACHEHOST_IMPL_H_