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 void AppCacheFrontendProxy::OnCacheSelected(int host_id, int64 cache_id , | 9 void AppCacheFrontendProxy::OnCacheSelected(int host_id, int64 cache_id , |
10 appcache::Status status) { | 10 appcache::Status status) { |
(...skipping 11 matching lines...) Expand all Loading... |
22 sender_->Send(new AppCacheMsg_EventRaised(host_ids, event_id)); | 22 sender_->Send(new AppCacheMsg_EventRaised(host_ids, event_id)); |
23 } | 23 } |
24 | 24 |
25 void AppCacheFrontendProxy::OnProgressEventRaised( | 25 void AppCacheFrontendProxy::OnProgressEventRaised( |
26 const std::vector<int>& host_ids, | 26 const std::vector<int>& host_ids, |
27 const GURL& url, int num_total, int num_complete) { | 27 const GURL& url, int num_total, int num_complete) { |
28 sender_->Send(new AppCacheMsg_ProgressEventRaised( | 28 sender_->Send(new AppCacheMsg_ProgressEventRaised( |
29 host_ids, url, num_total, num_complete)); | 29 host_ids, url, num_total, num_complete)); |
30 } | 30 } |
31 | 31 |
| 32 void AppCacheFrontendProxy::OnLogMessage(int host_id, |
| 33 appcache::LogLevel log_level, |
| 34 const std::string& message) { |
| 35 sender_->Send(new AppCacheMsg_LogMessage( |
| 36 host_id, log_level, message)); |
| 37 } |
| 38 |
32 void AppCacheFrontendProxy::OnContentBlocked(int host_id) { | 39 void AppCacheFrontendProxy::OnContentBlocked(int host_id) { |
33 sender_->Send(new AppCacheMsg_ContentBlocked(host_id)); | 40 sender_->Send(new AppCacheMsg_ContentBlocked(host_id)); |
34 } | 41 } |
OLD | NEW |