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

Side by Side Diff: content/child/threaded_data_provider.cc

Issue 1159553007: Move Tuple to base namespace. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 6 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/resource_dispatcher_unittest.cc ('k') | content/common/gpu/gpu_channel.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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/threaded_data_provider.h" 5 #include "content/child/threaded_data_provider.h"
6 6
7 #include "base/location.h" 7 #include "base/location.h"
8 #include "base/single_thread_task_runner.h" 8 #include "base/single_thread_task_runner.h"
9 #include "components/scheduler/child/webthread_impl_for_worker_scheduler.h" 9 #include "components/scheduler/child/webthread_impl_for_worker_scheduler.h"
10 #include "content/child/child_process.h" 10 #include "content/child/child_process.h"
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 90
91 PickleIterator iter(message); 91 PickleIterator iter(message);
92 if (!iter.ReadInt(&request_id)) { 92 if (!iter.ReadInt(&request_id)) {
93 NOTREACHED() << "malformed resource message"; 93 NOTREACHED() << "malformed resource message";
94 return true; 94 return true;
95 } 95 }
96 96
97 if (request_id == request_id_) { 97 if (request_id == request_id_) {
98 ResourceMsg_DataReceived::Schema::Param arg; 98 ResourceMsg_DataReceived::Schema::Param arg;
99 if (ResourceMsg_DataReceived::Read(&message, &arg)) { 99 if (ResourceMsg_DataReceived::Read(&message, &arg)) {
100 OnReceivedData(get<0>(arg), get<1>(arg), get<2>(arg), get<3>(arg)); 100 OnReceivedData(base::get<0>(arg), base::get<1>(arg),
101 base::get<2>(arg), base::get<3>(arg));
101 return true; 102 return true;
102 } 103 }
103 } 104 }
104 105
105 return false; 106 return false;
106 } 107 }
107 108
108 void DataProviderMessageFilter::OnReceivedData(int request_id, 109 void DataProviderMessageFilter::OnReceivedData(int request_id,
109 int data_offset, 110 int data_offset,
110 int data_length, 111 int data_length,
(...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after
341 DCHECK(threaded_data_receiver_->needsMainthreadDataCopy()); 342 DCHECK(threaded_data_receiver_->needsMainthreadDataCopy());
342 DCHECK_EQ((size_t)data_length, data_copy->size()); 343 DCHECK_EQ((size_t)data_length, data_copy->size());
343 } 344 }
344 345
345 threaded_data_receiver_->acceptMainthreadDataNotification( 346 threaded_data_receiver_->acceptMainthreadDataNotification(
346 (data_copy && !data_copy->empty()) ? &data_copy->front() : NULL, 347 (data_copy && !data_copy->empty()) ? &data_copy->front() : NULL,
347 data_length, encoded_data_length); 348 data_length, encoded_data_length);
348 } 349 }
349 350
350 } // namespace content 351 } // namespace content
OLDNEW
« no previous file with comments | « content/child/resource_dispatcher_unittest.cc ('k') | content/common/gpu/gpu_channel.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698