| OLD | NEW |
| (Empty) |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #include "chrome/common/appcache/appcache_backend_proxy.h" | |
| 6 | |
| 7 #include "chrome/common/render_messages.h" | |
| 8 | |
| 9 void AppCacheBackendProxy::RegisterHost(int host_id) { | |
| 10 sender_->Send(new AppCacheMsg_RegisterHost(host_id)); | |
| 11 } | |
| 12 | |
| 13 void AppCacheBackendProxy::UnregisterHost(int host_id) { | |
| 14 sender_->Send(new AppCacheMsg_UnregisterHost(host_id)); | |
| 15 } | |
| 16 | |
| 17 void AppCacheBackendProxy::SelectCache( | |
| 18 int host_id, | |
| 19 const GURL& document_url, | |
| 20 const int64 cache_document_was_loaded_from, | |
| 21 const GURL& manifest_url) { | |
| 22 sender_->Send(new AppCacheMsg_SelectCache( | |
| 23 host_id, document_url, | |
| 24 cache_document_was_loaded_from, | |
| 25 manifest_url)); | |
| 26 } | |
| 27 | |
| 28 void AppCacheBackendProxy::SelectCacheForWorker( | |
| 29 int host_id, int parent_process_id, int parent_host_id) { | |
| 30 sender_->Send(new AppCacheMsg_SelectCacheForWorker( | |
| 31 host_id, parent_process_id, | |
| 32 parent_host_id)); | |
| 33 } | |
| 34 | |
| 35 void AppCacheBackendProxy::SelectCacheForSharedWorker( | |
| 36 int host_id, int64 appcache_id) { | |
| 37 sender_->Send(new AppCacheMsg_SelectCacheForSharedWorker( | |
| 38 host_id, appcache_id)); | |
| 39 } | |
| 40 | |
| 41 void AppCacheBackendProxy::MarkAsForeignEntry( | |
| 42 int host_id, const GURL& document_url, | |
| 43 int64 cache_document_was_loaded_from) { | |
| 44 sender_->Send(new AppCacheMsg_MarkAsForeignEntry( | |
| 45 host_id, document_url, | |
| 46 cache_document_was_loaded_from)); | |
| 47 } | |
| 48 | |
| 49 appcache::Status AppCacheBackendProxy::GetStatus(int host_id) { | |
| 50 appcache::Status status = appcache::UNCACHED; | |
| 51 sender_->Send(new AppCacheMsg_GetStatus(host_id, &status)); | |
| 52 return status; | |
| 53 } | |
| 54 | |
| 55 bool AppCacheBackendProxy::StartUpdate(int host_id) { | |
| 56 bool result = false; | |
| 57 sender_->Send(new AppCacheMsg_StartUpdate(host_id, &result)); | |
| 58 return result; | |
| 59 } | |
| 60 | |
| 61 bool AppCacheBackendProxy::SwapCache(int host_id) { | |
| 62 bool result = false; | |
| 63 sender_->Send(new AppCacheMsg_SwapCache(host_id, &result)); | |
| 64 return result; | |
| 65 } | |
| 66 | |
| 67 void AppCacheBackendProxy::GetResourceList( | |
| 68 int host_id, std::vector<appcache::AppCacheResourceInfo>* resource_infos) { | |
| 69 sender_->Send(new AppCacheMsg_GetResourceList(host_id, resource_infos)); | |
| 70 } | |
| OLD | NEW |