Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(251)

Side by Side Diff: content/child/appcache/appcache_backend_proxy.cc

Issue 1544273002: Switch to standard integer types in content/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 12 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/child/appcache/appcache_backend_proxy.h" 5 #include "content/child/appcache/appcache_backend_proxy.h"
6 6
7 #include "content/common/appcache_messages.h" 7 #include "content/common/appcache_messages.h"
8 8
9 namespace content { 9 namespace content {
10 10
11 void AppCacheBackendProxy::RegisterHost(int host_id) { 11 void AppCacheBackendProxy::RegisterHost(int host_id) {
12 sender_->Send(new AppCacheHostMsg_RegisterHost(host_id)); 12 sender_->Send(new AppCacheHostMsg_RegisterHost(host_id));
13 } 13 }
14 14
15 void AppCacheBackendProxy::UnregisterHost(int host_id) { 15 void AppCacheBackendProxy::UnregisterHost(int host_id) {
16 sender_->Send(new AppCacheHostMsg_UnregisterHost(host_id)); 16 sender_->Send(new AppCacheHostMsg_UnregisterHost(host_id));
17 } 17 }
18 18
19 void AppCacheBackendProxy::SetSpawningHostId(int host_id, 19 void AppCacheBackendProxy::SetSpawningHostId(int host_id,
20 int spawning_host_id) { 20 int spawning_host_id) {
21 sender_->Send(new AppCacheHostMsg_SetSpawningHostId( 21 sender_->Send(new AppCacheHostMsg_SetSpawningHostId(
22 host_id, spawning_host_id)); 22 host_id, spawning_host_id));
23 } 23 }
24 24
25 void AppCacheBackendProxy::SelectCache( 25 void AppCacheBackendProxy::SelectCache(
26 int host_id, 26 int host_id,
27 const GURL& document_url, 27 const GURL& document_url,
28 const int64 cache_document_was_loaded_from, 28 const int64_t cache_document_was_loaded_from,
29 const GURL& manifest_url) { 29 const GURL& manifest_url) {
30 sender_->Send(new AppCacheHostMsg_SelectCache( 30 sender_->Send(new AppCacheHostMsg_SelectCache(
31 host_id, document_url, 31 host_id, document_url,
32 cache_document_was_loaded_from, 32 cache_document_was_loaded_from,
33 manifest_url)); 33 manifest_url));
34 } 34 }
35 35
36 void AppCacheBackendProxy::SelectCacheForWorker( 36 void AppCacheBackendProxy::SelectCacheForWorker(
37 int host_id, int parent_process_id, int parent_host_id) { 37 int host_id, int parent_process_id, int parent_host_id) {
38 sender_->Send(new AppCacheHostMsg_SelectCacheForWorker( 38 sender_->Send(new AppCacheHostMsg_SelectCacheForWorker(
39 host_id, parent_process_id, 39 host_id, parent_process_id,
40 parent_host_id)); 40 parent_host_id));
41 } 41 }
42 42
43 void AppCacheBackendProxy::SelectCacheForSharedWorker( 43 void AppCacheBackendProxy::SelectCacheForSharedWorker(int host_id,
44 int host_id, int64 appcache_id) { 44 int64_t appcache_id) {
45 sender_->Send(new AppCacheHostMsg_SelectCacheForSharedWorker( 45 sender_->Send(new AppCacheHostMsg_SelectCacheForSharedWorker(
46 host_id, appcache_id)); 46 host_id, appcache_id));
47 } 47 }
48 48
49 void AppCacheBackendProxy::MarkAsForeignEntry( 49 void AppCacheBackendProxy::MarkAsForeignEntry(
50 int host_id, const GURL& document_url, 50 int host_id,
51 int64 cache_document_was_loaded_from) { 51 const GURL& document_url,
52 int64_t cache_document_was_loaded_from) {
52 sender_->Send(new AppCacheHostMsg_MarkAsForeignEntry( 53 sender_->Send(new AppCacheHostMsg_MarkAsForeignEntry(
53 host_id, document_url, 54 host_id, document_url,
54 cache_document_was_loaded_from)); 55 cache_document_was_loaded_from));
55 } 56 }
56 57
57 AppCacheStatus AppCacheBackendProxy::GetStatus(int host_id) { 58 AppCacheStatus AppCacheBackendProxy::GetStatus(int host_id) {
58 AppCacheStatus status = APPCACHE_STATUS_UNCACHED; 59 AppCacheStatus status = APPCACHE_STATUS_UNCACHED;
59 sender_->Send(new AppCacheHostMsg_GetStatus(host_id, &status)); 60 sender_->Send(new AppCacheHostMsg_GetStatus(host_id, &status));
60 return status; 61 return status;
61 } 62 }
62 63
63 bool AppCacheBackendProxy::StartUpdate(int host_id) { 64 bool AppCacheBackendProxy::StartUpdate(int host_id) {
64 bool result = false; 65 bool result = false;
65 sender_->Send(new AppCacheHostMsg_StartUpdate(host_id, &result)); 66 sender_->Send(new AppCacheHostMsg_StartUpdate(host_id, &result));
66 return result; 67 return result;
67 } 68 }
68 69
69 bool AppCacheBackendProxy::SwapCache(int host_id) { 70 bool AppCacheBackendProxy::SwapCache(int host_id) {
70 bool result = false; 71 bool result = false;
71 sender_->Send(new AppCacheHostMsg_SwapCache(host_id, &result)); 72 sender_->Send(new AppCacheHostMsg_SwapCache(host_id, &result));
72 return result; 73 return result;
73 } 74 }
74 75
75 void AppCacheBackendProxy::GetResourceList( 76 void AppCacheBackendProxy::GetResourceList(
76 int host_id, std::vector<AppCacheResourceInfo>* resource_infos) { 77 int host_id, std::vector<AppCacheResourceInfo>* resource_infos) {
77 sender_->Send(new AppCacheHostMsg_GetResourceList(host_id, resource_infos)); 78 sender_->Send(new AppCacheHostMsg_GetResourceList(host_id, resource_infos));
78 } 79 }
79 80
80 } // namespace content 81 } // namespace content
OLDNEW
« no previous file with comments | « content/child/appcache/appcache_backend_proxy.h ('k') | content/child/appcache/web_application_cache_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698