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

Side by Side Diff: content/child/shared_memory_received_data_factory.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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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/shared_memory_received_data_factory.h" 5 #include "content/child/shared_memory_received_data_factory.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "base/macros.h"
9 #include "content/common/resource_messages.h" 10 #include "content/common/resource_messages.h"
10 #include "ipc/ipc_sender.h" 11 #include "ipc/ipc_sender.h"
11 12
12 namespace content { 13 namespace content {
13 14
14 class SharedMemoryReceivedDataFactory::SharedMemoryReceivedData final 15 class SharedMemoryReceivedDataFactory::SharedMemoryReceivedData final
15 : public RequestPeer::ReceivedData { 16 : public RequestPeer::ReceivedData {
16 public: 17 public:
17 SharedMemoryReceivedData( 18 SharedMemoryReceivedData(
18 const char* payload, 19 const char* payload,
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 SendAck(count); 123 SendAck(count);
123 } 124 }
124 125
125 void SharedMemoryReceivedDataFactory::SendAck(size_t count) { 126 void SharedMemoryReceivedDataFactory::SendAck(size_t count) {
126 for (size_t i = 0; i < count; ++i) { 127 for (size_t i = 0; i < count; ++i) {
127 message_sender_->Send(new ResourceHostMsg_DataReceived_ACK(request_id_)); 128 message_sender_->Send(new ResourceHostMsg_DataReceived_ACK(request_id_));
128 } 129 }
129 } 130 }
130 131
131 } // namespace content 132 } // namespace content
OLDNEW
« no previous file with comments | « content/child/shared_memory_received_data_factory.h ('k') | content/child/shared_memory_received_data_factory_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698