blob: d16a8f04cd298a4521a17a42fd2a67143d02fa96 [file] [log] [blame]
[email protected]edc64de2011-11-17 20:07:381// Copyright (c) 2011 The Chromium Authors. All rights reserved.
[email protected]f430b5712009-08-21 21:46:312// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
[email protected]1eaa4f72011-02-24 23:37:355#ifndef CONTENT_BROWSER_APPCACHE_APPCACHE_FRONTEND_PROXY_H_
6#define CONTENT_BROWSER_APPCACHE_APPCACHE_FRONTEND_PROXY_H_
[email protected]32b76ef2010-07-26 23:08:247#pragma once
[email protected]f430b5712009-08-21 21:46:318
[email protected]ec5c1922010-07-28 03:14:379#include <string>
[email protected]f430b5712009-08-21 21:46:3110#include <vector>
[email protected]0082d7e0d2010-02-27 14:34:1211
[email protected]d84effeb2012-06-25 17:03:1012#include "ipc/ipc_sender.h"
[email protected]f430b5712009-08-21 21:46:3113#include "webkit/appcache/appcache_interfaces.h"
14
15// Sends appcache related messages to a child process.
16class AppCacheFrontendProxy : public appcache::AppCacheFrontend {
17 public:
[email protected]d84effeb2012-06-25 17:03:1018 explicit AppCacheFrontendProxy(IPC::Sender* sender);
[email protected]f430b5712009-08-21 21:46:3119
20 // AppCacheFrontend methods
[email protected]edc64de2011-11-17 20:07:3821 virtual void OnCacheSelected(int host_id,
22 const appcache::AppCacheInfo& info) OVERRIDE;
[email protected]f430b5712009-08-21 21:46:3123 virtual void OnStatusChanged(const std::vector<int>& host_ids,
[email protected]edc64de2011-11-17 20:07:3824 appcache::Status status) OVERRIDE;
[email protected]f430b5712009-08-21 21:46:3125 virtual void OnEventRaised(const std::vector<int>& host_ids,
[email protected]edc64de2011-11-17 20:07:3826 appcache::EventID event_id) OVERRIDE;
[email protected]697af4a2010-05-25 21:15:3127 virtual void OnProgressEventRaised(const std::vector<int>& host_ids,
28 const GURL& url,
[email protected]edc64de2011-11-17 20:07:3829 int num_total, int num_complete) OVERRIDE;
[email protected]097dde22010-07-14 02:31:5530 virtual void OnErrorEventRaised(const std::vector<int>& host_ids,
[email protected]edc64de2011-11-17 20:07:3831 const std::string& message) OVERRIDE;
[email protected]53c570b2010-06-18 02:02:0532 virtual void OnLogMessage(int host_id, appcache::LogLevel log_level,
[email protected]edc64de2011-11-17 20:07:3833 const std::string& message) OVERRIDE;
[email protected]5c7d5982010-07-12 09:12:5934 virtual void OnContentBlocked(int host_id,
[email protected]edc64de2011-11-17 20:07:3835 const GURL& manifest_url) OVERRIDE;
[email protected]f430b5712009-08-21 21:46:3136
37 private:
[email protected]d84effeb2012-06-25 17:03:1038 IPC::Sender* sender_;
[email protected]f430b5712009-08-21 21:46:3139};
40
[email protected]1eaa4f72011-02-24 23:37:3541#endif // CONTENT_BROWSER_APPCACHE_APPCACHE_FRONTEND_PROXY_H_