summaryrefslogtreecommitdiffstats
path: root/chrome/browser/appcache/appcache_frontend_proxy.cc
blob: d81244cc3bb2c0c908992d00b2a1b305f0b4dae5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// 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.

#include "chrome/browser/appcache/appcache_frontend_proxy.h"

#include "chrome/common/render_messages.h"

void AppCacheFrontendProxy::OnCacheSelected(int host_id, int64 cache_id ,
                                            appcache::Status status) {
  sender_->Send(new AppCacheMsg_CacheSelected(host_id, cache_id, status));
}

void AppCacheFrontendProxy::OnStatusChanged(const std::vector<int>& host_ids,
                                            appcache::Status status) {
  sender_->Send(new AppCacheMsg_StatusChanged(host_ids, status));
}

void AppCacheFrontendProxy::OnEventRaised(const std::vector<int>& host_ids,
                                          appcache::EventID event_id) {
  sender_->Send(new AppCacheMsg_EventRaised(host_ids, event_id));
}

void AppCacheFrontendProxy::OnContentBlocked(int host_id) {
  sender_->Send(new AppCacheMsg_ContentBlocked(host_id));
}