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

Side by Side Diff: content/child/resource_dispatcher.h

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
« no previous file with comments | « content/child/request_info.h ('k') | content/child/resource_dispatcher.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 // See http://dev.chromium.org/developers/design-documents/multi-process-resourc e-loading 5 // See http://dev.chromium.org/developers/design-documents/multi-process-resourc e-loading
6 6
7 #ifndef CONTENT_CHILD_RESOURCE_DISPATCHER_H_ 7 #ifndef CONTENT_CHILD_RESOURCE_DISPATCHER_H_
8 #define CONTENT_CHILD_RESOURCE_DISPATCHER_H_ 8 #define CONTENT_CHILD_RESOURCE_DISPATCHER_H_
9 9
10 #include <stdint.h>
11
10 #include <deque> 12 #include <deque>
11 #include <string> 13 #include <string>
12 14
13 #include "base/containers/hash_tables.h" 15 #include "base/containers/hash_tables.h"
16 #include "base/macros.h"
14 #include "base/memory/linked_ptr.h" 17 #include "base/memory/linked_ptr.h"
15 #include "base/memory/scoped_ptr.h" 18 #include "base/memory/scoped_ptr.h"
16 #include "base/memory/shared_memory.h" 19 #include "base/memory/shared_memory.h"
17 #include "base/memory/weak_ptr.h" 20 #include "base/memory/weak_ptr.h"
18 #include "base/single_thread_task_runner.h" 21 #include "base/single_thread_task_runner.h"
19 #include "base/time/time.h" 22 #include "base/time/time.h"
20 #include "content/common/content_export.h" 23 #include "content/common/content_export.h"
21 #include "content/public/common/resource_type.h" 24 #include "content/public/common/resource_type.h"
22 #include "ipc/ipc_listener.h" 25 #include "ipc/ipc_listener.h"
23 #include "ipc/ipc_sender.h" 26 #include "ipc/ipc_sender.h"
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after
180 typedef base::hash_map<int, PendingRequestInfo> PendingRequestList; 183 typedef base::hash_map<int, PendingRequestInfo> PendingRequestList;
181 184
182 // Helper to lookup the info based on the request_id. 185 // Helper to lookup the info based on the request_id.
183 // May return NULL if the request as been canceled from the client side. 186 // May return NULL if the request as been canceled from the client side.
184 PendingRequestInfo* GetPendingRequestInfo(int request_id); 187 PendingRequestInfo* GetPendingRequestInfo(int request_id);
185 188
186 // Follows redirect, if any, for the given request. 189 // Follows redirect, if any, for the given request.
187 void FollowPendingRedirect(int request_id, PendingRequestInfo& request_info); 190 void FollowPendingRedirect(int request_id, PendingRequestInfo& request_info);
188 191
189 // Message response handlers, called by the message handler for this process. 192 // Message response handlers, called by the message handler for this process.
190 void OnUploadProgress(int request_id, int64 position, int64 size); 193 void OnUploadProgress(int request_id, int64_t position, int64_t size);
191 void OnReceivedResponse(int request_id, const ResourceResponseHead&); 194 void OnReceivedResponse(int request_id, const ResourceResponseHead&);
192 void OnReceivedCachedMetadata(int request_id, const std::vector<char>& data); 195 void OnReceivedCachedMetadata(int request_id, const std::vector<char>& data);
193 void OnReceivedRedirect(int request_id, 196 void OnReceivedRedirect(int request_id,
194 const net::RedirectInfo& redirect_info, 197 const net::RedirectInfo& redirect_info,
195 const ResourceResponseHead& response_head); 198 const ResourceResponseHead& response_head);
196 void OnSetDataBuffer(int request_id, 199 void OnSetDataBuffer(int request_id,
197 base::SharedMemoryHandle shm_handle, 200 base::SharedMemoryHandle shm_handle,
198 int shm_size, 201 int shm_size,
199 base::ProcessId renderer_pid); 202 base::ProcessId renderer_pid);
200 void OnReceivedDataDebug(int request_id, int data_offset); 203 void OnReceivedDataDebug(int request_id, int data_offset);
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
260 scoped_refptr<ResourceSchedulingFilter> resource_scheduling_filter_; 263 scoped_refptr<ResourceSchedulingFilter> resource_scheduling_filter_;
261 264
262 base::WeakPtrFactory<ResourceDispatcher> weak_factory_; 265 base::WeakPtrFactory<ResourceDispatcher> weak_factory_;
263 266
264 DISALLOW_COPY_AND_ASSIGN(ResourceDispatcher); 267 DISALLOW_COPY_AND_ASSIGN(ResourceDispatcher);
265 }; 268 };
266 269
267 } // namespace content 270 } // namespace content
268 271
269 #endif // CONTENT_CHILD_RESOURCE_DISPATCHER_H_ 272 #endif // CONTENT_CHILD_RESOURCE_DISPATCHER_H_
OLDNEW
« no previous file with comments | « content/child/request_info.h ('k') | content/child/resource_dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698