blob: 65d03ee8d2e63e24c25d281eafa7ce4464bbf6fe [file] [log] [blame]
[email protected]f7867172012-07-11 07:04:071// Copyright (c) 2012 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]f430b5712009-08-21 21:46:317
[email protected]ec5c1922010-07-28 03:14:378#include <string>
[email protected]f430b5712009-08-21 21:46:319#include <vector>
[email protected]0082d7e0d2010-02-27 14:34:1210
[email protected]98d6d4562014-06-25 20:57:5511#include "content/common/appcache_interfaces.h"
[email protected]d84effeb2012-06-25 17:03:1012#include "ipc/ipc_sender.h"
[email protected]f430b5712009-08-21 21:46:3113
[email protected]de551c62012-10-24 20:50:0814namespace content {
15
[email protected]f430b5712009-08-21 21:46:3116// Sends appcache related messages to a child process.
[email protected]98d6d4562014-06-25 20:57:5517class AppCacheFrontendProxy : public AppCacheFrontend {
[email protected]f430b5712009-08-21 21:46:3118 public:
[email protected]d84effeb2012-06-25 17:03:1019 explicit AppCacheFrontendProxy(IPC::Sender* sender);
[email protected]f430b5712009-08-21 21:46:3120
21 // AppCacheFrontend methods
dchengc2282aa2014-10-21 12:07:5822 void OnCacheSelected(int host_id, const AppCacheInfo& info) override;
23 void OnStatusChanged(const std::vector<int>& host_ids,
24 AppCacheStatus status) override;
25 void OnEventRaised(const std::vector<int>& host_ids,
26 AppCacheEventID event_id) override;
27 void OnProgressEventRaised(const std::vector<int>& host_ids,
28 const GURL& url,
29 int num_total,
30 int num_complete) override;
31 void OnErrorEventRaised(const std::vector<int>& host_ids,
32 const AppCacheErrorDetails& details) override;
33 void OnLogMessage(int host_id,
34 AppCacheLogLevel log_level,
35 const std::string& message) override;
36 void OnContentBlocked(int host_id, const GURL& manifest_url) override;
[email protected]f430b5712009-08-21 21:46:3137
38 private:
[email protected]d84effeb2012-06-25 17:03:1039 IPC::Sender* sender_;
[email protected]f430b5712009-08-21 21:46:3140};
41
[email protected]de551c62012-10-24 20:50:0842} // namespace content
43
[email protected]1eaa4f72011-02-24 23:37:3544#endif // CONTENT_BROWSER_APPCACHE_APPCACHE_FRONTEND_PROXY_H_