| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 "content/browser/appcache/appcache_dispatcher_host.h" | 5 #include "content/browser/appcache/appcache_dispatcher_host.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/bind_helpers.h" | 8 #include "base/bind_helpers.h" |
| 9 #include "content/browser/appcache/chrome_appcache_service.h" | 9 #include "content/browser/appcache/chrome_appcache_service.h" |
| 10 #include "content/common/appcache_messages.h" | 10 #include "content/common/appcache_messages.h" |
| 11 #include "content/public/browser/user_metrics.h" | 11 #include "content/public/browser/user_metrics.h" |
| 12 | 12 |
| 13 using content::BrowserMessageFilter; |
| 13 using content::UserMetricsAction; | 14 using content::UserMetricsAction; |
| 14 | 15 |
| 15 AppCacheDispatcherHost::AppCacheDispatcherHost( | 16 AppCacheDispatcherHost::AppCacheDispatcherHost( |
| 16 ChromeAppCacheService* appcache_service, | 17 ChromeAppCacheService* appcache_service, |
| 17 int process_id) | 18 int process_id) |
| 18 : appcache_service_(appcache_service), | 19 : appcache_service_(appcache_service), |
| 19 ALLOW_THIS_IN_INITIALIZER_LIST(frontend_proxy_(this)), | 20 ALLOW_THIS_IN_INITIALIZER_LIST(frontend_proxy_(this)), |
| 20 process_id_(process_id) { | 21 process_id_(process_id) { |
| 21 } | 22 } |
| 22 | 23 |
| (...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 218 AppCacheHostMsg_StartUpdate::WriteReplyParams(reply_msg, result); | 219 AppCacheHostMsg_StartUpdate::WriteReplyParams(reply_msg, result); |
| 219 Send(pending_reply_msg_.release()); | 220 Send(pending_reply_msg_.release()); |
| 220 } | 221 } |
| 221 | 222 |
| 222 void AppCacheDispatcherHost::SwapCacheCallback(bool result, void* param) { | 223 void AppCacheDispatcherHost::SwapCacheCallback(bool result, void* param) { |
| 223 IPC::Message* reply_msg = reinterpret_cast<IPC::Message*>(param); | 224 IPC::Message* reply_msg = reinterpret_cast<IPC::Message*>(param); |
| 224 DCHECK_EQ(pending_reply_msg_.get(), reply_msg); | 225 DCHECK_EQ(pending_reply_msg_.get(), reply_msg); |
| 225 AppCacheHostMsg_SwapCache::WriteReplyParams(reply_msg, result); | 226 AppCacheHostMsg_SwapCache::WriteReplyParams(reply_msg, result); |
| 226 Send(pending_reply_msg_.release()); | 227 Send(pending_reply_msg_.release()); |
| 227 } | 228 } |
| OLD | NEW |