OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "chrome/browser/appcache/appcache_frontend_proxy.h" | 5 #include "chrome/browser/appcache/appcache_frontend_proxy.h" |
6 | 6 |
7 #include "chrome/common/render_messages.h" | 7 #include "chrome/common/render_messages.h" |
8 | 8 |
| 9 AppCacheFrontendProxy::AppCacheFrontendProxy(IPC::Message::Sender* sender) |
| 10 : sender_(sender) { |
| 11 } |
| 12 |
9 void AppCacheFrontendProxy::OnCacheSelected( | 13 void AppCacheFrontendProxy::OnCacheSelected( |
10 int host_id, const appcache::AppCacheInfo& info) { | 14 int host_id, const appcache::AppCacheInfo& info) { |
11 sender_->Send(new AppCacheMsg_CacheSelected(host_id, info)); | 15 sender_->Send(new AppCacheMsg_CacheSelected(host_id, info)); |
12 } | 16 } |
13 | 17 |
14 void AppCacheFrontendProxy::OnStatusChanged(const std::vector<int>& host_ids, | 18 void AppCacheFrontendProxy::OnStatusChanged(const std::vector<int>& host_ids, |
15 appcache::Status status) { | 19 appcache::Status status) { |
16 sender_->Send(new AppCacheMsg_StatusChanged(host_ids, status)); | 20 sender_->Send(new AppCacheMsg_StatusChanged(host_ids, status)); |
17 } | 21 } |
18 | 22 |
(...skipping 20 matching lines...) Expand all Loading... |
39 void AppCacheFrontendProxy::OnLogMessage(int host_id, | 43 void AppCacheFrontendProxy::OnLogMessage(int host_id, |
40 appcache::LogLevel log_level, | 44 appcache::LogLevel log_level, |
41 const std::string& message) { | 45 const std::string& message) { |
42 sender_->Send(new AppCacheMsg_LogMessage(host_id, log_level, message)); | 46 sender_->Send(new AppCacheMsg_LogMessage(host_id, log_level, message)); |
43 } | 47 } |
44 | 48 |
45 void AppCacheFrontendProxy::OnContentBlocked(int host_id, | 49 void AppCacheFrontendProxy::OnContentBlocked(int host_id, |
46 const GURL& manifest_url) { | 50 const GURL& manifest_url) { |
47 sender_->Send(new AppCacheMsg_ContentBlocked(host_id, manifest_url)); | 51 sender_->Send(new AppCacheMsg_ContentBlocked(host_id, manifest_url)); |
48 } | 52 } |
OLD | NEW |