packet 137 chrome/browser/local_discovery/privet_local_printer_lister_unittest.cc void SimulateReceive(const uint8* packet, size_t size) { packet 138 chrome/browser/local_discovery/privet_local_printer_lister_unittest.cc test_service_discovery_client_->SimulateReceive(packet, size); packet 53 chrome/browser/local_discovery/test_service_discovery_client.cc void TestServiceDiscoveryClient::SimulateReceive(const uint8* packet, packet 55 chrome/browser/local_discovery/test_service_discovery_client.cc mock_socket_factory_.SimulateReceive(packet, size); packet 35 chrome/browser/local_discovery/test_service_discovery_client.h void SimulateReceive(const uint8* packet, int size); packet 54 chrome/browser/media/cast_transport_host_filter.cc scoped_ptr<media::cast::transport::Packet> packet) { packet 55 chrome/browser/media/cast_transport_host_filter.cc Send(new CastMsg_ReceivedPacket(channel_id, *packet)); packet 29 chrome/browser/net/probe_message.h std::string MakeEncodedPacket(const ProbePacket& packet) const; packet 35 chrome/browser/net/probe_message.h bool ParseInput(const std::string& input, ProbePacket* packet) const; packet 257 chrome/browser/usb/usb_device_handle.cc PlatformUsbIsoPacketDescriptor packet = &handle->iso_packet_desc[i]; packet 258 chrome/browser/usb/usb_device_handle.cc if (packet->actual_length > 0) { packet 262 chrome/browser/usb/usb_device_handle.cc CHECK(packet_buffer_start + packet->actual_length <= packet 266 chrome/browser/usb/usb_device_handle.cc packet->actual_length); packet 268 chrome/browser/usb/usb_device_handle.cc actual_length += packet->actual_length; packet 271 chrome/browser/usb/usb_device_handle.cc packet_buffer_start += packet->length; packet 81 chrome/renderer/media/cast_ipc_dispatcher.cc const media::cast::transport::Packet& packet) { packet 84 chrome/renderer/media/cast_ipc_dispatcher.cc sender->OnReceivedPacket(packet); packet 39 chrome/renderer/media/cast_ipc_dispatcher.h void OnReceivedPacket(int32 channel_id, const media::cast::Packet& packet); packet 103 chrome/renderer/media/cast_transport_sender_ipc.cc const media::cast::Packet& packet) { packet 107 chrome/renderer/media/cast_transport_sender_ipc.cc new media::cast::transport::Packet(packet)); packet 60 chrome/renderer/media/cast_transport_sender_ipc.h void OnReceivedPacket(const media::cast::transport::Packet& packet); packet 9 cloud_print/gcp20/prototype/dns_packet_parser.cc DnsPacketParser::DnsPacketParser(const char* packet, size_t length) packet 10 cloud_print/gcp20/prototype/dns_packet_parser.cc : packet_(packet), packet 12 cloud_print/gcp20/prototype/dns_packet_parser.cc record_parser_(packet, length, sizeof(header_)) { packet 13 cloud_print/gcp20/prototype/dns_packet_parser.cc base::BigEndianReader reader(packet, length); packet 28 cloud_print/gcp20/prototype/dns_packet_parser.h DnsPacketParser(const char* packet, size_t length); packet 210 content/browser/renderer_host/p2p/socket_host.cc char* packet, int length, int* rtp_start_pos, int* rtp_packet_length) { packet 212 content/browser/renderer_host/p2p/socket_host.cc if (IsTurnChannelData(packet)) { packet 228 content/browser/renderer_host/p2p/socket_host.cc rtp_length = talk_base::GetBE16(&packet[2]); packet 232 content/browser/renderer_host/p2p/socket_host.cc } else if (IsTurnSendIndicationPacket(packet)) { packet 238 content/browser/renderer_host/p2p/socket_host.cc int stun_msg_len = talk_base::GetBE16(&packet[2]); packet 246 content/browser/renderer_host/p2p/socket_host.cc char* start = packet + rtp_begin; packet 248 content/browser/renderer_host/p2p/socket_host.cc while ((packet + rtp_begin) - start < stun_msg_len) { packet 264 content/browser/renderer_host/p2p/socket_host.cc attr_type = talk_base::GetBE16(&packet[rtp_begin]); packet 266 content/browser/renderer_host/p2p/socket_host.cc &packet[rtp_begin + sizeof(attr_type)]); packet 305 content/browser/renderer_host/p2p/socket_host.cc IsRtpPacket(packet + rtp_begin, rtp_length) && packet 306 content/browser/renderer_host/p2p/socket_host.cc ValidateRtpHeader(packet + rtp_begin, rtp_length)) { packet 172 content/browser/renderer_host/p2p/socket_host_tcp_unittest.cc std::vector<char> packet; packet 173 content/browser/renderer_host/p2p/socket_host_tcp_unittest.cc CreateRandomPacket(&packet); packet 174 content/browser/renderer_host/p2p/socket_host_tcp_unittest.cc socket_host_->Send(dest_.ip_address, packet, options, 0); packet 199 content/browser/renderer_host/p2p/socket_host_tcp_unittest.cc std::vector<char> packet; packet 200 content/browser/renderer_host/p2p/socket_host_tcp_unittest.cc CreateRandomPacket(&packet); packet 201 content/browser/renderer_host/p2p/socket_host_tcp_unittest.cc socket_host_->Send(dest_.ip_address, packet, options, 0); packet 204 content/browser/renderer_host/p2p/socket_host_tcp_unittest.cc expected_data.append(IntToSize(packet.size())); packet 205 content/browser/renderer_host/p2p/socket_host_tcp_unittest.cc expected_data.append(packet.begin(), packet.end()); packet 260 content/browser/renderer_host/p2p/socket_host_tcp_unittest.cc std::vector<char> packet; packet 261 content/browser/renderer_host/p2p/socket_host_tcp_unittest.cc CreateRandomPacket(&packet); packet 263 content/browser/renderer_host/p2p/socket_host_tcp_unittest.cc *reinterpret_cast<uint16*>(&*packet.begin()) = base::HostToNet16(0x8000); packet 264 content/browser/renderer_host/p2p/socket_host_tcp_unittest.cc socket_host_->Send(dest_.ip_address, packet, options, 0); packet 267 content/browser/renderer_host/p2p/socket_host_tcp_unittest.cc expected_data.append(IntToSize(packet.size())); packet 268 content/browser/renderer_host/p2p/socket_host_tcp_unittest.cc expected_data.append(packet.begin(), packet.end()); packet 355 content/browser/renderer_host/p2p/socket_host_tcp_unittest.cc std::vector<char> packet; packet 356 content/browser/renderer_host/p2p/socket_host_tcp_unittest.cc CreateRandomPacket(&packet); packet 357 content/browser/renderer_host/p2p/socket_host_tcp_unittest.cc socket_host_->Send(dest_.ip_address, packet, options, 0); packet 175 content/browser/renderer_host/p2p/socket_host_test_utils.cc void CreateRandomPacket(std::vector<char>* packet) { packet 177 content/browser/renderer_host/p2p/socket_host_test_utils.cc packet->resize(size); packet 179 content/browser/renderer_host/p2p/socket_host_test_utils.cc (*packet)[i] = rand() % 256; packet 183 content/browser/renderer_host/p2p/socket_host_test_utils.cc (*packet)[0] = (*packet)[0] | 0x80; packet 186 content/browser/renderer_host/p2p/socket_host_test_utils.cc static void CreateStunPacket(std::vector<char>* packet, uint16 type) { packet 187 content/browser/renderer_host/p2p/socket_host_test_utils.cc CreateRandomPacket(packet); packet 188 content/browser/renderer_host/p2p/socket_host_test_utils.cc *reinterpret_cast<uint16*>(&*packet->begin()) = base::HostToNet16(type); packet 189 content/browser/renderer_host/p2p/socket_host_test_utils.cc *reinterpret_cast<uint16*>(&*packet->begin() + 2) = packet 190 content/browser/renderer_host/p2p/socket_host_test_utils.cc base::HostToNet16(packet->size() - kStunHeaderSize); packet 191 content/browser/renderer_host/p2p/socket_host_test_utils.cc *reinterpret_cast<uint32*>(&*packet->begin() + 4) = packet 195 content/browser/renderer_host/p2p/socket_host_test_utils.cc void CreateStunRequest(std::vector<char>* packet) { packet 196 content/browser/renderer_host/p2p/socket_host_test_utils.cc CreateStunPacket(packet, kStunBindingRequest); packet 199 content/browser/renderer_host/p2p/socket_host_test_utils.cc void CreateStunResponse(std::vector<char>* packet) { packet 200 content/browser/renderer_host/p2p/socket_host_test_utils.cc CreateStunPacket(packet, kStunBindingResponse); packet 203 content/browser/renderer_host/p2p/socket_host_test_utils.cc void CreateStunError(std::vector<char>* packet) { packet 204 content/browser/renderer_host/p2p/socket_host_test_utils.cc CreateStunPacket(packet, kStunBindingError); packet 87 content/browser/renderer_host/p2p/socket_host_test_utils.h void CreateRandomPacket(std::vector<char>* packet); packet 88 content/browser/renderer_host/p2p/socket_host_test_utils.h void CreateStunRequest(std::vector<char>* packet); packet 89 content/browser/renderer_host/p2p/socket_host_test_utils.h void CreateStunResponse(std::vector<char>* packet); packet 90 content/browser/renderer_host/p2p/socket_host_test_utils.h void CreateStunError(std::vector<char>* packet); packet 212 content/browser/renderer_host/p2p/socket_host_udp.cc PendingPacket packet(to, data, options, packet_id); packet 213 content/browser/renderer_host/p2p/socket_host_udp.cc DoSend(packet); packet 217 content/browser/renderer_host/p2p/socket_host_udp.cc void P2PSocketHostUdp::DoSend(const PendingPacket& packet) { packet 218 content/browser/renderer_host/p2p/socket_host_udp.cc TRACE_EVENT_ASYNC_STEP_INTO1("p2p", "Send", packet.id, "UdpAsyncSendTo", packet 219 content/browser/renderer_host/p2p/socket_host_udp.cc "size", packet.size); packet 225 content/browser/renderer_host/p2p/socket_host_udp.cc static_cast<net::DiffServCodePoint>(packet.packet_options.dscp); packet 239 content/browser/renderer_host/p2p/socket_host_udp.cc packet.data->data(), packet.size, packet.packet_options, 0); packet 241 content/browser/renderer_host/p2p/socket_host_udp.cc packet.data.get(), packet 242 content/browser/renderer_host/p2p/socket_host_udp.cc packet.size, packet 243 content/browser/renderer_host/p2p/socket_host_udp.cc packet.to, packet 244 content/browser/renderer_host/p2p/socket_host_udp.cc base::Bind(&P2PSocketHostUdp::OnSend, base::Unretained(this), packet.id)); packet 251 content/browser/renderer_host/p2p/socket_host_udp.cc packet.data.get(), packet 252 content/browser/renderer_host/p2p/socket_host_udp.cc packet.size, packet 253 content/browser/renderer_host/p2p/socket_host_udp.cc packet.to, packet 255 content/browser/renderer_host/p2p/socket_host_udp.cc packet.id)); packet 261 content/browser/renderer_host/p2p/socket_host_udp.cc HandleSendResult(packet.id, result); packet 68 content/browser/renderer_host/p2p/socket_host_udp.h void DoSend(const PendingPacket& packet); packet 251 content/browser/renderer_host/p2p/socket_host_udp_unittest.cc std::vector<char> packet; packet 252 content/browser/renderer_host/p2p/socket_host_udp_unittest.cc CreateRandomPacket(&packet); packet 253 content/browser/renderer_host/p2p/socket_host_udp_unittest.cc socket_host_->Send(dest1_, packet, options, 0); packet 275 content/browser/renderer_host/p2p/socket_host_udp_unittest.cc std::vector<char> packet; packet 276 content/browser/renderer_host/p2p/socket_host_udp_unittest.cc CreateRandomPacket(&packet); packet 277 content/browser/renderer_host/p2p/socket_host_udp_unittest.cc socket_host_->Send(dest1_, packet, options, 0); packet 300 content/browser/renderer_host/p2p/socket_host_udp_unittest.cc std::vector<char> packet; packet 301 content/browser/renderer_host/p2p/socket_host_udp_unittest.cc CreateRandomPacket(&packet); packet 302 content/browser/renderer_host/p2p/socket_host_udp_unittest.cc socket_host_->Send(dest1_, packet, options, 0); packet 321 content/browser/renderer_host/p2p/socket_host_udp_unittest.cc std::vector<char> packet; packet 322 content/browser/renderer_host/p2p/socket_host_udp_unittest.cc CreateRandomPacket(&packet); packet 326 content/browser/renderer_host/p2p/socket_host_udp_unittest.cc socket_host_->Send(dest2_, packet, options, 0); packet 709 crypto/openpgp_symmetric_encryption.cc ByteString packet; packet 710 crypto/openpgp_symmetric_encryption.cc packet.push_back(1); // version 1 packet 729 crypto/openpgp_symmetric_encryption.cc packet += ByteString(prefix, sizeof(prefix)); packet 760 crypto/openpgp_symmetric_encryption.cc packet.push_back(c); packet 763 crypto/openpgp_symmetric_encryption.cc return MakePacket(kSymmetricallyEncryptedTag, packet); packet 410 google_apis/gcm/engine/mcs_client.cc MCSPacketInternal packet = PopMessageForSend(); packet 411 google_apis/gcm/engine/mcs_client.cc if (GetTTL(*packet->protobuf) > 0 && packet 412 google_apis/gcm/engine/mcs_client.cc !HasTTLExpired(*packet->protobuf, clock_)) { packet 413 google_apis/gcm/engine/mcs_client.cc new_to_send.push_back(packet); packet 417 google_apis/gcm/engine/mcs_client.cc if (!packet->persistent_id.empty()) packet 418 google_apis/gcm/engine/mcs_client.cc expired_ttl_ids.push_back(packet->persistent_id); packet 419 google_apis/gcm/engine/mcs_client.cc NotifyMessageSendStatus(*packet->protobuf, TTL_EXCEEDED); packet 462 google_apis/gcm/engine/mcs_client.cc MCSPacketInternal packet = PopMessageForSend(); packet 463 google_apis/gcm/engine/mcs_client.cc if (HasTTLExpired(*packet->protobuf, clock_)) { packet 464 google_apis/gcm/engine/mcs_client.cc DCHECK(!packet->persistent_id.empty()); packet 465 google_apis/gcm/engine/mcs_client.cc DVLOG(1) << "Dropping expired message " << packet->persistent_id << "."; packet 466 google_apis/gcm/engine/mcs_client.cc NotifyMessageSendStatus(*packet->protobuf, TTL_EXCEEDED); packet 468 google_apis/gcm/engine/mcs_client.cc packet->persistent_id, packet 478 google_apis/gcm/engine/mcs_client.cc if (!packet->persistent_id.empty()) packet 479 google_apis/gcm/engine/mcs_client.cc to_resend_.push_back(packet); packet 480 google_apis/gcm/engine/mcs_client.cc SendPacketToWire(packet.get()); packet 873 google_apis/gcm/engine/mcs_client.cc MCSPacketInternal packet = to_send_.front(); packet 876 google_apis/gcm/engine/mcs_client.cc if (packet->tag == kDataMessageStanzaTag) { packet 878 google_apis/gcm/engine/mcs_client.cc reinterpret_cast<mcs_proto::DataMessageStanza*>(packet->protobuf.get()); packet 884 google_apis/gcm/engine/mcs_client.cc return packet; packet 360 media/audio/alsa/alsa_output.cc scoped_refptr<media::DataBuffer> packet = packet 382 media/audio/alsa/alsa_output.cc frames_filled, bytes_per_sample_, packet->writable_data()); packet 385 media/audio/alsa/alsa_output.cc packet->set_data_size(packet_size); packet 387 media/audio/alsa/alsa_output.cc buffer_->Append(packet); packet 58 media/base/media_file_checker.cc AVPacket packet; packet 66 media/base/media_file_checker.cc result = av_read_frame(glue.format_context(), &packet); packet 69 media/base/media_file_checker.cc result = av_dup_packet(&packet); packet 74 media/base/media_file_checker.cc stream_contexts.find(packet.stream_index); packet 76 media/base/media_file_checker.cc av_free_packet(&packet); packet 85 media/base/media_file_checker.cc AVPacket temp_packet = packet; packet 98 media/base/media_file_checker.cc &packet); packet 100 media/base/media_file_checker.cc av_free_packet(&packet); packet 250 media/cast/audio_receiver/audio_receiver.cc void AudioReceiver::IncomingPacket(scoped_ptr<Packet> packet) { packet 252 media/cast/audio_receiver/audio_receiver.cc bool rtcp_packet = Rtcp::IsRtcpPacket(&packet->front(), packet->size()); packet 254 media/cast/audio_receiver/audio_receiver.cc ReceivedPacket(&packet->front(), packet->size()); packet 256 media/cast/audio_receiver/audio_receiver.cc rtcp_.IncomingRtcpPacket(&packet->front(), packet->size()); packet 73 media/cast/audio_receiver/audio_receiver.h void IncomingPacket(scoped_ptr<Packet> packet); packet 103 media/cast/audio_sender/audio_sender.cc void AudioSender::IncomingRtcpPacket(scoped_ptr<Packet> packet) { packet 105 media/cast/audio_sender/audio_sender.cc rtcp_.IncomingRtcpPacket(&packet->front(), packet->size()); packet 45 media/cast/audio_sender/audio_sender.h void IncomingRtcpPacket(scoped_ptr<Packet> packet); packet 31 media/cast/audio_sender/audio_sender_unittest.cc virtual bool SendPacket(const Packet& packet) OVERRIDE { packet 32 media/cast/audio_sender/audio_sender_unittest.cc if (Rtcp::IsRtcpPacket(&packet[0], packet.size())) { packet 108 media/cast/cast_receiver_impl.cc void CastReceiverImpl::ReceivedPacket(scoped_ptr<Packet> packet) { packet 109 media/cast/cast_receiver_impl.cc const uint8_t* data = &packet->front(); packet 110 media/cast/cast_receiver_impl.cc size_t length = packet->size(); packet 130 media/cast/cast_receiver_impl.cc base::Passed(&packet))); packet 136 media/cast/cast_receiver_impl.cc base::Passed(&packet))); packet 39 media/cast/cast_receiver_impl.h void ReceivedPacket(scoped_ptr<Packet> packet); packet 161 media/cast/cast_sender_impl.cc void CastSenderImpl::ReceivedPacket(scoped_ptr<Packet> packet) { packet 163 media/cast/cast_sender_impl.cc size_t length = packet->size(); packet 164 media/cast/cast_sender_impl.cc const uint8_t* data = &packet->front(); packet 180 media/cast/cast_sender_impl.cc base::Passed(&packet))); packet 190 media/cast/cast_sender_impl.cc base::Passed(&packet))); packet 48 media/cast/cast_sender_impl.h void ReceivedPacket(scoped_ptr<Packet> packet); packet 47 media/cast/logging/logging_impl.cc const Packet& packet) { packet 53 media/cast/logging/logging_impl.cc const uint8* packet_data = &packet[0]; packet 69 media/cast/logging/logging_impl.cc packet.size()); packet 42 media/cast/logging/logging_impl.h const Packet& packet); packet 191 media/cast/rtcp/rtcp.cc bool Rtcp::IsRtcpPacket(const uint8* packet, size_t length) { packet 195 media/cast/rtcp/rtcp.cc uint8 packet_type = packet[1]; packet 202 media/cast/rtcp/rtcp_receiver_unittest.cc void InjectRtcpPacket(const uint8* packet, uint16 length) { packet 203 media/cast/rtcp/rtcp_receiver_unittest.cc RtcpParser rtcp_parser(packet, length); packet 212 media/cast/rtcp/rtcp_sender.cc Packet packet; packet 213 media/cast/rtcp/rtcp_sender.cc packet.reserve(kMaxIpPacketSize); packet 216 media/cast/rtcp/rtcp_sender.cc BuildRR(report_block, &packet); packet 218 media/cast/rtcp/rtcp_sender.cc BuildSdec(&packet); packet 222 media/cast/rtcp/rtcp_sender.cc BuildBye(&packet); packet 226 media/cast/rtcp/rtcp_sender.cc BuildRrtr(rrtr, &packet); packet 230 media/cast/rtcp/rtcp_sender.cc BuildCast(cast_message, target_delay_ms, &packet); packet 234 media/cast/rtcp/rtcp_sender.cc BuildReceiverLog(*rtcp_events, &packet); packet 237 media/cast/rtcp/rtcp_sender.cc if (packet.empty()) packet 240 media/cast/rtcp/rtcp_sender.cc transport_->SendRtcpPacket(packet); packet 244 media/cast/rtcp/rtcp_sender.cc Packet* packet) const { packet 245 media/cast/rtcp/rtcp_sender.cc size_t start_size = packet->size(); packet 251 media/cast/rtcp/rtcp_sender.cc packet->resize(start_size + 8); packet 254 media/cast/rtcp/rtcp_sender.cc reinterpret_cast<char*>(&((*packet)[start_size])), 8); packet 261 media/cast/rtcp/rtcp_sender.cc AddReportBlocks(*report_block, packet); // Adds 24 bytes. packet 266 media/cast/rtcp/rtcp_sender.cc Packet* packet) const { packet 267 media/cast/rtcp/rtcp_sender.cc size_t start_size = packet->size(); packet 272 media/cast/rtcp/rtcp_sender.cc packet->resize(start_size + 24); packet 275 media/cast/rtcp/rtcp_sender.cc reinterpret_cast<char*>(&((*packet)[start_size])), 24); packet 295 media/cast/rtcp/rtcp_sender.cc void RtcpSender::BuildSdec(Packet* packet) const { packet 296 media/cast/rtcp/rtcp_sender.cc size_t start_size = packet->size(); packet 303 media/cast/rtcp/rtcp_sender.cc packet->resize(start_size + 10); packet 306 media/cast/rtcp/rtcp_sender.cc reinterpret_cast<char*>(&((*packet)[start_size])), 10); packet 319 media/cast/rtcp/rtcp_sender.cc packet->insert( packet 320 media/cast/rtcp/rtcp_sender.cc packet->end(), c_name_.c_str(), c_name_.c_str() + c_name_.length()); packet 325 media/cast/rtcp/rtcp_sender.cc if ((packet->size() % 4) == 0) { packet 327 media/cast/rtcp/rtcp_sender.cc packet->push_back(0); packet 329 media/cast/rtcp/rtcp_sender.cc while ((packet->size() % 4) != 0) { packet 331 media/cast/rtcp/rtcp_sender.cc packet->push_back(0); packet 337 media/cast/rtcp/rtcp_sender.cc (*packet)[sdes_length_position] = buffer_length; packet 340 media/cast/rtcp/rtcp_sender.cc void RtcpSender::BuildPli(uint32 remote_ssrc, Packet* packet) const { packet 341 media/cast/rtcp/rtcp_sender.cc size_t start_size = packet->size(); packet 346 media/cast/rtcp/rtcp_sender.cc packet->resize(start_size + 12); packet 349 media/cast/rtcp/rtcp_sender.cc reinterpret_cast<char*>(&((*packet)[start_size])), 12); packet 367 media/cast/rtcp/rtcp_sender.cc void RtcpSender::BuildRpsi(const RtcpRpsiMessage* rpsi, Packet* packet) const { packet 368 media/cast/rtcp/rtcp_sender.cc size_t start_size = packet->size(); packet 373 media/cast/rtcp/rtcp_sender.cc packet->resize(start_size + 24); packet 376 media/cast/rtcp/rtcp_sender.cc reinterpret_cast<char*>(&((*packet)[start_size])), 24); packet 421 media/cast/rtcp/rtcp_sender.cc void RtcpSender::BuildRemb(const RtcpRembMessage* remb, Packet* packet) const { packet 422 media/cast/rtcp/rtcp_sender.cc size_t start_size = packet->size(); packet 429 media/cast/rtcp/rtcp_sender.cc packet->resize(start_size + remb_size); packet 432 media/cast/rtcp/rtcp_sender.cc reinterpret_cast<char*>(&((*packet)[start_size])), remb_size); packet 465 media/cast/rtcp/rtcp_sender.cc void RtcpSender::BuildNack(const RtcpNackMessage* nack, Packet* packet) const { packet 466 media/cast/rtcp/rtcp_sender.cc size_t start_size = packet->size(); packet 471 media/cast/rtcp/rtcp_sender.cc packet->resize(start_size + 16); packet 474 media/cast/rtcp/rtcp_sender.cc reinterpret_cast<char*>(&((*packet)[start_size])), 16); packet 489 media/cast/rtcp/rtcp_sender.cc kRtcpMaxNackFields, (kMaxIpPacketSize - packet->size()) / 4); packet 507 media/cast/rtcp/rtcp_sender.cc start_size = packet->size(); packet 512 media/cast/rtcp/rtcp_sender.cc packet->resize(start_size + 4); packet 514 media/cast/rtcp/rtcp_sender.cc reinterpret_cast<char*>(&((*packet)[start_size])), 4); packet 520 media/cast/rtcp/rtcp_sender.cc (*packet)[nack_size_pos] = static_cast<uint8>(2 + number_of_nack_fields); packet 523 media/cast/rtcp/rtcp_sender.cc void RtcpSender::BuildBye(Packet* packet) const { packet 524 media/cast/rtcp/rtcp_sender.cc size_t start_size = packet->size(); packet 529 media/cast/rtcp/rtcp_sender.cc packet->resize(start_size + 8); packet 532 media/cast/rtcp/rtcp_sender.cc reinterpret_cast<char*>(&((*packet)[start_size])), 8); packet 540 media/cast/rtcp/rtcp_sender.cc Packet* packet) const { packet 541 media/cast/rtcp/rtcp_sender.cc size_t start_size = packet->size(); packet 546 media/cast/rtcp/rtcp_sender.cc packet->resize(start_size + 20); packet 549 media/cast/rtcp/rtcp_sender.cc reinterpret_cast<char*>(&((*packet)[start_size])), 20); packet 566 media/cast/rtcp/rtcp_sender.cc Packet* packet) const { packet 567 media/cast/rtcp/rtcp_sender.cc size_t start_size = packet->size(); packet 572 media/cast/rtcp/rtcp_sender.cc packet->resize(start_size + 20); packet 575 media/cast/rtcp/rtcp_sender.cc reinterpret_cast<char*>(&((*packet)[start_size])), 20); packet 592 media/cast/rtcp/rtcp_sender.cc kRtcpMaxCastLossFields, (kMaxIpPacketSize - packet->size()) / 4); packet 605 media/cast/rtcp/rtcp_sender.cc start_size = packet->size(); packet 606 media/cast/rtcp/rtcp_sender.cc packet->resize(start_size + 4); packet 608 media/cast/rtcp/rtcp_sender.cc reinterpret_cast<char*>(&((*packet)[start_size])), 4); packet 619 media/cast/rtcp/rtcp_sender.cc start_size = packet->size(); packet 620 media/cast/rtcp/rtcp_sender.cc packet->resize(start_size + 4); packet 622 media/cast/rtcp/rtcp_sender.cc reinterpret_cast<char*>(&((*packet)[start_size])), 4); packet 651 media/cast/rtcp/rtcp_sender.cc (*packet)[cast_size_pos] = static_cast<uint8>(4 + number_of_loss_fields); packet 652 media/cast/rtcp/rtcp_sender.cc (*packet)[cast_loss_field_pos] = static_cast<uint8>(number_of_loss_fields); packet 657 media/cast/rtcp/rtcp_sender.cc Packet* packet) { packet 658 media/cast/rtcp/rtcp_sender.cc const size_t packet_start_size = packet->size(); packet 672 media/cast/rtcp/rtcp_sender.cc packet->resize(packet_start_size + rtcp_log_size); packet 675 media/cast/rtcp/rtcp_sender.cc reinterpret_cast<char*>(&((*packet)[packet_start_size])), rtcp_log_size); packet 63 media/cast/rtcp/rtcp_sender.h Packet* packet) const; packet 66 media/cast/rtcp/rtcp_sender.h Packet* packet) const; packet 68 media/cast/rtcp/rtcp_sender.h void BuildSdec(Packet* packet) const; packet 70 media/cast/rtcp/rtcp_sender.h void BuildPli(uint32 remote_ssrc, Packet* packet) const; packet 72 media/cast/rtcp/rtcp_sender.h void BuildRemb(const RtcpRembMessage* remb, Packet* packet) const; packet 74 media/cast/rtcp/rtcp_sender.h void BuildRpsi(const RtcpRpsiMessage* rpsi, Packet* packet) const; packet 76 media/cast/rtcp/rtcp_sender.h void BuildNack(const RtcpNackMessage* nack, Packet* packet) const; packet 78 media/cast/rtcp/rtcp_sender.h void BuildBye(Packet* packet) const; packet 81 media/cast/rtcp/rtcp_sender.h Packet* packet) const; packet 85 media/cast/rtcp/rtcp_sender.h Packet* packet) const; packet 89 media/cast/rtcp/rtcp_sender.h Packet* packet); packet 47 media/cast/rtcp/rtcp_sender_unittest.cc virtual bool SendRtcpPacket(const Packet& packet) OVERRIDE { packet 48 media/cast/rtcp/rtcp_sender_unittest.cc EXPECT_EQ(expected_packet_.size(), packet.size()); packet 49 media/cast/rtcp/rtcp_sender_unittest.cc EXPECT_EQ(0, memcmp(expected_packet_.data(), packet.data(), packet.size())); packet 60 media/cast/rtcp/rtcp_sender_unittest.cc void SetExpectedRtcpPacket(scoped_ptr<Packet> packet) { packet 61 media/cast/rtcp/rtcp_sender_unittest.cc expected_packet_.swap(*packet); packet 49 media/cast/rtcp/rtcp_unittest.cc virtual bool SendPacket(const Packet& packet) OVERRIDE { packet 59 media/cast/rtcp/rtcp_unittest.cc rtcp_receiver_->IncomingRtcpPacket(&(packet[0]), packet.size()); packet 86 media/cast/rtcp/rtcp_unittest.cc virtual bool SendRtcpPacket(const Packet& packet) OVERRIDE { packet 96 media/cast/rtcp/rtcp_unittest.cc rtcp_->IncomingRtcpPacket(&(packet[0]), packet.size()); packet 25 media/cast/rtp_receiver/rtp_parser/rtp_parser.cc bool RtpParser::ParsePacket(const uint8* packet, packet 31 media/cast/rtp_receiver/rtp_parser/rtp_parser.cc if (!ParseCommon(packet, length, rtp_header)) packet 35 media/cast/rtp_receiver/rtp_parser/rtp_parser.cc return ParseCast(packet + kRtpCommonHeaderLength, packet 43 media/cast/rtp_receiver/rtp_parser/rtp_parser.cc bool RtpParser::ParseCommon(const uint8* packet, packet 48 media/cast/rtp_receiver/rtp_parser/rtp_parser.cc uint8 version = packet[0] >> 6; packet 51 media/cast/rtp_receiver/rtp_parser/rtp_parser.cc uint8 cc = packet[0] & 0x0f; packet 52 media/cast/rtp_receiver/rtp_parser/rtp_parser.cc bool marker = ((packet[1] & 0x80) != 0); packet 53 media/cast/rtp_receiver/rtp_parser/rtp_parser.cc int payload_type = packet[1] & 0x7f; packet 58 media/cast/rtp_receiver/rtp_parser/rtp_parser.cc reinterpret_cast<const char*>(packet + 2), 10); packet 82 media/cast/rtp_receiver/rtp_parser/rtp_parser.cc bool RtpParser::ParseCast(const uint8* packet, packet 89 media/cast/rtp_receiver/rtp_parser/rtp_parser.cc const uint8* data_ptr = packet; packet 34 media/cast/rtp_receiver/rtp_parser/rtp_parser.h bool ParsePacket(const uint8* packet, packet 42 media/cast/rtp_receiver/rtp_parser/rtp_parser.h bool ParseCommon(const uint8* packet, packet 46 media/cast/rtp_receiver/rtp_parser/rtp_parser.h bool ParseCast(const uint8* packet, size_t length, RtpCastHeader* rtp_header); packet 94 media/cast/rtp_receiver/rtp_parser/rtp_parser_unittest.cc uint8 packet[kPacketLength]; packet 95 media/cast/rtp_receiver/rtp_parser/rtp_parser_unittest.cc packet_builder_.BuildHeader(packet, kPacketLength); packet 99 media/cast/rtp_receiver/rtp_parser/rtp_parser_unittest.cc EXPECT_TRUE(rtp_parser_->ParsePacket(packet, kPacketLength, &rtp_header)); packet 104 media/cast/rtp_receiver/rtp_parser/rtp_parser_unittest.cc uint8 packet[kPacketLength]; packet 110 media/cast/rtp_receiver/rtp_parser/rtp_parser_unittest.cc packet_builder_.BuildHeader(packet, kPacketLength); packet 118 media/cast/rtp_receiver/rtp_parser/rtp_parser_unittest.cc EXPECT_TRUE(rtp_parser_->ParsePacket(packet, kPacketLength, &rtp_header)); packet 123 media/cast/rtp_receiver/rtp_parser/rtp_parser_unittest.cc uint8 packet[kPacketLength]; packet 128 media/cast/rtp_receiver/rtp_parser/rtp_parser_unittest.cc packet_builder_.BuildHeader(packet, kPacketLength); packet 131 media/cast/rtp_receiver/rtp_parser/rtp_parser_unittest.cc EXPECT_FALSE(rtp_parser_->ParsePacket(packet, kPacketLength, &rtp_header)); packet 136 media/cast/rtp_receiver/rtp_parser/rtp_parser_unittest.cc uint8 packet[kPacketLength]; packet 141 media/cast/rtp_receiver/rtp_parser/rtp_parser_unittest.cc packet_builder_.BuildHeader(packet, kPacketLength); packet 149 media/cast/rtp_receiver/rtp_parser/rtp_parser_unittest.cc EXPECT_TRUE(rtp_parser_->ParsePacket(packet, kPacketLength, &rtp_header)); packet 154 media/cast/rtp_receiver/rtp_parser/rtp_parser_unittest.cc uint8 packet[kPacketLength]; packet 160 media/cast/rtp_receiver/rtp_parser/rtp_parser_unittest.cc packet_builder_.BuildHeader(packet, kPacketLength); packet 163 media/cast/rtp_receiver/rtp_parser/rtp_parser_unittest.cc EXPECT_FALSE(rtp_parser_->ParsePacket(packet, kPacketLength, &rtp_header)); packet 168 media/cast/rtp_receiver/rtp_parser/rtp_parser_unittest.cc uint8 packet[kPacketLength]; packet 174 media/cast/rtp_receiver/rtp_parser/rtp_parser_unittest.cc packet_builder_.BuildHeader(packet, kPacketLength); packet 177 media/cast/rtp_receiver/rtp_parser/rtp_parser_unittest.cc EXPECT_FALSE(rtp_parser_->ParsePacket(packet, kPacketLength, &rtp_header)); packet 186 media/cast/rtp_receiver/rtp_parser/rtp_parser_unittest.cc uint8 packet[kPacketLength]; packet 187 media/cast/rtp_receiver/rtp_parser/rtp_parser_unittest.cc packet_builder_.BuildHeader(packet, kPacketLength); packet 191 media/cast/rtp_receiver/rtp_parser/rtp_parser_unittest.cc EXPECT_TRUE(rtp_parser_->ParsePacket(packet, kPacketLength, &rtp_header)); packet 58 media/cast/rtp_receiver/rtp_receiver.cc bool RtpReceiver::ReceivedPacket(const uint8* packet, size_t length) { packet 60 media/cast/rtp_receiver/rtp_receiver.cc if (!ParsePacket(packet, length, &rtp_header)) packet 29 media/cast/rtp_receiver/rtp_receiver.h bool ReceivedPacket(const uint8* packet, size_t length); packet 179 media/cast/test/end2end_unittest.cc virtual bool SendPacket(const Packet& packet) OVERRIDE { packet 185 media/cast/test/end2end_unittest.cc uint32 frame_id = packet[13]; packet 190 media/cast/test/end2end_unittest.cc scoped_ptr<Packet> packet_copy(new Packet(packet)); packet 49 media/cast/test/utility/udp_proxy.cc virtual void Send(scoped_ptr<transport::Packet> packet) OVERRIDE { packet 50 media/cast/test/utility/udp_proxy.cc if (packet->size() + buffer_size_ <= max_buffer_size_) { packet 51 media/cast/test/utility/udp_proxy.cc buffer_size_ += packet->size(); packet 52 media/cast/test/utility/udp_proxy.cc buffer_.push_back(linked_ptr<transport::Packet>(packet.release())); packet 72 media/cast/test/utility/udp_proxy.cc scoped_ptr<transport::Packet> packet(buffer_.front().release()); packet 73 media/cast/test/utility/udp_proxy.cc buffer_size_ -= packet->size(); packet 75 media/cast/test/utility/udp_proxy.cc pipe_->Send(packet.Pass()); packet 97 media/cast/test/utility/udp_proxy.cc virtual void Send(scoped_ptr<transport::Packet> packet) OVERRIDE { packet 99 media/cast/test/utility/udp_proxy.cc pipe_->Send(packet.Pass()); packet 116 media/cast/test/utility/udp_proxy.cc virtual void Send(scoped_ptr<transport::Packet> packet) OVERRIDE { packet 122 media/cast/test/utility/udp_proxy.cc base::Passed(&packet)), packet 129 media/cast/test/utility/udp_proxy.cc virtual void SendInternal(scoped_ptr<transport::Packet> packet) { packet 130 media/cast/test/utility/udp_proxy.cc pipe_->Send(packet.Pass()); packet 178 media/cast/test/utility/udp_proxy.cc virtual void Send(scoped_ptr<transport::Packet> packet) OVERRIDE { packet 179 media/cast/test/utility/udp_proxy.cc buffer_.push_back(linked_ptr<transport::Packet>(packet.release())); packet 230 media/cast/test/utility/udp_proxy.cc scoped_ptr<transport::Packet> packet(buffer_.front().release()); packet 231 media/cast/test/utility/udp_proxy.cc pipe_->Send(packet.Pass()); packet 269 media/cast/test/utility/udp_proxy.cc virtual void Send(scoped_ptr<transport::Packet> packet) OVERRIDE { packet 271 media/cast/test/utility/udp_proxy.cc pipe_->Send(packet.Pass()); packet 309 media/cast/test/utility/udp_proxy.cc virtual void Send(scoped_ptr<transport::Packet> packet) OVERRIDE { packet 315 media/cast/test/utility/udp_proxy.cc VLOG(1) << "Sending packet, len = " << packet->size(); packet 319 media/cast/test/utility/udp_proxy.cc new net::WrappedIOBuffer(reinterpret_cast<char*>(&packet->front())); packet 320 media/cast/test/utility/udp_proxy.cc size_t buf_size = packet->size(); packet 333 media/cast/test/utility/udp_proxy.cc base::Passed(&packet))); packet 347 media/cast/test/utility/udp_proxy.cc scoped_ptr<transport::Packet> packet, packet 29 media/cast/test/utility/udp_proxy.h virtual void Send(scoped_ptr<transport::Packet> packet) = 0; packet 102 media/cast/transport/cast_transport_config.h typedef base::Callback<void(scoped_ptr<Packet> packet)> PacketReceiverCallback; packet 108 media/cast/transport/cast_transport_config.h virtual bool SendPacket(const transport::Packet& packet) = 0; packet 31 media/cast/transport/cast_transport_sender_impl_unittest.cc virtual bool SendPacket(const Packet& packet) OVERRIDE { return true; } packet 22 media/cast/transport/pacing/mock_paced_packet_sender.h MOCK_METHOD1(SendRtcpPacket, bool(const Packet& packet)); packet 109 media/cast/transport/pacing/paced_sender.cc bool PacedSender::SendRtcpPacket(const Packet& packet) { packet 111 media/cast/transport/pacing/paced_sender.cc return transport_->SendPacket(packet); packet 197 media/cast/transport/pacing/paced_sender.cc void PacedSender::LogPacketEvent(const Packet& packet, bool retransmit) { packet 200 media/cast/transport/pacing/paced_sender.cc DCHECK_GE(packet.size(), 12u); packet 201 media/cast/transport/pacing/paced_sender.cc base::BigEndianReader reader(reinterpret_cast<const char*>(&packet[8]), 4); packet 217 media/cast/transport/pacing/paced_sender.cc logging_->InsertSinglePacketEvent(clock_->NowTicks(), event, packet); packet 37 media/cast/transport/pacing/paced_sender.h virtual bool SendRtcpPacket(const Packet& packet) = 0; packet 65 media/cast/transport/pacing/paced_sender.h virtual bool SendRtcpPacket(const Packet& packet) OVERRIDE; packet 85 media/cast/transport/pacing/paced_sender.h void LogPacketEvent(const Packet& packet, bool retransmit); packet 34 media/cast/transport/pacing/paced_sender_unittest.cc virtual bool SendPacket(const Packet& packet) OVERRIDE { packet 38 media/cast/transport/pacing/paced_sender_unittest.cc EXPECT_EQ(expected_packet_size, packet.size()); packet 81 media/cast/transport/pacing/paced_sender_unittest.cc Packet packet(packet_size, kValue); packet 84 media/cast/transport/pacing/paced_sender_unittest.cc base::BigEndianWriter writer(reinterpret_cast<char*>(&packet[8]), 4); packet 87 media/cast/transport/pacing/paced_sender_unittest.cc packets.push_back(packet); packet 55 media/cast/transport/rtcp/rtcp_builder.cc Packet packet; packet 56 media/cast/transport/rtcp/rtcp_builder.cc packet.reserve(kMaxIpPacketSize); packet 58 media/cast/transport/rtcp/rtcp_builder.cc if (!BuildSR(sender_info, &packet)) return; packet 59 media/cast/transport/rtcp/rtcp_builder.cc if (!BuildSdec(&packet)) return; packet 62 media/cast/transport/rtcp/rtcp_builder.cc if (!BuildBye(&packet)) return; packet 65 media/cast/transport/rtcp/rtcp_builder.cc if (!BuildDlrrRb(dlrr, &packet)) return; packet 68 media/cast/transport/rtcp/rtcp_builder.cc if (!BuildSenderLog(sender_log, &packet)) return; packet 70 media/cast/transport/rtcp/rtcp_builder.cc if (packet.empty()) packet 73 media/cast/transport/rtcp/rtcp_builder.cc transport_->SendRtcpPacket(packet); packet 77 media/cast/transport/rtcp/rtcp_builder.cc Packet* packet) const { packet 79 media/cast/transport/rtcp/rtcp_builder.cc size_t start_size = packet->size(); packet 86 media/cast/transport/rtcp/rtcp_builder.cc packet->resize(start_size + 28); packet 89 media/cast/transport/rtcp/rtcp_builder.cc reinterpret_cast<char*>(&((*packet)[start_size])), 28); packet 102 media/cast/transport/rtcp/rtcp_builder.cc bool RtcpBuilder::BuildSdec(Packet* packet) const { packet 103 media/cast/transport/rtcp/rtcp_builder.cc size_t start_size = packet->size(); packet 110 media/cast/transport/rtcp/rtcp_builder.cc packet->resize(start_size + 10); packet 113 media/cast/transport/rtcp/rtcp_builder.cc reinterpret_cast<char*>(&((*packet)[start_size])), 10); packet 126 media/cast/transport/rtcp/rtcp_builder.cc packet->insert(packet->end(), c_name_.c_str(), packet 132 media/cast/transport/rtcp/rtcp_builder.cc if ((packet->size() % 4) == 0) { packet 134 media/cast/transport/rtcp/rtcp_builder.cc packet->push_back(0); packet 136 media/cast/transport/rtcp/rtcp_builder.cc while ((packet->size() % 4) != 0) { packet 138 media/cast/transport/rtcp/rtcp_builder.cc packet->push_back(0); packet 144 media/cast/transport/rtcp/rtcp_builder.cc (*packet)[sdes_length_position] = buffer_length; packet 148 media/cast/transport/rtcp/rtcp_builder.cc bool RtcpBuilder::BuildBye(Packet* packet) const { packet 149 media/cast/transport/rtcp/rtcp_builder.cc size_t start_size = packet->size(); packet 155 media/cast/transport/rtcp/rtcp_builder.cc packet->resize(start_size + 8); packet 158 media/cast/transport/rtcp/rtcp_builder.cc reinterpret_cast<char*>(&((*packet)[start_size])), 8); packet 184 media/cast/transport/rtcp/rtcp_builder.cc Packet* packet) const { packet 185 media/cast/transport/rtcp/rtcp_builder.cc size_t start_size = packet->size(); packet 191 media/cast/transport/rtcp/rtcp_builder.cc packet->resize(start_size + 24); packet 194 media/cast/transport/rtcp/rtcp_builder.cc reinterpret_cast<char*>(&((*packet)[start_size])), 24); packet 209 media/cast/transport/rtcp/rtcp_builder.cc Packet* packet) const { packet 210 media/cast/transport/rtcp/rtcp_builder.cc DCHECK(packet); packet 211 media/cast/transport/rtcp/rtcp_builder.cc size_t start_size = packet->size(); packet 225 media/cast/transport/rtcp/rtcp_builder.cc packet->resize(start_size + log_size); packet 228 media/cast/transport/rtcp/rtcp_builder.cc reinterpret_cast<char*>(&((*packet)[start_size])), log_size); packet 33 media/cast/transport/rtcp/rtcp_builder.h bool BuildSR(const RtcpSenderInfo& sender_info, Packet* packet) const; packet 34 media/cast/transport/rtcp/rtcp_builder.h bool BuildSdec(Packet* packet) const; packet 35 media/cast/transport/rtcp/rtcp_builder.h bool BuildBye(Packet* packet) const; packet 37 media/cast/transport/rtcp/rtcp_builder.h Packet* packet) const; packet 39 media/cast/transport/rtcp/rtcp_builder.h Packet* packet) const; packet 31 media/cast/transport/rtcp/rtcp_builder_unittest.cc virtual bool SendRtcpPacket(const Packet& packet) OVERRIDE { packet 32 media/cast/transport/rtcp/rtcp_builder_unittest.cc EXPECT_EQ(expected_packet_length_, packet.size()); packet 33 media/cast/transport/rtcp/rtcp_builder_unittest.cc EXPECT_EQ(0, memcmp(expected_packet_, &(packet[0]), packet.size())); packet 25 media/cast/transport/rtp_sender/packet_storage/packet_storage.cc void Save(const Packet* packet) { packet 26 media/cast/transport/rtp_sender/packet_storage/packet_storage.cc DCHECK_LT(packet->size(), kMaxIpPacketSize) << "Invalid argument"; packet 28 media/cast/transport/rtp_sender/packet_storage/packet_storage.cc packet_.insert(packet_.begin(), packet->begin(), packet->end()); packet 100 media/cast/transport/rtp_sender/packet_storage/packet_storage.cc const Packet* packet) { packet 121 media/cast/transport/rtp_sender/packet_storage/packet_storage.cc stored_packet->Save(packet); packet 35 media/cast/transport/rtp_sender/packet_storage/packet_storage.h void StorePacket(uint32 frame_id, uint16 packet_id, const Packet* packet); packet 51 media/cast/transport/rtp_sender/packet_storage/packet_storage_unittest.cc Packet packet; packet 73 media/cast/transport/rtp_sender/packet_storage/packet_storage_unittest.cc Packet packet; packet 117 media/cast/transport/rtp_sender/rtp_packetizer/rtp_packetizer.cc Packet packet; packet 123 media/cast/transport/rtp_sender/rtp_packetizer/rtp_packetizer.cc BuildCommonRTPheader(&packet, remaining_size == 0, timestamp); packet 126 media/cast/transport/rtp_sender/rtp_packetizer/rtp_packetizer.cc packet.push_back((is_key ? kCastKeyFrameBitMask : 0) | packet 128 media/cast/transport/rtp_sender/rtp_packetizer/rtp_packetizer.cc packet.push_back(frame_id); packet 129 media/cast/transport/rtp_sender/rtp_packetizer/rtp_packetizer.cc size_t start_size = packet.size(); packet 130 media/cast/transport/rtp_sender/rtp_packetizer/rtp_packetizer.cc packet.resize(start_size + 4); packet 132 media/cast/transport/rtp_sender/rtp_packetizer/rtp_packetizer.cc reinterpret_cast<char*>(&(packet[start_size])), 4); packet 135 media/cast/transport/rtp_sender/rtp_packetizer/rtp_packetizer.cc packet.push_back(static_cast<uint8>(reference_frame_id)); packet 138 media/cast/transport/rtp_sender/rtp_packetizer/rtp_packetizer.cc packet.insert(packet.end(), data_iter, data_iter + payload_length); packet 141 media/cast/transport/rtp_sender/rtp_packetizer/rtp_packetizer.cc packet_storage_->StorePacket(frame_id, packet_id_, &packet); packet 148 media/cast/transport/rtp_sender/rtp_packetizer/rtp_packetizer.cc packets.push_back(packet); packet 164 media/cast/transport/rtp_sender/rtp_packetizer/rtp_packetizer.cc void RtpPacketizer::BuildCommonRTPheader(Packet* packet, packet 167 media/cast/transport/rtp_sender/rtp_packetizer/rtp_packetizer.cc packet->push_back(0x80); packet 168 media/cast/transport/rtp_sender/rtp_packetizer/rtp_packetizer.cc packet->push_back(static_cast<uint8>(config_.payload_type) | packet 170 media/cast/transport/rtp_sender/rtp_packetizer/rtp_packetizer.cc size_t start_size = packet->size(); packet 171 media/cast/transport/rtp_sender/rtp_packetizer/rtp_packetizer.cc packet->resize(start_size + 10); packet 173 media/cast/transport/rtp_sender/rtp_packetizer/rtp_packetizer.cc reinterpret_cast<char*>(&((*packet)[start_size])), 10); packet 89 media/cast/transport/rtp_sender/rtp_packetizer/rtp_packetizer.h void BuildCommonRTPheader(Packet* packet, bool marker_bit, uint32 time_stamp); packet 66 media/cast/transport/rtp_sender/rtp_packetizer/rtp_packetizer_unittest.cc virtual bool SendPacket(const transport::Packet& packet) OVERRIDE { packet 68 media/cast/transport/rtp_sender/rtp_packetizer/rtp_packetizer_unittest.cc RtpHeaderParser parser(packet.data(), packet.size()); packet 99 media/cast/transport/rtp_sender/rtp_sender.cc Packet& packet = packets_to_resend.back(); packet 100 media/cast/transport/rtp_sender/rtp_sender.cc UpdateSequenceNumber(&packet); packet 117 media/cast/transport/rtp_sender/rtp_sender.cc Packet& packet = packets_to_resend.back(); packet 118 media/cast/transport/rtp_sender/rtp_sender.cc UpdateSequenceNumber(&packet); packet 126 media/cast/transport/rtp_sender/rtp_sender.cc void RtpSender::UpdateSequenceNumber(Packet* packet) { packet 129 media/cast/transport/rtp_sender/rtp_sender.cc (*packet)[index] = (static_cast<uint8>(new_sequence_number)); packet 130 media/cast/transport/rtp_sender/rtp_sender.cc (*packet)[index + 1] = (static_cast<uint8>(new_sequence_number >> 8)); packet 72 media/cast/transport/rtp_sender/rtp_sender.h void UpdateSequenceNumber(Packet* packet); packet 142 media/cast/transport/transport/udp_transport.cc bool UdpTransport::SendPacket(const Packet& packet) { packet 153 media/cast/transport/transport/udp_transport.cc new net::IOBuffer(static_cast<int>(packet.size())); packet 154 media/cast/transport/transport/udp_transport.cc memcpy(buf->data(), &packet[0], packet.size()); packet 163 media/cast/transport/transport/udp_transport.cc static_cast<int>(packet.size()), packet 168 media/cast/transport/transport/udp_transport.cc static_cast<int>(packet.size()), packet 50 media/cast/transport/transport/udp_transport.h virtual bool SendPacket(const Packet& packet) OVERRIDE; packet 28 media/cast/transport/transport/udp_transport_unittest.cc void ReceivedPacket(scoped_ptr<Packet> packet) { packet 29 media/cast/transport/transport/udp_transport_unittest.cc packet_ = std::string(packet->size(), '\0'); packet 30 media/cast/transport/transport/udp_transport_unittest.cc std::copy(packet->begin(), packet->end(), packet_.begin()); packet 47 media/cast/transport/transport/udp_transport_unittest.cc void SendPacket(UdpTransport* transport, Packet packet) { packet 48 media/cast/transport/transport/udp_transport_unittest.cc transport->SendPacket(packet); packet 74 media/cast/transport/transport/udp_transport_unittest.cc Packet packet; packet 75 media/cast/transport/transport/udp_transport_unittest.cc packet.push_back('t'); packet 76 media/cast/transport/transport/udp_transport_unittest.cc packet.push_back('e'); packet 77 media/cast/transport/transport/udp_transport_unittest.cc packet.push_back('s'); packet 78 media/cast/transport/transport/udp_transport_unittest.cc packet.push_back('t'); packet 83 media/cast/transport/transport/udp_transport_unittest.cc base::Bind(&SendPacket, &recv_transport, packet)); packet 87 media/cast/transport/transport/udp_transport_unittest.cc send_transport.SendPacket(packet); packet 90 media/cast/transport/transport/udp_transport_unittest.cc std::equal(packet.begin(), packet.end(), receiver1.packet().begin())); packet 92 media/cast/transport/transport/udp_transport_unittest.cc std::equal(packet.begin(), packet.end(), receiver2.packet().begin())); packet 368 media/cast/video_receiver/video_receiver.cc void VideoReceiver::IncomingPacket(scoped_ptr<Packet> packet) { packet 370 media/cast/video_receiver/video_receiver.cc if (Rtcp::IsRtcpPacket(&packet->front(), packet->size())) { packet 371 media/cast/video_receiver/video_receiver.cc rtcp_->IncomingRtcpPacket(&packet->front(), packet->size()); packet 373 media/cast/video_receiver/video_receiver.cc ReceivedPacket(&packet->front(), packet->size()); packet 58 media/cast/video_receiver/video_receiver.h void IncomingPacket(scoped_ptr<Packet> packet); packet 191 media/cast/video_sender/video_sender.cc void VideoSender::IncomingRtcpPacket(scoped_ptr<Packet> packet) { packet 193 media/cast/video_sender/video_sender.cc rtcp_->IncomingRtcpPacket(&packet->front(), packet->size()); packet 60 media/cast/video_sender/video_sender.h void IncomingRtcpPacket(scoped_ptr<Packet> packet); packet 60 media/cast/video_sender/video_sender_unittest.cc virtual bool SendPacket(const Packet& packet) OVERRIDE { packet 61 media/cast/video_sender/video_sender_unittest.cc if (Rtcp::IsRtcpPacket(&packet[0], packet.size())) { packet 257 media/cdm/ppapi/external_clear_key/ffmpeg_cdm_audio_decoder.cc AVPacket packet; packet 258 media/cdm/ppapi/external_clear_key/ffmpeg_cdm_audio_decoder.cc av_init_packet(&packet); packet 259 media/cdm/ppapi/external_clear_key/ffmpeg_cdm_audio_decoder.cc packet.data = const_cast<uint8_t*>(compressed_buffer); packet 260 media/cdm/ppapi/external_clear_key/ffmpeg_cdm_audio_decoder.cc packet.size = compressed_buffer_size; packet 278 media/cdm/ppapi/external_clear_key/ffmpeg_cdm_audio_decoder.cc codec_context_.get(), av_frame_.get(), &frame_decoded, &packet); packet 297 media/cdm/ppapi/external_clear_key/ffmpeg_cdm_audio_decoder.cc packet.size -= result; packet 298 media/cdm/ppapi/external_clear_key/ffmpeg_cdm_audio_decoder.cc packet.data += result; packet 353 media/cdm/ppapi/external_clear_key/ffmpeg_cdm_audio_decoder.cc if (serialized_audio_frames_.empty() && !packet.size) { packet 389 media/cdm/ppapi/external_clear_key/ffmpeg_cdm_audio_decoder.cc } while (packet.size > 0); packet 214 media/cdm/ppapi/external_clear_key/ffmpeg_cdm_video_decoder.cc AVPacket packet; packet 215 media/cdm/ppapi/external_clear_key/ffmpeg_cdm_video_decoder.cc av_init_packet(&packet); packet 218 media/cdm/ppapi/external_clear_key/ffmpeg_cdm_video_decoder.cc packet.data = const_cast<uint8_t*>(compressed_frame); packet 219 media/cdm/ppapi/external_clear_key/ffmpeg_cdm_video_decoder.cc packet.size = compressed_frame_size; packet 235 media/cdm/ppapi/external_clear_key/ffmpeg_cdm_video_decoder.cc &packet); packet 239 media/cdm/ppapi/external_clear_key/ffmpeg_cdm_video_decoder.cc << timestamp << " us, packet size: " << packet.size << " bytes"; packet 50 media/ffmpeg/ffmpeg_common.h AVPacket* packet = static_cast<AVPacket*>(x); packet 51 media/ffmpeg/ffmpeg_common.h av_free_packet(packet); packet 52 media/ffmpeg/ffmpeg_common.h delete packet; packet 56 media/ffmpeg/ffmpeg_unittest.cc AVPacket* packet = packets_.front(); packet 58 media/ffmpeg/ffmpeg_unittest.cc av_free_packet(packet); packet 59 media/ffmpeg/ffmpeg_unittest.cc delete packet; packet 62 media/ffmpeg/ffmpeg_unittest.cc void push(AVPacket* packet) { packet 63 media/ffmpeg/ffmpeg_unittest.cc av_dup_packet(packet); packet 64 media/ffmpeg/ffmpeg_unittest.cc packets_.push(packet); packet 185 media/ffmpeg/ffmpeg_unittest.cc scoped_ptr<AVPacket> packet(new AVPacket()); packet 186 media/ffmpeg/ffmpeg_unittest.cc if (av_read_frame(av_format_context_, packet.get()) < 0) { packet 190 media/ffmpeg/ffmpeg_unittest.cc int stream_index = static_cast<int>(packet->stream_index); packet 194 media/ffmpeg/ffmpeg_unittest.cc ConvertFromTimeBase(av_audio_stream()->time_base, packet->pts) packet 196 media/ffmpeg/ffmpeg_unittest.cc audio_packets_.push(packet.release()); packet 199 media/ffmpeg/ffmpeg_unittest.cc ConvertFromTimeBase(av_video_stream()->time_base, packet->pts) packet 201 media/ffmpeg/ffmpeg_unittest.cc video_packets_.push(packet.release()); packet 228 media/ffmpeg/ffmpeg_unittest.cc AVPacket packet; packet 230 media/ffmpeg/ffmpeg_unittest.cc av_init_packet(&packet); packet 233 media/ffmpeg/ffmpeg_unittest.cc memcpy(&packet, audio_packets_.peek(), sizeof(packet)); packet 238 media/ffmpeg/ffmpeg_unittest.cc &got_audio, &packet); packet 254 media/ffmpeg/ffmpeg_unittest.cc if (packet.pts == static_cast<int64>(AV_NOPTS_VALUE)) { packet 261 media/ffmpeg/ffmpeg_unittest.cc ConvertFromTimeBase(av_audio_stream()->time_base, packet.pts) packet 282 media/ffmpeg/ffmpeg_unittest.cc AVPacket packet; packet 284 media/ffmpeg/ffmpeg_unittest.cc av_init_packet(&packet); packet 287 media/ffmpeg/ffmpeg_unittest.cc memcpy(&packet, video_packets_.peek(), sizeof(packet)); packet 291 media/ffmpeg/ffmpeg_unittest.cc av_video_context()->reordered_opaque = packet.pts; packet 293 media/ffmpeg/ffmpeg_unittest.cc &got_picture, &packet); packet 124 media/filters/audio_file_reader.cc AVPacket packet; packet 129 media/filters/audio_file_reader.cc av_read_frame(glue_->format_context(), &packet) >= 0 && packet 130 media/filters/audio_file_reader.cc av_dup_packet(&packet) >= 0) { packet 132 media/filters/audio_file_reader.cc if (packet.stream_index != stream_index_) { packet 133 media/filters/audio_file_reader.cc av_free_packet(&packet); packet 139 media/filters/audio_file_reader.cc AVPacket packet_temp = packet; packet 221 media/filters/audio_file_reader.cc av_free_packet(&packet); packet 319 media/filters/ffmpeg_audio_decoder.cc AVPacket packet; packet 320 media/filters/ffmpeg_audio_decoder.cc av_init_packet(&packet); packet 322 media/filters/ffmpeg_audio_decoder.cc packet.data = NULL; packet 323 media/filters/ffmpeg_audio_decoder.cc packet.size = 0; packet 325 media/filters/ffmpeg_audio_decoder.cc packet.data = const_cast<uint8*>(buffer->data()); packet 326 media/filters/ffmpeg_audio_decoder.cc packet.size = buffer->data_size(); packet 336 media/filters/ffmpeg_audio_decoder.cc codec_context_.get(), av_frame_.get(), &frame_decoded, &packet); packet 355 media/filters/ffmpeg_audio_decoder.cc packet.size -= result; packet 356 media/filters/ffmpeg_audio_decoder.cc packet.data += result; packet 427 media/filters/ffmpeg_audio_decoder.cc DCHECK_EQ(packet.size, 0); packet 437 media/filters/ffmpeg_audio_decoder.cc } while (packet.size > 0); packet 101 media/filters/ffmpeg_demuxer.cc void FFmpegDemuxerStream::EnqueuePacket(ScopedAVPacket packet) { packet 110 media/filters/ffmpeg_demuxer.cc if (packet->data && bitstream_converter_enabled_ && packet 111 media/filters/ffmpeg_demuxer.cc !bitstream_converter_->ConvertPacket(packet.get())) { packet 118 media/filters/ffmpeg_demuxer.cc av_packet_split_side_data(packet.get()); packet 125 media/filters/ffmpeg_demuxer.cc packet.get(), packet 131 media/filters/ffmpeg_demuxer.cc packet.get(), packet 140 media/filters/ffmpeg_demuxer.cc buffer = DecoderBuffer::CopyFrom(packet.get()->data, packet.get()->size, packet 145 media/filters/ffmpeg_demuxer.cc packet.get(), packet 154 media/filters/ffmpeg_demuxer.cc packet->data, packet->size, packet 167 media/filters/ffmpeg_demuxer.cc buffer = DecoderBuffer::CopyFrom(packet.get()->data + data_offset, packet 168 media/filters/ffmpeg_demuxer.cc packet.get()->size - data_offset, packet 171 media/filters/ffmpeg_demuxer.cc buffer = DecoderBuffer::CopyFrom(packet.get()->data + data_offset, packet 172 media/filters/ffmpeg_demuxer.cc packet.get()->size - data_offset); packet 176 media/filters/ffmpeg_demuxer.cc uint8* skip_samples = av_packet_get_side_data(packet.get(), packet 197 media/filters/ffmpeg_demuxer.cc stream_->time_base, packet->pts)); packet 199 media/filters/ffmpeg_demuxer.cc stream_->time_base, packet->duration)); packet 791 media/filters/ffmpeg_demuxer.cc ScopedAVPacket packet(new AVPacket()); packet 792 media/filters/ffmpeg_demuxer.cc AVPacket* packet_ptr = packet.get(); packet 801 media/filters/ffmpeg_demuxer.cc base::Passed(&packet))); packet 804 media/filters/ffmpeg_demuxer.cc void FFmpegDemuxer::OnReadFrameDone(ScopedAVPacket packet, int result) { packet 845 media/filters/ffmpeg_demuxer.cc DCHECK_GE(packet->stream_index, 0); packet 846 media/filters/ffmpeg_demuxer.cc DCHECK_LT(packet->stream_index, static_cast<int>(streams_.size())); packet 849 media/filters/ffmpeg_demuxer.cc if (packet->stream_index >= 0 && packet 850 media/filters/ffmpeg_demuxer.cc packet->stream_index < static_cast<int>(streams_.size()) && packet 851 media/filters/ffmpeg_demuxer.cc streams_[packet->stream_index] && packet 853 media/filters/ffmpeg_demuxer.cc streams_[packet->stream_index]->type() != DemuxerStream::AUDIO)) { packet 859 media/filters/ffmpeg_demuxer.cc if (!packet->data) { packet 863 media/filters/ffmpeg_demuxer.cc new_packet->pts = packet->pts; packet 864 media/filters/ffmpeg_demuxer.cc new_packet->dts = packet->dts; packet 865 media/filters/ffmpeg_demuxer.cc new_packet->pos = packet->pos; packet 866 media/filters/ffmpeg_demuxer.cc new_packet->duration = packet->duration; packet 867 media/filters/ffmpeg_demuxer.cc new_packet->convergence_duration = packet->convergence_duration; packet 868 media/filters/ffmpeg_demuxer.cc new_packet->flags = packet->flags; packet 869 media/filters/ffmpeg_demuxer.cc new_packet->stream_index = packet->stream_index; packet 871 media/filters/ffmpeg_demuxer.cc packet.swap(new_packet); packet 880 media/filters/ffmpeg_demuxer.cc glue_->format_context()->streams[packet->stream_index]->codec; packet 883 media/filters/ffmpeg_demuxer.cc packet->pts += codec_context->delay; packet 887 media/filters/ffmpeg_demuxer.cc FFmpegDemuxerStream* demuxer_stream = streams_[packet->stream_index]; packet 888 media/filters/ffmpeg_demuxer.cc demuxer_stream->EnqueuePacket(packet.Pass()); packet 65 media/filters/ffmpeg_demuxer.h void EnqueuePacket(ScopedAVPacket packet); packet 180 media/filters/ffmpeg_demuxer.h void OnReadFrameDone(ScopedAVPacket packet, int result); packet 21 media/filters/ffmpeg_h264_to_annex_b_bitstream_converter.cc bool FFmpegH264ToAnnexBBitstreamConverter::ConvertPacket(AVPacket* packet) { packet 25 media/filters/ffmpeg_h264_to_annex_b_bitstream_converter.cc if (packet == NULL) { packet 48 media/filters/ffmpeg_h264_to_annex_b_bitstream_converter.cc converter_.CalculateNeededOutputBufferSize(packet->data, packet->size); packet 62 media/filters/ffmpeg_h264_to_annex_b_bitstream_converter.cc dest_packet.pts = packet->pts; packet 63 media/filters/ffmpeg_h264_to_annex_b_bitstream_converter.cc dest_packet.dts = packet->dts; packet 64 media/filters/ffmpeg_h264_to_annex_b_bitstream_converter.cc dest_packet.pos = packet->pos; packet 65 media/filters/ffmpeg_h264_to_annex_b_bitstream_converter.cc dest_packet.duration = packet->duration; packet 66 media/filters/ffmpeg_h264_to_annex_b_bitstream_converter.cc dest_packet.convergence_duration = packet->convergence_duration; packet 67 media/filters/ffmpeg_h264_to_annex_b_bitstream_converter.cc dest_packet.flags = packet->flags; packet 68 media/filters/ffmpeg_h264_to_annex_b_bitstream_converter.cc dest_packet.stream_index = packet->stream_index; packet 84 media/filters/ffmpeg_h264_to_annex_b_bitstream_converter.cc packet->data, packet->size, packet 90 media/filters/ffmpeg_h264_to_annex_b_bitstream_converter.cc av_free_packet(packet); packet 91 media/filters/ffmpeg_h264_to_annex_b_bitstream_converter.cc *packet = dest_packet; // Finally, replace the values in the input packet. packet 45 media/filters/ffmpeg_h264_to_annex_b_bitstream_converter.h bool ConvertPacket(AVPacket* packet); packet 272 media/filters/ffmpeg_h264_to_annex_b_bitstream_converter_unittest.cc void CreatePacket(AVPacket* packet, const uint8* data, uint32 data_size) { packet 274 media/filters/ffmpeg_h264_to_annex_b_bitstream_converter_unittest.cc EXPECT_EQ(av_new_packet(packet, data_size), 0); packet 275 media/filters/ffmpeg_h264_to_annex_b_bitstream_converter_unittest.cc memcpy(packet->data, data, data_size); packet 269 media/filters/ffmpeg_video_decoder.cc AVPacket packet; packet 270 media/filters/ffmpeg_video_decoder.cc av_init_packet(&packet); packet 272 media/filters/ffmpeg_video_decoder.cc packet.data = NULL; packet 273 media/filters/ffmpeg_video_decoder.cc packet.size = 0; packet 275 media/filters/ffmpeg_video_decoder.cc packet.data = const_cast<uint8*>(buffer->data()); packet 276 media/filters/ffmpeg_video_decoder.cc packet.size = buffer->data_size(); packet 290 media/filters/ffmpeg_video_decoder.cc &packet); packet 149 media/formats/webm/chromeos/webm_encoder.cc const vpx_codec_cx_pkt_t* packet; packet 150 media/formats/webm/chromeos/webm_encoder.cc while (!has_errors_ && (packet = vpx_codec_get_cx_data(&codec, &iter))) { packet 151 media/formats/webm/chromeos/webm_encoder.cc if (packet->kind == VPX_CODEC_CX_FRAME_PKT) packet 152 media/formats/webm/chromeos/webm_encoder.cc WriteWebmBlock(packet); packet 222 media/formats/webm/chromeos/webm_encoder.cc void WebmEncoder::WriteWebmBlock(const vpx_codec_cx_pkt_t* packet) { packet 223 media/formats/webm/chromeos/webm_encoder.cc bool is_keyframe = packet->data.frame.flags & VPX_FRAME_IS_KEY; packet 224 media/formats/webm/chromeos/webm_encoder.cc int64_t pts_ms = 1000 * packet->data.frame.pts * fps_.den / fps_.num; packet 227 media/formats/webm/chromeos/webm_encoder.cc << packet->data.frame.sz << " bytes " packet 232 media/formats/webm/chromeos/webm_encoder.cc uint32 block_length = (packet->data.frame.sz + 4) | 0x10000000; packet 243 media/formats/webm/chromeos/webm_encoder.cc if (packet->data.frame.flags & VPX_FRAME_IS_INVISIBLE) packet 247 media/formats/webm/chromeos/webm_encoder.cc EbmlWrite(packet->data.frame.buf, packet->data.frame.sz); packet 53 media/formats/webm/chromeos/webm_encoder.h void WriteWebmBlock(const vpx_codec_cx_pkt_t* packet); packet 158 media/midi/midi_manager_mac.cc const MIDIPacket &packet = packet_list->packet[i]; packet 159 media/midi/midi_manager_mac.cc double timestamp_seconds = MIDITimeStampToSeconds(packet.timeStamp); packet 163 media/midi/midi_manager_mac.cc packet.data, packet 164 media/midi/midi_manager_mac.cc packet.length, packet 69 media/midi/usb_midi_input_stream.cc const uint8* packet, packet 72 media/midi/usb_midi_input_stream.cc uint8 code_index = packet[0] & 0x0f; packet 73 media/midi/usb_midi_input_stream.cc uint8 cable_number = packet[0] >> 4; packet 89 media/midi/usb_midi_input_stream.cc delegate_->OnReceivedData(it->second, &packet[1], packet_size, timestamp); packet 69 media/midi/usb_midi_input_stream.h const uint8* packet, packet 59 native_client_sdk/src/libraries/nacl_io/socket/fifo_packet.cc void FIFOPacket::WritePacket(Packet* packet) { packet 60 native_client_sdk/src/libraries/nacl_io/socket/fifo_packet.cc cur_bytes_ += packet->len(); packet 61 native_client_sdk/src/libraries/nacl_io/socket/fifo_packet.cc packets_.push_front(packet); packet 47 native_client_sdk/src/libraries/nacl_io/socket/fifo_packet.h void WritePacket(Packet* packet); packet 17 native_client_sdk/src/libraries/nacl_io/socket/udp_event_emitter.cc Packet* packet = in_fifo_.ReadPacket(); packet 20 native_client_sdk/src/libraries/nacl_io/socket/udp_event_emitter.cc return packet; packet 23 native_client_sdk/src/libraries/nacl_io/socket/udp_event_emitter.cc void UdpEventEmitter::WriteRXPacket_Locked(Packet* packet) { packet 24 native_client_sdk/src/libraries/nacl_io/socket/udp_event_emitter.cc in_fifo_.WritePacket(packet); packet 30 native_client_sdk/src/libraries/nacl_io/socket/udp_event_emitter.cc Packet* packet = out_fifo_.ReadPacket(); packet 33 native_client_sdk/src/libraries/nacl_io/socket/udp_event_emitter.cc return packet; packet 36 native_client_sdk/src/libraries/nacl_io/socket/udp_event_emitter.cc void UdpEventEmitter::WriteTXPacket_Locked(Packet* packet) { packet 37 native_client_sdk/src/libraries/nacl_io/socket/udp_event_emitter.cc out_fifo_.WritePacket(packet); packet 25 native_client_sdk/src/libraries/nacl_io/socket/udp_event_emitter.h void WriteRXPacket_Locked(Packet* packet); packet 28 native_client_sdk/src/libraries/nacl_io/socket/udp_event_emitter.h void WriteTXPacket_Locked(Packet* packet); packet 137 native_client_sdk/src/libraries/nacl_io/socket/udp_node.cc Packet* packet = new Packet(filesystem()->ppapi()); packet 138 native_client_sdk/src/libraries/nacl_io/socket/udp_node.cc packet->Copy(data_, length_error, addr_); packet 139 native_client_sdk/src/libraries/nacl_io/socket/udp_node.cc emitter_->WriteRXPacket_Locked(packet); packet 251 native_client_sdk/src/libraries/nacl_io/socket/udp_node.cc Packet* packet = emitter_->ReadRXPacket_Locked(); packet 255 native_client_sdk/src/libraries/nacl_io/socket/udp_node.cc if (packet) { packet 256 native_client_sdk/src/libraries/nacl_io/socket/udp_node.cc int capped_len = static_cast<int32_t>(std::min<int>(len, packet->len())); packet 257 native_client_sdk/src/libraries/nacl_io/socket/udp_node.cc memcpy(buf, packet->buffer(), capped_len); packet 259 native_client_sdk/src/libraries/nacl_io/socket/udp_node.cc if (packet->addr() != 0) { packet 260 native_client_sdk/src/libraries/nacl_io/socket/udp_node.cc filesystem_->ppapi()->AddRefResource(packet->addr()); packet 261 native_client_sdk/src/libraries/nacl_io/socket/udp_node.cc *out_addr = packet->addr(); packet 265 native_client_sdk/src/libraries/nacl_io/socket/udp_node.cc delete packet; packet 292 native_client_sdk/src/libraries/nacl_io/socket/udp_node.cc Packet* packet = new Packet(filesystem_->ppapi()); packet 293 native_client_sdk/src/libraries/nacl_io/socket/udp_node.cc packet->Copy(buf, capped_len, addr); packet 295 native_client_sdk/src/libraries/nacl_io/socket/udp_node.cc emitter_->WriteTXPacket_Locked(packet); packet 28 net/dns/dns_response.cc DnsRecordParser::DnsRecordParser(const void* packet, packet 31 net/dns/dns_response.cc : packet_(reinterpret_cast<const char*>(packet)), packet 47 net/dns/dns_response.h DnsRecordParser(const void* packet, size_t length, size_t offset); packet 408 net/dns/mdns_client_unittest.cc void ExpectPacket(const uint8* packet, unsigned size); packet 409 net/dns/mdns_client_unittest.cc void SimulatePacketReceive(const uint8* packet, unsigned size); packet 435 net/dns/mdns_client_unittest.cc void MDnsTest::SimulatePacketReceive(const uint8* packet, unsigned size) { packet 436 net/dns/mdns_client_unittest.cc socket_factory_.SimulateReceive(packet, size); packet 439 net/dns/mdns_client_unittest.cc void MDnsTest::ExpectPacket(const uint8* packet, unsigned size) { packet 440 net/dns/mdns_client_unittest.cc EXPECT_CALL(socket_factory_, OnSendTo(MakeString(packet, size))) packet 1079 net/dns/mdns_client_unittest.cc MOCK_METHOD1(HandlePacketInternal, void(std::string packet)); packet 88 net/dns/mock_mdns_socket_factory.cc void MockMDnsSocketFactory::SimulateReceive(const uint8* packet, int size) { packet 93 net/dns/mock_mdns_socket_factory.cc memcpy(recv_buffer_->data(), packet, size); packet 110 net/dns/mock_mdns_socket_factory.cc const std::string& packet, const std::string& address, packet 112 net/dns/mock_mdns_socket_factory.cc OnSendTo(packet); packet 113 net/dns/mock_mdns_socket_factory.cc return packet.size(); packet 32 net/dns/mock_mdns_socket_factory.h MOCK_METHOD3(SendToInternal, int(const std::string& packet, packet 80 net/dns/mock_mdns_socket_factory.h void SimulateReceive(const uint8* packet, int size); packet 85 net/dns/mock_mdns_socket_factory.h int SendToInternal(const std::string& packet, const std::string& address, packet 27 net/quic/congestion_control/tcp_loss_algorithm_test.cc SerializedPacket packet(sequence_number, PACKET_1BYTE_SEQUENCE_NUMBER, packet 29 net/quic/congestion_control/tcp_loss_algorithm_test.cc unacked_packets_.AddPacket(packet); packet 27 net/quic/congestion_control/time_loss_algorithm_test.cc SerializedPacket packet(sequence_number, PACKET_1BYTE_SEQUENCE_NUMBER, packet 29 net/quic/congestion_control/time_loss_algorithm_test.cc unacked_packets_.AddPacket(packet); packet 59 net/quic/crypto/crypto_framer_test.cc unsigned char packet[] = { packet 93 net/quic/crypto/crypto_framer_test.cc data->length(), AsChars(packet), packet 94 net/quic/crypto/crypto_framer_test.cc arraysize(packet)); packet 103 net/quic/crypto/crypto_framer_test.cc unsigned char packet[] = { packet 131 net/quic/crypto/crypto_framer_test.cc data->length(), AsChars(packet), packet 132 net/quic/crypto/crypto_framer_test.cc arraysize(packet)); packet 140 net/quic/crypto/crypto_framer_test.cc unsigned char packet[] = { packet 158 net/quic/crypto/crypto_framer_test.cc data->length(), AsChars(packet), packet 159 net/quic/crypto/crypto_framer_test.cc arraysize(packet)); packet 180 net/quic/crypto/crypto_framer_test.cc unsigned char packet[] = { packet 210 net/quic/crypto/crypto_framer_test.cc data->length(), AsChars(packet), packet 211 net/quic/crypto/crypto_framer_test.cc arraysize(packet)); packet 220 net/quic/crypto/crypto_framer_test.cc unsigned char packet[] = { packet 248 net/quic/crypto/crypto_framer_test.cc data->length(), AsChars(packet), packet 249 net/quic/crypto/crypto_framer_test.cc arraysize(packet)); packet 94 net/quic/quic_ack_notifier_manager.cc serialized_packet.packet->length()); packet 674 net/quic/quic_client_session.cc QuicEncryptedPacket packet(buffer->data(), result); packet 681 net/quic/quic_client_session.cc connection()->ProcessUdpPacket(local_address, peer_address, packet); packet 46 net/quic/quic_client_session_test.cc QuicEncryptedPacket packet(buffer, buf_len); packet 47 net/quic/quic_client_session_test.cc EXPECT_TRUE(framer.ProcessPacket(packet)); packet 49 net/quic/quic_client_session_test.cc return WriteResult(WRITE_STATUS_OK, packet.length()); packet 147 net/quic/quic_connection.cc QuicConnection::QueuedPacket::QueuedPacket(SerializedPacket packet, packet 150 net/quic/quic_connection.cc : sequence_number(packet.sequence_number), packet 151 net/quic/quic_connection.cc packet(packet.packet), packet 155 net/quic/quic_connection.cc packet.retransmittable_frames != NULL) ? packet 157 net/quic/quic_connection.cc handshake(packet.retransmittable_frames == NULL ? packet 158 net/quic/quic_connection.cc NOT_HANDSHAKE : packet.retransmittable_frames->HasCryptoHandshake()), packet 159 net/quic/quic_connection.cc type(GetPacketType(packet.retransmittable_frames)), packet 160 net/quic/quic_connection.cc length(packet.packet->length()) { packet 236 net/quic/quic_connection.cc delete it->packet; packet 286 net/quic/quic_connection.cc const QuicPublicResetPacket& packet) { packet 288 net/quic/quic_connection.cc debug_visitor_->OnPublicResetPacket(packet); packet 349 net/quic/quic_connection.cc const QuicVersionNegotiationPacket& packet) { packet 357 net/quic/quic_connection.cc debug_visitor_->OnVersionNegotiationPacket(packet); packet 365 net/quic/quic_connection.cc if (std::find(packet.versions.begin(), packet 366 net/quic/quic_connection.cc packet.versions.end(), version()) != packet 367 net/quic/quic_connection.cc packet.versions.end()) { packet 375 net/quic/quic_connection.cc if (!SelectMutualVersion(packet.versions)) { packet 382 net/quic/quic_connection.cc server_supported_versions_ = packet.versions; packet 1015 net/quic/quic_connection.cc const QuicEncryptedPacket& packet) { packet 1020 net/quic/quic_connection.cc debug_visitor_->OnPacketReceived(self_address, peer_address, packet); packet 1023 net/quic/quic_connection.cc last_size_ = packet.length(); packet 1038 net/quic/quic_connection.cc stats_.bytes_received += packet.length(); packet 1041 net/quic/quic_connection.cc if (!framer_.ProcessPacket(packet)) { packet 1047 net/quic/quic_connection.cc QueueUndecryptablePacket(packet); packet 1131 net/quic/quic_connection.cc delete packet_iterator->packet; packet 1234 net/quic/quic_connection.cc bool QuicConnection::WritePacket(QueuedPacket packet) { packet 1235 net/quic/quic_connection.cc QuicPacketSequenceNumber sequence_number = packet.sequence_number; packet 1236 net/quic/quic_connection.cc if (ShouldDiscardPacket(packet.encryption_level, packet 1238 net/quic/quic_connection.cc packet.retransmittable)) { packet 1248 net/quic/quic_connection.cc if (packet.type == NORMAL && !CanWrite(packet.transmission_type, packet 1249 net/quic/quic_connection.cc packet.retransmittable, packet 1250 net/quic/quic_connection.cc packet.handshake)) { packet 1260 net/quic/quic_connection.cc packet.encryption_level, sequence_number, *packet.packet); packet 1272 net/quic/quic_connection.cc if (packet.type == CONNECTION_CLOSE) { packet 1290 net/quic/quic_connection.cc << " : " << (packet.packet->is_fec_packet() ? "FEC " : packet 1291 net/quic/quic_connection.cc (packet.retransmittable == HAS_RETRANSMITTABLE_DATA packet 1294 net/quic/quic_connection.cc << QuicUtils::EncryptionLevelToString(packet.encryption_level) packet 1295 net/quic/quic_connection.cc << ", length:" << packet.packet->length() << ", encrypted length:" packet 1298 net/quic/quic_connection.cc << QuicUtils::StringToHexASCIIDump(packet.packet->AsStringPiece()); packet 1303 net/quic/quic_connection.cc << packet.packet->length() << " " << encrypted->length() << " " packet 1304 net/quic/quic_connection.cc << " close: " << (packet.type == CONNECTION_CLOSE ? "yes" : "no"); packet 1307 net/quic/quic_connection.cc pending_write_.reset(new QueuedPacket(packet)); packet 1319 net/quic/quic_connection.cc packet.encryption_level, packet 1320 net/quic/quic_connection.cc packet.transmission_type, packet 1454 net/quic/quic_connection.cc const SerializedPacket& packet, packet 1456 net/quic/quic_connection.cc if (packet.packet == NULL) { packet 1461 net/quic/quic_connection.cc sent_entropy_manager_.RecordPacketEntropyHash(packet.sequence_number, packet 1462 net/quic/quic_connection.cc packet.entropy_hash); packet 1463 net/quic/quic_connection.cc QueuedPacket queued_packet(packet, level, transmission_type); packet 1468 net/quic/quic_connection.cc delete packet.packet; packet 1549 net/quic/quic_connection.cc const QuicEncryptedPacket& packet) { packet 1551 net/quic/quic_connection.cc undecryptable_packets_.push_back(packet.Clone()); packet 1561 net/quic/quic_connection.cc QuicEncryptedPacket* packet = undecryptable_packets_.front(); packet 1562 net/quic/quic_connection.cc if (!framer_.ProcessPacket(*packet) && packet 1568 net/quic/quic_connection.cc delete packet; packet 120 net/quic/quic_connection.h const QuicEncryptedPacket& packet, packet 133 net/quic/quic_connection.h const QuicEncryptedPacket& packet) {} packet 163 net/quic/quic_connection.h virtual void OnPublicResetPacket(const QuicPublicResetPacket& packet) {} packet 167 net/quic/quic_connection.h const QuicVersionNegotiationPacket& packet) {} packet 273 net/quic/quic_connection.h const QuicEncryptedPacket& packet); packet 304 net/quic/quic_connection.h const QuicPublicResetPacket& packet) OVERRIDE; packet 306 net/quic/quic_connection.h const QuicVersionNegotiationPacket& packet) OVERRIDE; packet 334 net/quic/quic_connection.h virtual bool OnSerializedPacket(const SerializedPacket& packet) OVERRIDE; packet 464 net/quic/quic_connection.h const SerializedPacket& packet, packet 501 net/quic/quic_connection.h QueuedPacket(SerializedPacket packet, packet 506 net/quic/quic_connection.h QuicPacket* packet; packet 525 net/quic/quic_connection.h bool WritePacket(QueuedPacket packet); packet 550 net/quic/quic_connection.h void QueueUndecryptablePacket(const QuicEncryptedPacket& packet); packet 206 net/quic/quic_connection_logger.cc const QuicVersionNegotiationPacket* packet, packet 211 net/quic/quic_connection_logger.cc for (QuicVersionVector::const_iterator it = packet->versions.begin(); packet 212 net/quic/quic_connection_logger.cc it != packet->versions.end(); ++it) { packet 391 net/quic/quic_connection_logger.cc const QuicEncryptedPacket& packet, packet 396 net/quic/quic_connection_logger.cc transmission_type, packet.length(), result)); packet 410 net/quic/quic_connection_logger.cc const QuicEncryptedPacket& packet) { packet 411 net/quic/quic_connection_logger.cc last_received_packet_size_ = packet.length(); packet 415 net/quic/quic_connection_logger.cc packet.length())); packet 536 net/quic/quic_connection_logger.cc const QuicPublicResetPacket& packet) { packet 539 net/quic/quic_connection_logger.cc packet.client_address); packet 543 net/quic/quic_connection_logger.cc const QuicVersionNegotiationPacket& packet) { packet 546 net/quic/quic_connection_logger.cc base::Bind(&NetLogQuicVersionNegotiationPacketCallback, &packet)); packet 35 net/quic/quic_connection_logger.h const QuicEncryptedPacket& packet, packet 42 net/quic/quic_connection_logger.h const QuicEncryptedPacket& packet) OVERRIDE; packet 54 net/quic/quic_connection_logger.h const QuicPublicResetPacket& packet) OVERRIDE; packet 56 net/quic/quic_connection_logger.h const QuicVersionNegotiationPacket& packet) OVERRIDE; packet 294 net/quic/quic_connection_test.cc QuicEncryptedPacket packet(buffer, buf_len); packet 297 net/quic/quic_connection_test.cc if (packet.length() >= sizeof(final_bytes_of_last_packet_)) { packet 299 net/quic/quic_connection_test.cc memcpy(&final_bytes_of_last_packet_, packet.data() + packet.length() - 4, packet 310 net/quic/quic_connection_test.cc EXPECT_TRUE(framer.ProcessPacket(packet)); packet 318 net/quic/quic_connection_test.cc last_packet_size_ = packet.length(); packet 438 net/quic/quic_connection_test.cc QuicPacket* packet, packet 446 net/quic/quic_connection_test.cc packet, entropy_hash, retransmittable_frames)); packet 657 net/quic/quic_connection_test.cc scoped_ptr<QuicPacket> packet(serialized_packet.packet); packet 660 net/quic/quic_connection_test.cc serialized_packet.sequence_number, *packet)); packet 676 net/quic/quic_connection_test.cc scoped_ptr<QuicPacket> packet(ConstructDataPacket(number, fec_group, packet 679 net/quic/quic_connection_test.cc level, number, *packet)); packet 686 net/quic/quic_connection_test.cc scoped_ptr<QuicPacket> packet(ConstructClosePacket(number, fec_group)); packet 688 net/quic/quic_connection_test.cc ENCRYPTION_NONE, number, *packet)); packet 708 net/quic/quic_connection_test.cc QuicPacket* packet) { packet 717 net/quic/quic_connection_test.cc if (packet) { packet 718 net/quic/quic_connection_test.cc data_packet.reset(packet); packet 749 net/quic/quic_connection_test.cc framer_.BuildFecPacket(header_, fec_data).packet); packet 813 net/quic/quic_connection_test.cc QuicPacket* packet = packet 814 net/quic/quic_connection_test.cc framer_.BuildUnsizedDataPacket(header_, frames).packet; packet 815 net/quic/quic_connection_test.cc EXPECT_TRUE(packet != NULL); packet 816 net/quic/quic_connection_test.cc return packet; packet 836 net/quic/quic_connection_test.cc QuicPacket* packet = packet 837 net/quic/quic_connection_test.cc framer_.BuildUnsizedDataPacket(header_, frames).packet; packet 838 net/quic/quic_connection_test.cc EXPECT_TRUE(packet != NULL); packet 839 net/quic/quic_connection_test.cc return packet; packet 2626 net/quic/quic_connection_test.cc QuicPacket* packet = ConstructDataPacket(1, 0, !kEntropyFlag); packet 2632 net/quic/quic_connection_test.cc ENCRYPTION_NONE, 1, packet, kTestEntropyHash, HAS_RETRANSMITTABLE_DATA); packet 2638 net/quic/quic_connection_test.cc QuicPacket* packet = ConstructDataPacket(1, 0, !kEntropyFlag); packet 2644 net/quic/quic_connection_test.cc ENCRYPTION_NONE, 1, packet, kTestEntropyHash, HAS_RETRANSMITTABLE_DATA); packet 2649 net/quic/quic_connection_test.cc QuicPacket* packet = ConstructDataPacket(1, 0, !kEntropyFlag); packet 2656 net/quic/quic_connection_test.cc ENCRYPTION_NONE, 1, packet, kTestEntropyHash, HAS_RETRANSMITTABLE_DATA); packet 2662 net/quic/quic_connection_test.cc QuicPacket* packet = ConstructDataPacket(1, 0, !kEntropyFlag); packet 2667 net/quic/quic_connection_test.cc ENCRYPTION_NONE, 1, packet, kTestEntropyHash, HAS_RETRANSMITTABLE_DATA); packet 2712 net/quic/quic_connection_test.cc QuicPacket* packet = ConstructDataPacket(1, 0, !kEntropyFlag); packet 2717 net/quic/quic_connection_test.cc ENCRYPTION_NONE, 1, packet, kTestEntropyHash, HAS_RETRANSMITTABLE_DATA); packet 2721 net/quic/quic_connection_test.cc packet = ConstructDataPacket(2, 0, !kEntropyFlag); packet 2723 net/quic/quic_connection_test.cc ENCRYPTION_NONE, 2, packet, kTestEntropyHash, HAS_RETRANSMITTABLE_DATA); packet 2729 net/quic/quic_connection_test.cc QuicPacket* packet = ConstructDataPacket(1, 0, !kEntropyFlag); packet 2734 net/quic/quic_connection_test.cc ENCRYPTION_NONE, 1, packet, kTestEntropyHash, HAS_RETRANSMITTABLE_DATA); packet 2754 net/quic/quic_connection_test.cc QuicPacket* packet = ConstructDataPacket(1, 0, !kEntropyFlag); packet 2759 net/quic/quic_connection_test.cc ENCRYPTION_NONE, 1, packet, kTestEntropyHash, HAS_RETRANSMITTABLE_DATA); packet 2776 net/quic/quic_connection_test.cc QuicPacket* packet = ConstructDataPacket(1, 0, !kEntropyFlag); packet 2781 net/quic/quic_connection_test.cc ENCRYPTION_NONE, 1, packet, kTestEntropyHash, HAS_RETRANSMITTABLE_DATA); packet 3011 net/quic/quic_connection_test.cc QuicPacket* packet = ConstructDataPacket(1, 0, !kEntropyFlag); packet 3014 net/quic/quic_connection_test.cc ENCRYPTION_NONE, 1, packet, kTestEntropyHash, HAS_RETRANSMITTABLE_DATA); packet 3023 net/quic/quic_connection_test.cc scoped_ptr<QuicEncryptedPacket> packet( packet 3026 net/quic/quic_connection_test.cc connection_.ProcessUdpPacket(IPEndPoint(), IPEndPoint(), *packet); packet 3207 net/quic/quic_connection_test.cc QuicPacket* packet = ConstructDataPacket(i, 0, entropy_flag); packet 3209 net/quic/quic_connection_test.cc ENCRYPTION_NONE, i, packet, packet_entropy_hash, packet 3240 net/quic/quic_connection_test.cc scoped_ptr<QuicPacket> packet( packet 3241 net/quic/quic_connection_test.cc framer_.BuildUnsizedDataPacket(header, frames).packet); packet 3243 net/quic/quic_connection_test.cc framer_.EncryptPacket(ENCRYPTION_NONE, 12, *packet)); packet 3278 net/quic/quic_connection_test.cc scoped_ptr<QuicPacket> packet( packet 3279 net/quic/quic_connection_test.cc framer_.BuildUnsizedDataPacket(header, frames).packet); packet 3281 net/quic/quic_connection_test.cc framer_.EncryptPacket(ENCRYPTION_NONE, 12, *packet)); packet 3323 net/quic/quic_connection_test.cc scoped_ptr<QuicPacket> packet( packet 3324 net/quic/quic_connection_test.cc framer_.BuildUnsizedDataPacket(header, frames).packet); packet 3326 net/quic/quic_connection_test.cc framer_.EncryptPacket(ENCRYPTION_NONE, 12, *packet)); packet 3368 net/quic/quic_connection_test.cc scoped_ptr<QuicPacket> packet( packet 3369 net/quic/quic_connection_test.cc framer_.BuildUnsizedDataPacket(header, frames).packet); packet 3370 net/quic/quic_connection_test.cc encrypted.reset(framer_.EncryptPacket(ENCRYPTION_NONE, 12, *packet)); packet 3517 net/quic/quic_connection_test.cc scoped_ptr<QuicPacket> packet( packet 3518 net/quic/quic_connection_test.cc framer_.BuildUnsizedDataPacket(header_, frames).packet); packet 3519 net/quic/quic_connection_test.cc EXPECT_TRUE(NULL != packet.get()); packet 3521 net/quic/quic_connection_test.cc ENCRYPTION_NONE, 1, *packet)); packet 3549 net/quic/quic_connection_test.cc scoped_ptr<QuicPacket> packet( packet 3550 net/quic/quic_connection_test.cc framer_.BuildUnsizedDataPacket(header_, frames).packet); packet 3551 net/quic/quic_connection_test.cc EXPECT_TRUE(NULL != packet.get()); packet 3553 net/quic/quic_connection_test.cc ENCRYPTION_NONE, 1, *packet)); packet 3837 net/quic/quic_connection_test.cc QuicPacket* packet = packet 3838 net/quic/quic_connection_test.cc framer_.BuildUnsizedDataPacket(ack_header, frames).packet; packet 3842 net/quic/quic_connection_test.cc ProcessFecPacket(2, 1, true, !kEntropyFlag, packet); packet 47 net/quic/quic_fec_group_test.cc for (size_t packet = 0; packet < num_packets; ++packet) { packet 49 net/quic/quic_fec_group_test.cc if (packet == 0) { packet 55 net/quic/quic_fec_group_test.cc uint8 byte = i > strlen(kData[packet]) ? 0x00 : kData[packet][i]; packet 66 net/quic/quic_fec_group_test.cc for (size_t packet = 0; packet < num_packets; packet++) { packet 67 net/quic/quic_fec_group_test.cc if (packet == lost_packet) { packet 75 net/quic/quic_fec_group_test.cc header.packet_sequence_number = packet; packet 76 net/quic/quic_fec_group_test.cc header.entropy_flag = kEntropyFlag[packet]; packet 77 net/quic/quic_fec_group_test.cc ASSERT_TRUE(group.Update(header, kData[packet])); packet 79 net/quic/quic_fec_group_test.cc ASSERT_TRUE(group.CanRevive() == (packet == num_packets - 1)); packet 83 net/quic/quic_fec_group_test.cc for (size_t packet = 0; packet < num_packets; packet++) { packet 84 net/quic/quic_fec_group_test.cc if (packet == lost_packet) { packet 89 net/quic/quic_fec_group_test.cc header.packet_sequence_number = packet; packet 90 net/quic/quic_fec_group_test.cc header.entropy_flag = kEntropyFlag[packet]; packet 91 net/quic/quic_fec_group_test.cc ASSERT_TRUE(group.Update(header, kData[packet])); packet 467 net/quic/quic_framer.cc QuicPacket* packet = QuicPacket::NewDataPacket( packet 474 net/quic/quic_framer.cc packet->FecProtectedData()); packet 478 net/quic/quic_framer.cc header.public_header.sequence_number_length, packet, packet 514 net/quic/quic_framer.cc const QuicPublicResetPacket& packet) { packet 515 net/quic/quic_framer.cc DCHECK(packet.public_header.reset_flag); packet 519 net/quic/quic_framer.cc reset.SetValue(kRNON, packet.nonce_proof); packet 520 net/quic/quic_framer.cc reset.SetValue(kRSEQ, packet.rejected_sequence_number); packet 521 net/quic/quic_framer.cc if (!packet.client_address.address().empty()) { packet 523 net/quic/quic_framer.cc QuicSocketAddressCoder address_coder(packet.client_address); packet 542 net/quic/quic_framer.cc if (!writer.WriteUInt64(packet.public_header.connection_id)) { packet 579 net/quic/quic_framer.cc bool QuicFramer::ProcessPacket(const QuicEncryptedPacket& packet) { packet 581 net/quic/quic_framer.cc reader_.reset(new QuicDataReader(packet.data(), packet.length())); packet 613 net/quic/quic_framer.cc rv = ProcessDataPacket(public_header, packet); packet 639 net/quic/quic_framer.cc const QuicEncryptedPacket& packet) { packet 641 net/quic/quic_framer.cc if (!ProcessPacketHeader(&header, packet)) { packet 651 net/quic/quic_framer.cc if (packet.length() > kMaxPacketSize) { packet 652 net/quic/quic_framer.cc DLOG(WARNING) << "Packet too large: " << packet.length(); packet 680 net/quic/quic_framer.cc QuicPublicResetPacket packet(public_header); packet 686 net/quic/quic_framer.cc if (!reader_->ReadUInt64(&packet.nonce_proof)) { packet 691 net/quic/quic_framer.cc if (!reader_->ReadUInt48(&packet.rejected_sequence_number)) { packet 696 net/quic/quic_framer.cc visitor_->OnPublicResetPacket(packet); packet 711 net/quic/quic_framer.cc if (reset->GetUint64(kRNON, &packet.nonce_proof) != QUIC_NO_ERROR) { packet 717 net/quic/quic_framer.cc if (reset->GetUint64(kRSEQ, &packet.rejected_sequence_number) != packet 727 net/quic/quic_framer.cc packet.client_address = IPEndPoint(address_coder.ip(), packet 732 net/quic/quic_framer.cc visitor_->OnPublicResetPacket(packet); packet 1051 net/quic/quic_framer.cc const QuicEncryptedPacket& packet) { packet 1067 net/quic/quic_framer.cc if (!DecryptPayload(*header, packet)) { packet 1546 net/quic/quic_framer.cc QuicPacketSequenceNumber packet = smallest_received + sequence_delta; packet 1548 net/quic/quic_framer.cc make_pair(packet, time_received.Add( packet 1769 net/quic/quic_framer.cc const QuicPacket& packet) { packet 1773 net/quic/quic_framer.cc packet_sequence_number, packet.AssociatedData(), packet.Plaintext())); packet 1778 net/quic/quic_framer.cc StringPiece header_data = packet.BeforePlaintext(); packet 1805 net/quic/quic_framer.cc const QuicEncryptedPacket& packet) { packet 1814 net/quic/quic_framer.cc packet, packet 1823 net/quic/quic_framer.cc packet, packet 76 net/quic/quic_framer.h const QuicPublicResetPacket& packet) = 0; packet 81 net/quic/quic_framer.h const QuicVersionNegotiationPacket& packet) = 0; packet 235 net/quic/quic_framer.h bool ProcessPacket(const QuicEncryptedPacket& packet); packet 317 net/quic/quic_framer.h const QuicPublicResetPacket& packet); packet 353 net/quic/quic_framer.h const QuicPacket& packet); packet 391 net/quic/quic_framer.h const QuicEncryptedPacket& packet); packet 400 net/quic/quic_framer.h const QuicEncryptedPacket& packet); packet 422 net/quic/quic_framer.h const QuicEncryptedPacket& packet); packet 229 net/quic/quic_framer_test.cc const QuicPublicResetPacket& packet) OVERRIDE { packet 230 net/quic/quic_framer_test.cc public_reset_packet_.reset(new QuicPublicResetPacket(packet)); packet 234 net/quic/quic_framer_test.cc const QuicVersionNegotiationPacket& packet) OVERRIDE { packet 235 net/quic/quic_framer_test.cc version_negotiation_packet_.reset(new QuicVersionNegotiationPacket(packet)); packet 387 net/quic/quic_framer_test.cc QuicPacket* packet) { packet 394 net/quic/quic_framer_test.cc if (packet->AssociatedData() != encrypter_->associated_data_) { packet 396 net/quic/quic_framer_test.cc << packet->AssociatedData() << " actual: " packet 400 net/quic/quic_framer_test.cc if (packet->Plaintext() != encrypter_->plaintext_) { packet 402 net/quic/quic_framer_test.cc << packet->Plaintext() << " actual: " packet 445 net/quic/quic_framer_test.cc void CheckProcessingFails(unsigned char* packet, packet 449 net/quic/quic_framer_test.cc QuicEncryptedPacket encrypted(AsChars(packet), len, false); packet 461 net/quic/quic_framer_test.cc void CheckStreamFrameBoundaries(unsigned char* packet, packet 477 net/quic/quic_framer_test.cc packet, packet 614 net/quic/quic_framer_test.cc char packet[] = { 0x00 }; packet 615 net/quic/quic_framer_test.cc QuicEncryptedPacket encrypted(packet, 0, false); packet 621 net/quic/quic_framer_test.cc unsigned char packet[kMaxPacketSize + 1] = { packet 634 net/quic/quic_framer_test.cc memset(packet + GetPacketHeaderSize( packet 641 net/quic/quic_framer_test.cc QuicEncryptedPacket encrypted(AsChars(packet), arraysize(packet), false); packet 653 net/quic/quic_framer_test.cc unsigned char packet[] = { packet 666 net/quic/quic_framer_test.cc QuicEncryptedPacket encrypted(AsChars(packet), arraysize(packet), false); packet 699 net/quic/quic_framer_test.cc CheckProcessingFails(packet, i, expected_error, QUIC_INVALID_PACKET_HEADER); packet 707 net/quic/quic_framer_test.cc unsigned char packet[] = { packet 719 net/quic/quic_framer_test.cc QuicEncryptedPacket encrypted(AsChars(packet), arraysize(packet), false); packet 755 net/quic/quic_framer_test.cc CheckProcessingFails(packet, i, expected_error, QUIC_INVALID_PACKET_HEADER); packet 763 net/quic/quic_framer_test.cc unsigned char packet[] = { packet 775 net/quic/quic_framer_test.cc QuicEncryptedPacket encrypted(AsChars(packet), arraysize(packet), false); packet 811 net/quic/quic_framer_test.cc CheckProcessingFails(packet, i, expected_error, QUIC_INVALID_PACKET_HEADER); packet 819 net/quic/quic_framer_test.cc unsigned char packet[] = { packet 830 net/quic/quic_framer_test.cc QuicEncryptedPacket encrypted(AsChars(packet), arraysize(packet), false); packet 866 net/quic/quic_framer_test.cc CheckProcessingFails(packet, i, expected_error, QUIC_INVALID_PACKET_HEADER); packet 871 net/quic/quic_framer_test.cc unsigned char packet[] = { packet 886 net/quic/quic_framer_test.cc QuicEncryptedPacket encrypted(AsChars(packet), arraysize(packet), false); packet 922 net/quic/quic_framer_test.cc CheckProcessingFails(packet, i, expected_error, QUIC_INVALID_PACKET_HEADER); packet 930 net/quic/quic_framer_test.cc unsigned char packet[] = { packet 942 net/quic/quic_framer_test.cc QuicEncryptedPacket encrypted(AsChars(packet), arraysize(packet), false); packet 977 net/quic/quic_framer_test.cc CheckProcessingFails(packet, i, expected_error, QUIC_INVALID_PACKET_HEADER); packet 985 net/quic/quic_framer_test.cc unsigned char packet[] = { packet 997 net/quic/quic_framer_test.cc QuicEncryptedPacket encrypted(AsChars(packet), arraysize(packet), false); packet 1032 net/quic/quic_framer_test.cc CheckProcessingFails(packet, i, expected_error, QUIC_INVALID_PACKET_HEADER); packet 1040 net/quic/quic_framer_test.cc unsigned char packet[] = { packet 1052 net/quic/quic_framer_test.cc QuicEncryptedPacket encrypted(AsChars(packet), arraysize(packet), false); packet 1087 net/quic/quic_framer_test.cc CheckProcessingFails(packet, i, expected_error, QUIC_INVALID_PACKET_HEADER); packet 1092 net/quic/quic_framer_test.cc unsigned char packet[] = { packet 1108 net/quic/quic_framer_test.cc CheckProcessingFails(packet, packet 1109 net/quic/quic_framer_test.cc arraysize(packet), packet 1115 net/quic/quic_framer_test.cc QuicEncryptedPacket encrypted(AsChars(packet), arraysize(packet), false); packet 1120 net/quic/quic_framer_test.cc unsigned char packet[] = { packet 1138 net/quic/quic_framer_test.cc CheckProcessingFails(packet, packet 1139 net/quic/quic_framer_test.cc arraysize(packet), packet 1145 net/quic/quic_framer_test.cc unsigned char packet[] = { packet 1163 net/quic/quic_framer_test.cc QuicEncryptedPacket encrypted(AsChars(packet), arraysize(packet), false); packet 1172 net/quic/quic_framer_test.cc unsigned char packet[] = { packet 1188 net/quic/quic_framer_test.cc CheckProcessingFails(packet, packet 1189 net/quic/quic_framer_test.cc arraysize(packet), packet 1195 net/quic/quic_framer_test.cc unsigned char packet[] = { packet 1209 net/quic/quic_framer_test.cc CheckProcessingFails(packet, packet 1210 net/quic/quic_framer_test.cc arraysize(packet), packet 1217 net/quic/quic_framer_test.cc unsigned char packet[] = { packet 1247 net/quic/quic_framer_test.cc QuicEncryptedPacket encrypted(AsChars(packet), arraysize(packet), false); packet 1257 net/quic/quic_framer_test.cc packet, packet 1264 net/quic/quic_framer_test.cc unsigned char packet[] = { packet 1291 net/quic/quic_framer_test.cc QuicEncryptedPacket encrypted(AsChars(packet), arraysize(packet), false); packet 1308 net/quic/quic_framer_test.cc CheckStreamFrameBoundaries(packet, kQuicMaxStreamIdSize, !kIncludeVersion); packet 1312 net/quic/quic_framer_test.cc unsigned char packet[] = { packet 1339 net/quic/quic_framer_test.cc QuicEncryptedPacket encrypted(AsChars(packet), arraysize(packet), false); packet 1357 net/quic/quic_framer_test.cc CheckStreamFrameBoundaries(packet, stream_id_size, !kIncludeVersion); packet 1361 net/quic/quic_framer_test.cc unsigned char packet[] = { packet 1388 net/quic/quic_framer_test.cc QuicEncryptedPacket encrypted(AsChars(packet), arraysize(packet), false); packet 1406 net/quic/quic_framer_test.cc CheckStreamFrameBoundaries(packet, stream_id_size, !kIncludeVersion); packet 1410 net/quic/quic_framer_test.cc unsigned char packet[] = { packet 1437 net/quic/quic_framer_test.cc QuicEncryptedPacket encrypted(AsChars(packet), arraysize(packet), false); packet 1455 net/quic/quic_framer_test.cc CheckStreamFrameBoundaries(packet, stream_id_size, !kIncludeVersion); packet 1459 net/quic/quic_framer_test.cc unsigned char packet[] = { packet 1488 net/quic/quic_framer_test.cc QuicEncryptedPacket encrypted(AsChars(packet), arraysize(packet), false); packet 1507 net/quic/quic_framer_test.cc CheckStreamFrameBoundaries(packet, kQuicMaxStreamIdSize, kIncludeVersion); packet 1513 net/quic/quic_framer_test.cc unsigned char packet[] = { packet 1540 net/quic/quic_framer_test.cc QuicEncryptedPacket encrypted(AsChars(packet), arraysize(packet), false); packet 1554 net/quic/quic_framer_test.cc unsigned char packet[] = { packet 1562 net/quic/quic_framer_test.cc QuicEncryptedPacket encrypted(AsChars(packet), arraysize(packet), false); packet 1627 net/quic/quic_framer_test.cc unsigned char packet[] = { packet 1656 net/quic/quic_framer_test.cc QuicEncryptedPacket encrypted(AsChars(packet), arraysize(packet), false); packet 1670 net/quic/quic_framer_test.cc string(AsChars(packet) + fec_offset, arraysize(packet) - fec_offset), packet 1687 net/quic/quic_framer_test.cc unsigned char packet[] = { packet 1722 net/quic/quic_framer_test.cc QuicEncryptedPacket encrypted(AsChars(packet), arraysize(packet), false); packet 1778 net/quic/quic_framer_test.cc packet, packet 1790 net/quic/quic_framer_test.cc unsigned char packet[] = { packet 1827 net/quic/quic_framer_test.cc QuicEncryptedPacket encrypted(AsChars(packet), arraysize(packet), false); packet 1887 net/quic/quic_framer_test.cc packet, packet 1899 net/quic/quic_framer_test.cc unsigned char packet[] = { packet 1931 net/quic/quic_framer_test.cc QuicEncryptedPacket encrypted(AsChars(packet), arraysize(packet), false); packet 1982 net/quic/quic_framer_test.cc packet, packet 1994 net/quic/quic_framer_test.cc unsigned char packet[] = { packet 2029 net/quic/quic_framer_test.cc QuicEncryptedPacket encrypted(AsChars(packet), arraysize(packet), false); packet 2086 net/quic/quic_framer_test.cc packet, packet 2098 net/quic/quic_framer_test.cc unsigned char packet[] = { packet 2138 net/quic/quic_framer_test.cc QuicEncryptedPacket encrypted(AsChars(packet), arraysize(packet), false); packet 2202 net/quic/quic_framer_test.cc packet, packet 2213 net/quic/quic_framer_test.cc unsigned char packet[] = { packet 2237 net/quic/quic_framer_test.cc QuicEncryptedPacket encrypted(AsChars(packet), arraysize(packet), false); packet 2256 net/quic/quic_framer_test.cc framer_.BuildUnsizedDataPacket(*visitor_.header_, frames).packet); packet 2261 net/quic/quic_framer_test.cc AsChars(packet), arraysize(packet)); packet 2268 net/quic/quic_framer_test.cc unsigned char packet[] = { packet 2297 net/quic/quic_framer_test.cc QuicEncryptedPacket encrypted(AsChars(packet), arraysize(packet), false); packet 2318 net/quic/quic_framer_test.cc framer_.BuildUnsizedDataPacket(*visitor_.header_, frames).packet); packet 2323 net/quic/quic_framer_test.cc AsChars(packet), arraysize(packet)); packet 2330 net/quic/quic_framer_test.cc unsigned char packet[] = { packet 2367 net/quic/quic_framer_test.cc QuicEncryptedPacket encrypted(AsChars(packet), arraysize(packet), false); packet 2393 net/quic/quic_framer_test.cc framer_.BuildUnsizedDataPacket(*visitor_.header_, frames).packet); packet 2398 net/quic/quic_framer_test.cc AsChars(packet), arraysize(packet)); packet 2405 net/quic/quic_framer_test.cc unsigned char packet[] = { packet 2447 net/quic/quic_framer_test.cc QuicEncryptedPacket encrypted(AsChars(packet), arraysize(packet), false); packet 2475 net/quic/quic_framer_test.cc framer_.BuildUnsizedDataPacket(*visitor_.header_, frames).packet); packet 2480 net/quic/quic_framer_test.cc AsChars(packet), arraysize(packet)); packet 2487 net/quic/quic_framer_test.cc unsigned char packet[] = { packet 2527 net/quic/quic_framer_test.cc QuicEncryptedPacket encrypted(AsChars(packet), arraysize(packet), false); packet 2554 net/quic/quic_framer_test.cc framer_.BuildUnsizedDataPacket(*visitor_.header_, frames).packet); packet 2559 net/quic/quic_framer_test.cc AsChars(packet), arraysize(packet)); packet 2566 net/quic/quic_framer_test.cc unsigned char packet[] = { packet 2586 net/quic/quic_framer_test.cc QuicEncryptedPacket encrypted(AsChars(packet), arraysize(packet), false); packet 2609 net/quic/quic_framer_test.cc packet, packet 2620 net/quic/quic_framer_test.cc unsigned char packet[] = { packet 2642 net/quic/quic_framer_test.cc QuicEncryptedPacket encrypted(AsChars(packet), arraysize(packet), false); packet 2667 net/quic/quic_framer_test.cc packet, packet 2678 net/quic/quic_framer_test.cc unsigned char packet[] = { packet 2712 net/quic/quic_framer_test.cc QuicEncryptedPacket encrypted(AsChars(packet), arraysize(packet), false); packet 2760 net/quic/quic_framer_test.cc packet, packet 2771 net/quic/quic_framer_test.cc unsigned char packet[] = { packet 2807 net/quic/quic_framer_test.cc QuicEncryptedPacket encrypted(AsChars(packet), arraysize(packet), false); packet 2857 net/quic/quic_framer_test.cc packet, packet 2865 net/quic/quic_framer_test.cc unsigned char packet[] = { packet 2885 net/quic/quic_framer_test.cc QuicEncryptedPacket encrypted(AsChars(packet), arraysize(packet), false); packet 2909 net/quic/quic_framer_test.cc packet, packet 2917 net/quic/quic_framer_test.cc unsigned char packet[] = { packet 2935 net/quic/quic_framer_test.cc QuicEncryptedPacket encrypted(AsChars(packet), arraysize(packet), false); packet 2945 net/quic/quic_framer_test.cc unsigned char packet[] = { packet 2967 net/quic/quic_framer_test.cc QuicEncryptedPacket encrypted(AsChars(packet), arraysize(packet), false); packet 2991 net/quic/quic_framer_test.cc packet, packet 3003 net/quic/quic_framer_test.cc unsigned char packet[] = { packet 3031 net/quic/quic_framer_test.cc QuicEncryptedPacket encrypted(AsChars(packet), arraysize(packet), false); packet 3055 net/quic/quic_framer_test.cc packet, packet 3067 net/quic/quic_framer_test.cc unsigned char packet[] = { packet 3100 net/quic/quic_framer_test.cc QuicEncryptedPacket encrypted(AsChars(packet), arraysize(packet), false); packet 3129 net/quic/quic_framer_test.cc packet, packet 3137 net/quic/quic_framer_test.cc unsigned char packet[] = { packet 3163 net/quic/quic_framer_test.cc QuicEncryptedPacket encrypted(AsChars(packet), arraysize(packet), false); packet 3187 net/quic/quic_framer_test.cc packet, packet 3195 net/quic/quic_framer_test.cc unsigned char packet[] = { packet 3222 net/quic/quic_framer_test.cc QuicEncryptedPacket encrypted(AsChars(packet), arraysize(packet), false); packet 3248 net/quic/quic_framer_test.cc packet, packet 3256 net/quic/quic_framer_test.cc unsigned char packet[] = { packet 3277 net/quic/quic_framer_test.cc QuicEncryptedPacket encrypted(AsChars(packet), arraysize(packet), false); packet 3308 net/quic/quic_framer_test.cc packet, packet 3316 net/quic/quic_framer_test.cc unsigned char packet[] = { packet 3334 net/quic/quic_framer_test.cc QuicEncryptedPacket encrypted(AsChars(packet), arraysize(packet), false); packet 3358 net/quic/quic_framer_test.cc packet, packet 3366 net/quic/quic_framer_test.cc unsigned char packet[] = { packet 3392 net/quic/quic_framer_test.cc QuicEncryptedPacket encrypted(AsChars(packet), arraysize(packet), false); packet 3408 net/quic/quic_framer_test.cc for (size_t i = 0; i < arraysize(packet); ++i) { packet 3413 net/quic/quic_framer_test.cc CheckProcessingFails(packet, i, expected_error, packet 3417 net/quic/quic_framer_test.cc CheckProcessingFails(packet, i, expected_error, packet 3421 net/quic/quic_framer_test.cc CheckProcessingFails(packet, i, expected_error, packet 3428 net/quic/quic_framer_test.cc unsigned char packet[] = { packet 3457 net/quic/quic_framer_test.cc CheckProcessingFails(packet, arraysize(packet), expected_error, packet 3462 net/quic/quic_framer_test.cc unsigned char packet[] = { packet 3496 net/quic/quic_framer_test.cc QuicEncryptedPacket encrypted(AsChars(packet), arraysize(packet), false); packet 3514 net/quic/quic_framer_test.cc for (size_t i = 0; i < arraysize(packet); ++i) { packet 3519 net/quic/quic_framer_test.cc CheckProcessingFails(packet, i, expected_error, packet 3523 net/quic/quic_framer_test.cc CheckProcessingFails(packet, i, expected_error, packet 3527 net/quic/quic_framer_test.cc CheckProcessingFails(packet, i, expected_error, packet 3535 net/quic/quic_framer_test.cc unsigned char packet[] = { packet 3549 net/quic/quic_framer_test.cc QuicEncryptedPacket encrypted(AsChars(packet), arraysize(packet), false); packet 3565 net/quic/quic_framer_test.cc for (size_t i = 0; i < arraysize(packet); ++i) { packet 3570 net/quic/quic_framer_test.cc CheckProcessingFails(packet, i, expected_error, packet 3574 net/quic/quic_framer_test.cc CheckProcessingFails(packet, i, expected_error, packet 3578 net/quic/quic_framer_test.cc CheckProcessingFails(packet, i, expected_error, packet 3582 net/quic/quic_framer_test.cc CheckProcessingFails(packet, i, expected_error, packet 3589 net/quic/quic_framer_test.cc unsigned char packet[] = { packet 3602 net/quic/quic_framer_test.cc QuicEncryptedPacket encrypted(AsChars(packet), arraysize(packet), false); packet 3620 net/quic/quic_framer_test.cc CheckProcessingFails(packet, i, expected_error, error_code); packet 3625 net/quic/quic_framer_test.cc unsigned char packet[] = { packet 3646 net/quic/quic_framer_test.cc QuicEncryptedPacket encrypted(AsChars(packet), arraysize(packet), false); packet 3676 net/quic/quic_framer_test.cc unsigned char packet[kMaxPacketSize] = { packet 3696 net/quic/quic_framer_test.cc memset(packet + header_size + 1, 0x00, kMaxPacketSize - header_size - 1); packet 3699 net/quic/quic_framer_test.cc framer_.BuildUnsizedDataPacket(header, frames).packet); packet 3704 net/quic/quic_framer_test.cc AsChars(packet), packet 3705 net/quic/quic_framer_test.cc arraysize(packet)); packet 3724 net/quic/quic_framer_test.cc unsigned char packet[kMaxPacketSize] = { packet 3743 net/quic/quic_framer_test.cc memset(packet + header_size + 1, 0x00, kMaxPacketSize - header_size - 1); packet 3746 net/quic/quic_framer_test.cc framer_.BuildUnsizedDataPacket(header, frames).packet); packet 3751 net/quic/quic_framer_test.cc AsChars(packet), packet 3752 net/quic/quic_framer_test.cc arraysize(packet)); packet 3771 net/quic/quic_framer_test.cc unsigned char packet[kMaxPacketSize] = { packet 3790 net/quic/quic_framer_test.cc memset(packet + header_size + 1, 0x00, kMaxPacketSize - header_size - 1); packet 3793 net/quic/quic_framer_test.cc framer_.BuildUnsizedDataPacket(header, frames).packet); packet 3798 net/quic/quic_framer_test.cc AsChars(packet), packet 3799 net/quic/quic_framer_test.cc arraysize(packet)); packet 3818 net/quic/quic_framer_test.cc unsigned char packet[kMaxPacketSize] = { packet 3837 net/quic/quic_framer_test.cc memset(packet + header_size + 1, 0x00, kMaxPacketSize - header_size - 1); packet 3840 net/quic/quic_framer_test.cc framer_.BuildUnsizedDataPacket(header, frames).packet); packet 3845 net/quic/quic_framer_test.cc AsChars(packet), packet 3846 net/quic/quic_framer_test.cc arraysize(packet)); packet 3868 net/quic/quic_framer_test.cc unsigned char packet[] = { packet 3894 net/quic/quic_framer_test.cc framer_.BuildUnsizedDataPacket(header, frames).packet); packet 3899 net/quic/quic_framer_test.cc AsChars(packet), arraysize(packet)); packet 3921 net/quic/quic_framer_test.cc unsigned char packet[] = { packet 3950 net/quic/quic_framer_test.cc framer_.BuildUnsizedDataPacket(header, frames).packet); packet 3955 net/quic/quic_framer_test.cc AsChars(packet), arraysize(packet)); packet 3977 net/quic/quic_framer_test.cc unsigned char packet[] = { packet 4006 net/quic/quic_framer_test.cc framer_.BuildUnsizedDataPacket(header, frames).packet); packet 4011 net/quic/quic_framer_test.cc AsChars(packet), arraysize(packet)); packet 4020 net/quic/quic_framer_test.cc unsigned char packet[] = { packet 4037 net/quic/quic_framer_test.cc AsChars(packet), arraysize(packet)); packet 4063 net/quic/quic_framer_test.cc unsigned char packet[] = { packet 4096 net/quic/quic_framer_test.cc framer_.BuildUnsizedDataPacket(header, frames).packet); packet 4101 net/quic/quic_framer_test.cc AsChars(packet), arraysize(packet)); packet 4129 net/quic/quic_framer_test.cc unsigned char packet[] = { packet 4167 net/quic/quic_framer_test.cc framer_.BuildUnsizedDataPacket(header, frames).packet); packet 4172 net/quic/quic_framer_test.cc AsChars(packet), arraysize(packet)); packet 4200 net/quic/quic_framer_test.cc unsigned char packet[] = { packet 4236 net/quic/quic_framer_test.cc framer_.BuildUnsizedDataPacket(header, frames).packet); packet 4241 net/quic/quic_framer_test.cc AsChars(packet), arraysize(packet)); packet 4264 net/quic/quic_framer_test.cc unsigned char packet[] = { packet 4285 net/quic/quic_framer_test.cc framer_.BuildUnsizedDataPacket(header, frames).packet); packet 4290 net/quic/quic_framer_test.cc AsChars(packet), arraysize(packet)); packet 4313 net/quic/quic_framer_test.cc unsigned char packet[] = { packet 4336 net/quic/quic_framer_test.cc framer_.BuildUnsizedDataPacket(header, frames).packet); packet 4341 net/quic/quic_framer_test.cc AsChars(packet), arraysize(packet)); packet 4374 net/quic/quic_framer_test.cc unsigned char packet[] = { packet 4409 net/quic/quic_framer_test.cc framer_.BuildUnsizedDataPacket(header, frames).packet); packet 4414 net/quic/quic_framer_test.cc AsChars(packet), arraysize(packet)); packet 4447 net/quic/quic_framer_test.cc unsigned char packet[] = { packet 4484 net/quic/quic_framer_test.cc framer_.BuildUnsizedDataPacket(header, frames).packet); packet 4489 net/quic/quic_framer_test.cc AsChars(packet), arraysize(packet)); packet 4512 net/quic/quic_framer_test.cc unsigned char packet[] = { packet 4534 net/quic/quic_framer_test.cc framer_.BuildUnsizedDataPacket(header, frames).packet); packet 4539 net/quic/quic_framer_test.cc AsChars(packet), arraysize(packet)); packet 4560 net/quic/quic_framer_test.cc unsigned char packet[] = { packet 4581 net/quic/quic_framer_test.cc framer_.BuildUnsizedDataPacket(header, frames).packet); packet 4586 net/quic/quic_framer_test.cc AsChars(packet), arraysize(packet)); packet 4608 net/quic/quic_framer_test.cc data.reset(framer_.BuildUnsizedDataPacket(header, frames).packet), packet 4632 net/quic/quic_framer_test.cc unsigned char packet[] = { packet 4663 net/quic/quic_framer_test.cc framer_.BuildUnsizedDataPacket(header, frames).packet); packet 4668 net/quic/quic_framer_test.cc AsChars(packet), arraysize(packet)); packet 4691 net/quic/quic_framer_test.cc unsigned char packet[] = { packet 4725 net/quic/quic_framer_test.cc framer_.BuildUnsizedDataPacket(header, frames).packet); packet 4730 net/quic/quic_framer_test.cc AsChars(packet), arraysize(packet)); packet 4750 net/quic/quic_framer_test.cc unsigned char packet[] = { packet 4776 net/quic/quic_framer_test.cc framer_.BuildUnsizedDataPacket(header, frames).packet); packet 4781 net/quic/quic_framer_test.cc AsChars(packet), arraysize(packet)); packet 4802 net/quic/quic_framer_test.cc unsigned char packet[] = { packet 4830 net/quic/quic_framer_test.cc framer_.BuildUnsizedDataPacket(header, frames).packet); packet 4835 net/quic/quic_framer_test.cc AsChars(packet), arraysize(packet)); packet 4855 net/quic/quic_framer_test.cc unsigned char packet[] = { packet 4878 net/quic/quic_framer_test.cc framer_.BuildUnsizedDataPacket(header, frames).packet); packet 4882 net/quic/quic_framer_test.cc data->length(), AsChars(packet), packet 4883 net/quic/quic_framer_test.cc arraysize(packet)); packet 4909 net/quic/quic_framer_test.cc unsigned char packet[] = { packet 4929 net/quic/quic_framer_test.cc framer_.BuildUnsizedDataPacket(header, frames).packet); packet 4933 net/quic/quic_framer_test.cc data->length(), AsChars(packet), packet 4934 net/quic/quic_framer_test.cc arraysize(packet)); packet 4952 net/quic/quic_framer_test.cc unsigned char packet[] = { packet 4984 net/quic/quic_framer_test.cc AsChars(packet), arraysize(packet)); packet 4996 net/quic/quic_framer_test.cc unsigned char packet[] = { packet 5036 net/quic/quic_framer_test.cc AsChars(packet), arraysize(packet)); packet 5054 net/quic/quic_framer_test.cc unsigned char packet[] = { packet 5076 net/quic/quic_framer_test.cc framer_.BuildFecPacket(header, fec_data).packet); packet 5081 net/quic/quic_framer_test.cc AsChars(packet), arraysize(packet)); packet 5086 net/quic/quic_framer_test.cc unsigned char packet[] = { packet 5108 net/quic/quic_framer_test.cc QuicPacket::NewDataPacket(AsChars(packet), arraysize(packet), false, packet 5120 net/quic/quic_framer_test.cc unsigned char packet[] = { packet 5144 net/quic/quic_framer_test.cc QuicPacket::NewDataPacket(AsChars(packet), arraysize(packet), false, packet 5181 net/quic/quic_framer_test.cc framer_.BuildUnsizedDataPacket(header, frames).packet); packet 5231 net/quic/quic_framer_test.cc framer_.BuildUnsizedDataPacket(header, frames).packet); packet 5280 net/quic/quic_framer_test.cc framer_.BuildUnsizedDataPacket(header, frames).packet); packet 5299 net/quic/quic_framer_test.cc framer_.BuildUnsizedDataPacket(header, frames).packet); packet 5306 net/quic/quic_framer_test.cc unsigned char packet[] = { packet 5331 net/quic/quic_framer_test.cc QuicEncryptedPacket encrypted(AsChars(packet), arraysize(packet), false); packet 5341 net/quic/quic_framer_test.cc unsigned char packet[] = { packet 5368 net/quic/quic_framer_test.cc QuicEncryptedPacket encrypted(AsChars(packet), arraysize(packet), false); packet 5378 net/quic/quic_framer_test.cc unsigned char packet[] = { packet 5432 net/quic/quic_framer_test.cc QuicEncryptedPacket encrypted(AsChars(packet), arraysize(packet), false); packet 119 net/quic/quic_http_stream_test.cc PacketToWrite(IoMode mode, QuicEncryptedPacket* packet) packet 121 net/quic/quic_http_stream_test.cc packet(packet) { packet 124 net/quic/quic_http_stream_test.cc QuicEncryptedPacket* packet; packet 144 net/quic/quic_http_stream_test.cc delete writes_[i].packet; packet 149 net/quic/quic_http_stream_test.cc void AddWrite(scoped_ptr<QuicEncryptedPacket> packet) { packet 150 net/quic/quic_http_stream_test.cc writes_.push_back(PacketToWrite(SYNCHRONOUS, packet.release())); packet 155 net/quic/quic_http_stream_test.cc return writes_[pos].packet; packet 162 net/quic/quic_http_stream_test.cc void ProcessPacket(scoped_ptr<QuicEncryptedPacket> packet) { packet 163 net/quic/quic_http_stream_test.cc connection_->ProcessUdpPacket(self_addr_, peer_addr_, *packet); packet 171 net/quic/quic_http_stream_test.cc writes_[i].packet->data(), packet 172 net/quic/quic_http_stream_test.cc writes_[i].packet->length()); packet 73 net/quic/quic_network_transaction_unittest.cc void AddRead(scoped_ptr<QuicEncryptedPacket> packet) { packet 74 net/quic/quic_network_transaction_unittest.cc reads_.push_back(MockRead(SYNCHRONOUS, packet->data(), packet->length(), packet 76 net/quic/quic_network_transaction_unittest.cc packets_.push_back(packet.release()); packet 83 net/quic/quic_network_transaction_unittest.cc void AddWrite(scoped_ptr<QuicEncryptedPacket> packet) { packet 84 net/quic/quic_network_transaction_unittest.cc writes_.push_back(MockWrite(SYNCHRONOUS, packet->data(), packet->length(), packet 86 net/quic/quic_network_transaction_unittest.cc packets_.push_back(packet.release()); packet 252 net/quic/quic_packet_creator.cc SerializedPacket packet = SerializePacket(); packet 253 net/quic/quic_packet_creator.cc DCHECK(packet.retransmittable_frames == NULL); packet 254 net/quic/quic_packet_creator.cc return packet; packet 323 net/quic/quic_packet_creator.cc LOG_IF(DFATAL, !serialized.packet) packet 328 net/quic/quic_packet_creator.cc DCHECK_EQ(packet_size_, serialized.packet->length()); packet 348 net/quic/quic_packet_creator.cc LOG_IF(DFATAL, !serialized.packet) packet 350 net/quic/quic_packet_creator.cc DCHECK_GE(options_.max_packet_length, serialized.packet->length()); packet 45 net/quic/quic_packet_creator_test.cc void ProcessPacket(QuicPacket* packet) { packet 48 net/quic/quic_packet_creator_test.cc *packet)); packet 124 net/quic/quic_packet_creator_test.cc ProcessPacket(serialized.packet); packet 125 net/quic/quic_packet_creator_test.cc delete serialized.packet; packet 146 net/quic/quic_packet_creator_test.cc ProcessPacket(serialized.packet); packet 147 net/quic/quic_packet_creator_test.cc delete serialized.packet; packet 164 net/quic/quic_packet_creator_test.cc ProcessPacket(serialized.packet); packet 165 net/quic/quic_packet_creator_test.cc delete serialized.packet; packet 186 net/quic/quic_packet_creator_test.cc ProcessPacket(serialized.packet); packet 187 net/quic/quic_packet_creator_test.cc delete serialized.packet; packet 204 net/quic/quic_packet_creator_test.cc ProcessPacket(serialized.packet); packet 205 net/quic/quic_packet_creator_test.cc delete serialized.packet; packet 230 net/quic/quic_packet_creator_test.cc ProcessPacket(serialized.packet); packet 231 net/quic/quic_packet_creator_test.cc delete serialized.packet; packet 249 net/quic/quic_packet_creator_test.cc ProcessPacket(serialized.packet); packet 250 net/quic/quic_packet_creator_test.cc delete serialized.packet; packet 256 net/quic/quic_packet_creator_test.cc delete serialized.packet; packet 286 net/quic/quic_packet_creator_test.cc ProcessPacket(serialized.packet); packet 287 net/quic/quic_packet_creator_test.cc delete serialized.packet; packet 307 net/quic/quic_packet_creator_test.cc ProcessPacket(serialized.packet); packet 308 net/quic/quic_packet_creator_test.cc delete serialized.packet; packet 354 net/quic/quic_packet_creator_test.cc ASSERT_TRUE(serialized_packet.packet); packet 355 net/quic/quic_packet_creator_test.cc delete serialized_packet.packet; packet 382 net/quic/quic_packet_creator_test.cc ASSERT_TRUE(serialized_packet.packet); packet 383 net/quic/quic_packet_creator_test.cc delete serialized_packet.packet; packet 412 net/quic/quic_packet_creator_test.cc ASSERT_TRUE(serialized_packet.packet); packet 413 net/quic/quic_packet_creator_test.cc delete serialized_packet.packet; packet 435 net/quic/quic_packet_creator_test.cc ASSERT_TRUE(serialized_packet.packet); packet 441 net/quic/quic_packet_creator_test.cc - bytes_free, serialized_packet.packet->length()); packet 444 net/quic/quic_packet_creator_test.cc serialized_packet.packet->length()); packet 446 net/quic/quic_packet_creator_test.cc delete serialized_packet.packet; packet 468 net/quic/quic_packet_creator_test.cc ASSERT_TRUE(serialized_packet.packet); packet 471 net/quic/quic_packet_creator_test.cc - bytes_free, serialized_packet.packet->length()); packet 474 net/quic/quic_packet_creator_test.cc serialized_packet.packet->length()); packet 476 net/quic/quic_packet_creator_test.cc delete serialized_packet.packet; packet 583 net/quic/quic_packet_creator_test.cc ProcessPacket(serialized.packet); packet 585 net/quic/quic_packet_creator_test.cc delete serialized.packet; packet 649 net/quic/quic_packet_creator_test.cc ASSERT_TRUE(serialized.packet); packet 650 net/quic/quic_packet_creator_test.cc delete serialized.packet; packet 682 net/quic/quic_packet_creator_test.cc delete serialized.packet; packet 150 net/quic/quic_packet_generator.cc DCHECK(serialized_fec.packet); packet 189 net/quic/quic_packet_generator.cc DCHECK(serialized_fec.packet); packet 270 net/quic/quic_packet_generator.cc DCHECK(serialized_packet.packet); packet 275 net/quic/quic_packet_generator.cc DCHECK(serialized_fec.packet); packet 74 net/quic/quic_packet_generator.h virtual bool OnSerializedPacket(const SerializedPacket& packet) = 0; packet 43 net/quic/quic_packet_generator_test.cc MOCK_METHOD1(OnSerializedPacket, bool(const SerializedPacket& packet)); packet 117 net/quic/quic_packet_generator_test.cc delete packet_.packet; packet 119 net/quic/quic_packet_generator_test.cc delete packet2_.packet; packet 121 net/quic/quic_packet_generator_test.cc delete packet3_.packet; packet 123 net/quic/quic_packet_generator_test.cc delete packet4_.packet; packet 125 net/quic/quic_packet_generator_test.cc delete packet5_.packet; packet 157 net/quic/quic_packet_generator_test.cc const SerializedPacket& packet) { packet 165 net/quic/quic_packet_generator_test.cc ASSERT_TRUE(packet.retransmittable_frames == NULL); packet 167 net/quic/quic_packet_generator_test.cc ASSERT_TRUE(packet.retransmittable_frames != NULL); packet 169 net/quic/quic_packet_generator_test.cc packet.retransmittable_frames->frames().size()); packet 172 net/quic/quic_packet_generator_test.cc ASSERT_TRUE(packet.packet != NULL); packet 173 net/quic/quic_packet_generator_test.cc ASSERT_TRUE(simple_framer_.ProcessPacket(*packet.packet)); packet 191 net/quic/quic_packet_generator_test.cc void CheckPacketHasSingleStreamFrame(const SerializedPacket& packet) { packet 192 net/quic/quic_packet_generator_test.cc ASSERT_TRUE(packet.retransmittable_frames != NULL); packet 193 net/quic/quic_packet_generator_test.cc EXPECT_EQ(1u, packet.retransmittable_frames->frames().size()); packet 194 net/quic/quic_packet_generator_test.cc ASSERT_TRUE(packet.packet != NULL); packet 195 net/quic/quic_packet_generator_test.cc ASSERT_TRUE(simple_framer_.ProcessPacket(*packet.packet)); packet 200 net/quic/quic_packet_generator_test.cc void CheckPacketIsFec(const SerializedPacket& packet, packet 202 net/quic/quic_packet_generator_test.cc ASSERT_TRUE(packet.retransmittable_frames == NULL); packet 203 net/quic/quic_packet_generator_test.cc ASSERT_TRUE(packet.packet != NULL); packet 204 net/quic/quic_packet_generator_test.cc ASSERT_TRUE(simple_framer_.ProcessPacket(*packet.packet)); packet 699 net/quic/quic_protocol.cc QuicPacket* packet, packet 704 net/quic/quic_protocol.cc packet(packet), packet 979 net/quic/quic_protocol.h QuicPacket* packet, packet 986 net/quic/quic_protocol.h QuicPacket* packet; packet 127 net/quic/quic_sent_packet_manager_test.cc SerializedPacket packet(CreateDataPacket(sequence_number)); packet 128 net/quic/quic_sent_packet_manager_test.cc manager_.OnSerializedPacket(packet); packet 130 net/quic/quic_sent_packet_manager_test.cc packet.packet->length(), NOT_RETRANSMISSION, packet 137 net/quic/quic_sent_packet_manager_test.cc SerializedPacket packet(CreateDataPacket(sequence_number)); packet 138 net/quic/quic_sent_packet_manager_test.cc packet.retransmittable_frames->AddStreamFrame( packet 140 net/quic/quic_sent_packet_manager_test.cc manager_.OnSerializedPacket(packet); packet 142 net/quic/quic_sent_packet_manager_test.cc packet.packet->length(), NOT_RETRANSMISSION, packet 149 net/quic/quic_sent_packet_manager_test.cc SerializedPacket packet(CreateFecPacket(sequence_number)); packet 150 net/quic/quic_sent_packet_manager_test.cc manager_.OnSerializedPacket(packet); packet 152 net/quic/quic_sent_packet_manager_test.cc packet.packet->length(), NOT_RETRANSMISSION, packet 159 net/quic/quic_sent_packet_manager_test.cc SerializedPacket packet(CreatePacket(sequence_number, false)); packet 160 net/quic/quic_sent_packet_manager_test.cc manager_.OnSerializedPacket(packet); packet 162 net/quic/quic_sent_packet_manager_test.cc packet.packet->length(), NOT_RETRANSMISSION, packet 975 net/quic/quic_sent_packet_manager_test.cc SerializedPacket packet(CreateDataPacket(3)); packet 976 net/quic/quic_sent_packet_manager_test.cc manager_.OnSerializedPacket(packet); packet 1013 net/quic/quic_sent_packet_manager_test.cc SerializedPacket packet(CreateDataPacket(1)); packet 1014 net/quic/quic_sent_packet_manager_test.cc manager_.OnSerializedPacket(packet); packet 86 net/quic/test_tools/quic_test_packet_maker.cc scoped_ptr<QuicPacket> packet( packet 87 net/quic/test_tools/quic_test_packet_maker.cc framer.BuildUnsizedDataPacket(header, frames).packet); packet 89 net/quic/test_tools/quic_test_packet_maker.cc ENCRYPTION_NONE, header.packet_sequence_number, *packet)); packet 145 net/quic/test_tools/quic_test_packet_maker.cc scoped_ptr<QuicPacket> packet( packet 146 net/quic/test_tools/quic_test_packet_maker.cc framer.BuildUnsizedDataPacket(header, frames).packet); packet 148 net/quic/test_tools/quic_test_packet_maker.cc ENCRYPTION_NONE, header.packet_sequence_number, *packet)); packet 229 net/quic/test_tools/quic_test_packet_maker.cc scoped_ptr<QuicPacket> packet( packet 230 net/quic/test_tools/quic_test_packet_maker.cc framer.BuildUnsizedDataPacket(header, frames).packet); packet 232 net/quic/test_tools/quic_test_packet_maker.cc ENCRYPTION_NONE, header.packet_sequence_number, *packet)); packet 224 net/quic/test_tools/quic_test_utils.cc const QuicVersionNegotiationPacket& packet) { packet 225 net/quic/test_tools/quic_test_utils.cc version_negotiation_packet_.reset(new QuicVersionNegotiationPacket(packet)); packet 338 net/quic/test_tools/quic_test_utils.cc const SerializedPacket& packet, packet 340 net/quic/test_tools/quic_test_utils.cc packets_.push_back(packet.packet); packet 342 net/quic/test_tools/quic_test_utils.cc EncryptPacket(level, packet.sequence_number, *packet.packet); packet 497 net/quic/test_tools/quic_test_utils.cc scoped_ptr<QuicPacket> packet( packet 498 net/quic/test_tools/quic_test_utils.cc framer.BuildUnsizedDataPacket(header, frames).packet); packet 499 net/quic/test_tools/quic_test_utils.cc EXPECT_TRUE(packet != NULL); packet 502 net/quic/test_tools/quic_test_utils.cc *packet); packet 575 net/quic/test_tools/quic_test_utils.cc return quic_framer.BuildUnsizedDataPacket(header, frames).packet; packet 111 net/quic/test_tools/quic_test_utils.h void(const QuicVersionNegotiationPacket& packet)); packet 145 net/quic/test_tools/quic_test_utils.h const QuicPublicResetPacket& packet) OVERRIDE {} packet 147 net/quic/test_tools/quic_test_utils.h const QuicVersionNegotiationPacket& packet) OVERRIDE {} packet 180 net/quic/test_tools/quic_test_utils.h const QuicPublicResetPacket& packet) OVERRIDE; packet 200 net/quic/test_tools/quic_test_utils.h const QuicVersionNegotiationPacket& packet) OVERRIDE; packet 308 net/quic/test_tools/quic_test_utils.h const QuicEncryptedPacket& packet)); packet 327 net/quic/test_tools/quic_test_utils.h const QuicEncryptedPacket& packet) { packet 328 net/quic/test_tools/quic_test_utils.h QuicConnection::ProcessUdpPacket(self_address, peer_address, packet); packet 352 net/quic/test_tools/quic_test_utils.h const SerializedPacket& packet, packet 39 net/quic/test_tools/simple_quic_framer.cc const QuicPublicResetPacket& packet) OVERRIDE {} packet 41 net/quic/test_tools/simple_quic_framer.cc const QuicVersionNegotiationPacket& packet) OVERRIDE {} packet 178 net/quic/test_tools/simple_quic_framer.cc bool SimpleQuicFramer::ProcessPacket(const QuicPacket& packet) { packet 180 net/quic/test_tools/simple_quic_framer.cc ENCRYPTION_NONE, 0, packet)); packet 184 net/quic/test_tools/simple_quic_framer.cc bool SimpleQuicFramer::ProcessPacket(const QuicEncryptedPacket& packet) { packet 187 net/quic/test_tools/simple_quic_framer.cc return framer_.ProcessPacket(packet); packet 36 net/quic/test_tools/simple_quic_framer.h bool ProcessPacket(const QuicEncryptedPacket& packet); packet 37 net/quic/test_tools/simple_quic_framer.h bool ProcessPacket(const QuicPacket& packet); packet 345 net/tools/quic/quic_client.cc QuicEncryptedPacket packet(buf, bytes_read, false); packet 349 net/tools/quic/quic_client.cc client_address, server_address, packet); packet 185 net/tools/quic/quic_dispatcher.cc const QuicEncryptedPacket& packet) { packet 188 net/tools/quic/quic_dispatcher.cc current_packet_ = &packet; packet 192 net/tools/quic/quic_dispatcher.cc framer_.ProcessPacket(packet); packet 77 net/tools/quic/quic_dispatcher.h const QuicEncryptedPacket& packet); packet 124 net/tools/quic/quic_dispatcher_test.cc scoped_ptr<QuicEncryptedPacket> packet(ConstructEncryptedPacket( packet 126 net/tools/quic/quic_dispatcher_test.cc data_ = string(packet->data(), packet->length()); packet 127 net/tools/quic/quic_dispatcher_test.cc dispatcher_.ProcessPacket(server_address_, client_address, *packet.get()); packet 130 net/tools/quic/quic_dispatcher_test.cc void ValidatePacket(const QuicEncryptedPacket& packet) { packet 131 net/tools/quic/quic_dispatcher_test.cc EXPECT_EQ(data_.length(), packet.AsStringPiece().length()); packet 132 net/tools/quic/quic_dispatcher_test.cc EXPECT_EQ(data_, packet.AsStringPiece()); packet 216 net/tools/quic/quic_dispatcher_test.cc QuicPublicResetPacket packet; packet 217 net/tools/quic/quic_dispatcher_test.cc packet.public_header.connection_id = connection_id; packet 218 net/tools/quic/quic_dispatcher_test.cc packet.public_header.reset_flag = true; packet 219 net/tools/quic/quic_dispatcher_test.cc packet.public_header.version_flag = false; packet 220 net/tools/quic/quic_dispatcher_test.cc packet.rejected_sequence_number = 19191; packet 221 net/tools/quic/quic_dispatcher_test.cc packet.nonce_proof = 132232; packet 223 net/tools/quic/quic_dispatcher_test.cc QuicFramer::BuildPublicResetPacket(packet)); packet 242 net/tools/quic/quic_server.cc QuicEncryptedPacket packet(buf, bytes_read, false); packet 245 net/tools/quic/quic_server.cc dispatcher->ProcessPacket(server_address, client_address, packet); packet 28 net/tools/quic/quic_server_test.cc void DispatchPacket(const QuicEncryptedPacket& packet) { packet 30 net/tools/quic/quic_server_test.cc dispatcher_.ProcessPacket(server_addr, client_addr, packet); packet 68 net/tools/quic/quic_time_wait_list_manager.cc QuicEncryptedPacket* packet) packet 71 net/tools/quic/quic_time_wait_list_manager.cc packet_(packet) { packet 191 net/tools/quic/quic_time_wait_list_manager.cc QuicPublicResetPacket packet; packet 192 net/tools/quic/quic_time_wait_list_manager.cc packet.public_header.connection_id = connection_id; packet 193 net/tools/quic/quic_time_wait_list_manager.cc packet.public_header.reset_flag = true; packet 194 net/tools/quic/quic_time_wait_list_manager.cc packet.public_header.version_flag = false; packet 195 net/tools/quic/quic_time_wait_list_manager.cc packet.rejected_sequence_number = rejected_sequence_number; packet 197 net/tools/quic/quic_time_wait_list_manager.cc packet.nonce_proof = 1010101; packet 198 net/tools/quic/quic_time_wait_list_manager.cc packet.client_address = client_address; packet 202 net/tools/quic/quic_time_wait_list_manager.cc QuicFramer::BuildPublicResetPacket(packet)); packet 209 net/tools/quic/quic_time_wait_list_manager.cc void QuicTimeWaitListManager::SendOrQueuePacket(QueuedPacket* packet) { packet 210 net/tools/quic/quic_time_wait_list_manager.cc if (WriteToWire(packet)) { packet 211 net/tools/quic/quic_time_wait_list_manager.cc delete packet; packet 214 net/tools/quic/quic_time_wait_list_manager.cc pending_packets_queue_.push_back(packet); packet 224 net/tools/quic/quic_time_wait_list_manager.cc queued_packet->packet()->data(), packet 225 net/tools/quic/quic_time_wait_list_manager.cc queued_packet->packet()->length(), packet 111 net/tools/quic/quic_time_wait_list_manager.h void SendOrQueuePacket(QueuedPacket* packet); packet 117 net/tools/quic/quic_time_wait_list_manager.h bool WriteToWire(QueuedPacket* packet); packet 93 net/tools/quic/quic_time_wait_list_manager_test.cc QuicEncryptedPacket* packet) { packet 95 net/tools/quic/quic_time_wait_list_manager_test.cc connection_id, version, packet); packet 130 net/tools/quic/quic_time_wait_list_manager_test.cc scoped_ptr<QuicPacket> packet( packet 131 net/tools/quic/quic_time_wait_list_manager_test.cc framer_.BuildUnsizedDataPacket(header, frames).packet); packet 132 net/tools/quic/quic_time_wait_list_manager_test.cc EXPECT_TRUE(packet != NULL); packet 135 net/tools/quic/quic_time_wait_list_manager_test.cc *packet); packet 170 net/tools/quic/quic_time_wait_list_manager_test.cc QuicPublicResetPacket packet = visitor.public_reset_packet(); packet 171 net/tools/quic/quic_time_wait_list_manager_test.cc return connection_id_ == packet.public_header.connection_id && packet 172 net/tools/quic/quic_time_wait_list_manager_test.cc packet.public_header.reset_flag && !packet.public_header.version_flag && packet 173 net/tools/quic/quic_time_wait_list_manager_test.cc sequence_number_ == packet.rejected_sequence_number && packet 174 net/tools/quic/quic_time_wait_list_manager_test.cc net::test::TestPeerIPAddress() == packet.client_address.address() && packet 175 net/tools/quic/quic_time_wait_list_manager_test.cc kTestPort == packet.client_address.port(); packet 296 net/tools/quic/quic_time_wait_list_manager_test.cc scoped_ptr<QuicEncryptedPacket> packet(ConstructEncryptedPacket( packet 304 net/tools/quic/quic_time_wait_list_manager_test.cc .WillOnce(Return(WriteResult(WRITE_STATUS_OK, packet->length()))); packet 341 net/tools/quic/quic_time_wait_list_manager_test.cc .WillOnce(Return(WriteResult(WRITE_STATUS_OK, packet->length()))); packet 30 net/tools/quic/test_tools/mock_quic_dispatcher.h const QuicEncryptedPacket& packet)); packet 71 net/tools/quic/test_tools/quic_test_utils.h const QuicEncryptedPacket& packet)); packet 92 net/tools/quic/test_tools/quic_test_utils.h const QuicEncryptedPacket& packet) { packet 93 net/tools/quic/test_tools/quic_test_utils.h return QuicConnection::ProcessUdpPacket(self_address, peer_address, packet); packet 23 remoting/client/audio_decode_scheduler.cc void ProcessAudioPacket(scoped_ptr<AudioPacket> packet, packet 35 remoting/client/audio_decode_scheduler.cc void DecodePacket(scoped_ptr<AudioPacket> packet, const base::Closure& done); packet 38 remoting/client/audio_decode_scheduler.cc void ProcessDecodedPacket(scoped_ptr<AudioPacket> packet, packet 68 remoting/client/audio_decode_scheduler.cc scoped_ptr<AudioPacket> packet, packet 73 remoting/client/audio_decode_scheduler.cc base::Passed(&packet), done)); packet 82 remoting/client/audio_decode_scheduler.cc scoped_ptr<AudioPacket> packet, packet 85 remoting/client/audio_decode_scheduler.cc scoped_ptr<AudioPacket> decoded_packet = decoder_->Decode(packet.Pass()); packet 93 remoting/client/audio_decode_scheduler.cc scoped_ptr<AudioPacket> packet, packet 97 remoting/client/audio_decode_scheduler.cc if (packet.get() && audio_player_.get()) packet 98 remoting/client/audio_decode_scheduler.cc audio_player_->ProcessAudioPacket(packet.Pass()); packet 118 remoting/client/audio_decode_scheduler.cc void AudioDecodeScheduler::ProcessAudioPacket(scoped_ptr<AudioPacket> packet, packet 120 remoting/client/audio_decode_scheduler.cc core_->ProcessAudioPacket(packet.Pass(), done); packet 38 remoting/client/audio_decode_scheduler.h virtual void ProcessAudioPacket(scoped_ptr<AudioPacket> packet, packet 34 remoting/client/audio_player.cc void AudioPlayer::ProcessAudioPacket(scoped_ptr<AudioPacket> packet) { packet 35 remoting/client/audio_player.cc CHECK_EQ(1, packet->data_size()); packet 36 remoting/client/audio_player.cc DCHECK_EQ(AudioPacket::ENCODING_RAW, packet->encoding()); packet 37 remoting/client/audio_player.cc DCHECK_NE(AudioPacket::SAMPLING_RATE_INVALID, packet->sampling_rate()); packet 38 remoting/client/audio_player.cc DCHECK_EQ(kSampleSizeBytes, packet->bytes_per_sample()); packet 39 remoting/client/audio_player.cc DCHECK_EQ(static_cast<int>(kChannels), packet->channels()); packet 40 remoting/client/audio_player.cc DCHECK_EQ(packet->data(0).size() % (kChannels * kSampleSizeBytes), 0u); packet 48 remoting/client/audio_player.cc if (sampling_rate_ != packet->sampling_rate()) { packet 56 remoting/client/audio_player.cc sampling_rate_ = packet->sampling_rate(); packet 66 remoting/client/audio_player.cc queued_bytes_ += packet->data(0).size(); packet 67 remoting/client/audio_player.cc queued_packets_.push_back(packet.release()); packet 20 remoting/client/audio_player.h void ProcessAudioPacket(scoped_ptr<AudioPacket> packet); packet 94 remoting/client/audio_player_unittest.cc scoped_ptr<AudioPacket> packet(new AudioPacket()); packet 95 remoting/client/audio_player_unittest.cc packet->set_encoding(AudioPacket::ENCODING_RAW); packet 96 remoting/client/audio_player_unittest.cc packet->set_sampling_rate(rate); packet 97 remoting/client/audio_player_unittest.cc packet->set_bytes_per_sample(AudioPacket::BYTES_PER_SAMPLE_2); packet 98 remoting/client/audio_player_unittest.cc packet->set_channels(AudioPacket::CHANNELS_STEREO); packet 103 remoting/client/audio_player_unittest.cc packet->add_data(data); packet 105 remoting/client/audio_player_unittest.cc return packet.Pass(); packet 121 remoting/client/audio_player_unittest.cc scoped_ptr<AudioPacket> packet(CreatePacket44100Hz(10)); packet 122 remoting/client/audio_player_unittest.cc audio_->ProcessAudioPacket(packet.Pass()); packet 171 remoting/client/audio_player_unittest.cc scoped_ptr<AudioPacket> packet(CreatePacket44100Hz(packet1_samples)); packet 173 remoting/client/audio_player_unittest.cc audio_->ProcessAudioPacket(packet.Pass()); packet 121 remoting/client/plugin/media_source_video_renderer.cc scoped_ptr<VideoPacket> packet, packet 127 remoting/client/plugin/media_source_video_renderer.cc if (!packet->data().size()) packet 132 remoting/client/plugin/media_source_video_renderer.cc stats_.video_bandwidth()->Record(packet->data().size()); packet 133 remoting/client/plugin/media_source_video_renderer.cc if (packet->has_capture_time_ms()) packet 134 remoting/client/plugin/media_source_video_renderer.cc stats_.video_capture_ms()->Record(packet->capture_time_ms()); packet 135 remoting/client/plugin/media_source_video_renderer.cc if (packet->has_encode_time_ms()) packet 136 remoting/client/plugin/media_source_video_renderer.cc stats_.video_encode_ms()->Record(packet->encode_time_ms()); packet 137 remoting/client/plugin/media_source_video_renderer.cc if (packet->has_client_sequence_number() && packet 138 remoting/client/plugin/media_source_video_renderer.cc packet->client_sequence_number() > latest_sequence_number_) { packet 139 remoting/client/plugin/media_source_video_renderer.cc latest_sequence_number_ = packet->client_sequence_number(); packet 142 remoting/client/plugin/media_source_video_renderer.cc base::Time::FromInternalValue(packet->client_sequence_number()); packet 148 remoting/client/plugin/media_source_video_renderer.cc webrtc::DesktopSize frame_size(packet->format().screen_width(), packet 149 remoting/client/plugin/media_source_video_renderer.cc packet->format().screen_height()); packet 157 remoting/client/plugin/media_source_video_renderer.cc webrtc::DesktopVector frame_dpi(packet->format().x_dpi(), packet 158 remoting/client/plugin/media_source_video_renderer.cc packet->format().y_dpi()); packet 166 remoting/client/plugin/media_source_video_renderer.cc if (packet->has_use_desktop_shape()) { packet 167 remoting/client/plugin/media_source_video_renderer.cc for (int i = 0; i < packet->desktop_shape_rects_size(); ++i) { packet 168 remoting/client/plugin/media_source_video_renderer.cc Rect remoting_rect = packet->desktop_shape_rects(i); packet 185 remoting/client/plugin/media_source_video_renderer.cc writer_->OnVideoFrame(packet->data()); packet 50 remoting/client/plugin/media_source_video_renderer.h virtual void ProcessVideoPacket(scoped_ptr<VideoPacket> packet, packet 44 remoting/client/software_video_renderer.cc virtual bool DecodePacket(const VideoPacket& packet) OVERRIDE { packet 45 remoting/client/software_video_renderer.cc return parent_->DecodePacket(packet); packet 97 remoting/client/software_video_renderer.cc void DecodePacket(scoped_ptr<VideoPacket> packet, const base::Closure& done); packet 165 remoting/client/software_video_renderer.cc void SoftwareVideoRenderer::Core::DecodePacket(scoped_ptr<VideoPacket> packet, packet 173 remoting/client/software_video_renderer.cc if (packet->format().has_screen_width() && packet 174 remoting/client/software_video_renderer.cc packet->format().has_screen_height()) { packet 175 remoting/client/software_video_renderer.cc webrtc::DesktopSize source_size(packet->format().screen_width(), packet 176 remoting/client/software_video_renderer.cc packet->format().screen_height()); packet 183 remoting/client/software_video_renderer.cc if (packet->format().has_x_dpi() && packet->format().has_y_dpi()) { packet 184 remoting/client/software_video_renderer.cc webrtc::DesktopVector source_dpi(packet->format().x_dpi(), packet 185 remoting/client/software_video_renderer.cc packet->format().y_dpi()); packet 203 remoting/client/software_video_renderer.cc if (decoder_->DecodePacket(*packet.get())) { packet 344 remoting/client/software_video_renderer.cc void SoftwareVideoRenderer::ProcessVideoPacket(scoped_ptr<VideoPacket> packet, packet 350 remoting/client/software_video_renderer.cc if (!packet->has_data() || packet->data().size() == 0) { packet 359 remoting/client/software_video_renderer.cc stats_.video_bandwidth()->Record(packet->data().size()); packet 360 remoting/client/software_video_renderer.cc if (packet->has_capture_time_ms()) packet 361 remoting/client/software_video_renderer.cc stats_.video_capture_ms()->Record(packet->capture_time_ms()); packet 362 remoting/client/software_video_renderer.cc if (packet->has_encode_time_ms()) packet 363 remoting/client/software_video_renderer.cc stats_.video_encode_ms()->Record(packet->encode_time_ms()); packet 364 remoting/client/software_video_renderer.cc if (packet->has_client_sequence_number() && packet 365 remoting/client/software_video_renderer.cc packet->client_sequence_number() > latest_sequence_number_) { packet 366 remoting/client/software_video_renderer.cc latest_sequence_number_ = packet->client_sequence_number(); packet 369 remoting/client/software_video_renderer.cc base::Time::FromInternalValue(packet->client_sequence_number()); packet 382 remoting/client/software_video_renderer.cc base::Unretained(core_.get()), base::Passed(&packet), decode_done)); packet 47 remoting/client/software_video_renderer.h virtual void ProcessVideoPacket(scoped_ptr<VideoPacket> packet, packet 27 remoting/codec/audio_decoder.h virtual scoped_ptr<AudioPacket> Decode(scoped_ptr<AudioPacket> packet) = 0; packet 54 remoting/codec/audio_decoder_opus.cc bool AudioDecoderOpus::ResetForPacket(AudioPacket* packet) { packet 55 remoting/codec/audio_decoder_opus.cc if (packet->channels() != channels_ || packet 56 remoting/codec/audio_decoder_opus.cc packet->sampling_rate() != sampling_rate_) { packet 59 remoting/codec/audio_decoder_opus.cc channels_ = packet->channels(); packet 60 remoting/codec/audio_decoder_opus.cc sampling_rate_ = packet->sampling_rate(); packet 80 remoting/codec/audio_decoder_opus.cc scoped_ptr<AudioPacket> packet) { packet 81 remoting/codec/audio_decoder_opus.cc if (packet->encoding() != AudioPacket::ENCODING_OPUS) { packet 83 remoting/codec/audio_decoder_opus.cc << packet->encoding() << " when an OPUS packet was expected."; packet 86 remoting/codec/audio_decoder_opus.cc if (packet->data_size() > kMaxFramesPerPacket) { packet 91 remoting/codec/audio_decoder_opus.cc if (!ResetForPacket(packet.get())) { packet 100 remoting/codec/audio_decoder_opus.cc decoded_packet->set_channels(packet->channels()); packet 108 remoting/codec/audio_decoder_opus.cc decoded_data->resize(packet->data_size() * max_frame_bytes); packet 111 remoting/codec/audio_decoder_opus.cc for (int i = 0; i < packet->data_size(); ++i) { packet 116 remoting/codec/audio_decoder_opus.cc std::string* frame = packet->mutable_data(i); packet 127 remoting/codec/audio_decoder_opus.cc buffer_pos += result * packet->channels() * packet 25 remoting/codec/audio_decoder_opus.h scoped_ptr<AudioPacket> packet) OVERRIDE; packet 30 remoting/codec/audio_decoder_opus.h bool ResetForPacket(AudioPacket* packet); packet 19 remoting/codec/audio_decoder_verbatim.cc scoped_ptr<AudioPacket> packet) { packet 21 remoting/codec/audio_decoder_verbatim.cc if ((packet->encoding() != AudioPacket::ENCODING_RAW) || packet 22 remoting/codec/audio_decoder_verbatim.cc (packet->data_size() != 1) || packet 23 remoting/codec/audio_decoder_verbatim.cc (packet->sampling_rate() == AudioPacket::SAMPLING_RATE_INVALID) || packet 24 remoting/codec/audio_decoder_verbatim.cc (packet->bytes_per_sample() != AudioPacket::BYTES_PER_SAMPLE_2) || packet 25 remoting/codec/audio_decoder_verbatim.cc (packet->channels() != AudioPacket::CHANNELS_STEREO) || packet 26 remoting/codec/audio_decoder_verbatim.cc (packet->data(0).size() % packet 31 remoting/codec/audio_decoder_verbatim.cc return packet.Pass(); packet 23 remoting/codec/audio_decoder_verbatim.h scoped_ptr<AudioPacket> packet) OVERRIDE; packet 18 remoting/codec/audio_encoder.h virtual scoped_ptr<AudioPacket> Encode(scoped_ptr<AudioPacket> packet) = 0; packet 102 remoting/codec/audio_encoder_opus.cc bool AudioEncoderOpus::ResetForPacket(AudioPacket* packet) { packet 103 remoting/codec/audio_encoder_opus.cc if (packet->channels() != channels_ || packet 104 remoting/codec/audio_encoder_opus.cc packet->sampling_rate() != sampling_rate_) { packet 107 remoting/codec/audio_encoder_opus.cc channels_ = packet->channels(); packet 108 remoting/codec/audio_encoder_opus.cc sampling_rate_ = packet->sampling_rate(); packet 138 remoting/codec/audio_encoder_opus.cc scoped_ptr<AudioPacket> packet) { packet 139 remoting/codec/audio_encoder_opus.cc DCHECK_EQ(AudioPacket::ENCODING_RAW, packet->encoding()); packet 140 remoting/codec/audio_encoder_opus.cc DCHECK_EQ(1, packet->data_size()); packet 141 remoting/codec/audio_encoder_opus.cc DCHECK_EQ(kBytesPerSample, packet->bytes_per_sample()); packet 143 remoting/codec/audio_encoder_opus.cc if (!ResetForPacket(packet.get())) { packet 148 remoting/codec/audio_encoder_opus.cc int samples_in_packet = packet->data(0).size() / kBytesPerSample / channels_; packet 150 remoting/codec/audio_encoder_opus.cc reinterpret_cast<const int16*>(packet->data(0).data()); packet 30 remoting/codec/audio_encoder_opus.h scoped_ptr<AudioPacket> packet) OVERRIDE; packet 35 remoting/codec/audio_encoder_opus.h bool ResetForPacket(AudioPacket* packet); packet 77 remoting/codec/audio_encoder_opus_unittest.cc scoped_ptr<AudioPacket> packet(new AudioPacket()); packet 78 remoting/codec/audio_encoder_opus_unittest.cc packet->add_data(reinterpret_cast<char*>(&(data[0])), packet 80 remoting/codec/audio_encoder_opus_unittest.cc packet->set_encoding(AudioPacket::ENCODING_RAW); packet 81 remoting/codec/audio_encoder_opus_unittest.cc packet->set_sampling_rate(rate); packet 82 remoting/codec/audio_encoder_opus_unittest.cc packet->set_bytes_per_sample(AudioPacket::BYTES_PER_SAMPLE_2); packet 83 remoting/codec/audio_encoder_opus_unittest.cc packet->set_channels(AudioPacket::CHANNELS_STEREO); packet 84 remoting/codec/audio_encoder_opus_unittest.cc return packet.Pass(); packet 17 remoting/codec/audio_encoder_verbatim.cc scoped_ptr<AudioPacket> packet) { packet 18 remoting/codec/audio_encoder_verbatim.cc DCHECK_EQ(AudioPacket::ENCODING_RAW, packet->encoding()); packet 19 remoting/codec/audio_encoder_verbatim.cc DCHECK_EQ(1, packet->data_size()); packet 20 remoting/codec/audio_encoder_verbatim.cc DCHECK_NE(AudioPacket::SAMPLING_RATE_INVALID, packet->sampling_rate()); packet 21 remoting/codec/audio_encoder_verbatim.cc DCHECK_NE(AudioPacket::BYTES_PER_SAMPLE_INVALID, packet->bytes_per_sample()); packet 22 remoting/codec/audio_encoder_verbatim.cc DCHECK_NE(AudioPacket::CHANNELS_INVALID, packet->channels()); packet 23 remoting/codec/audio_encoder_verbatim.cc return packet.Pass(); packet 21 remoting/codec/audio_encoder_verbatim.h scoped_ptr<AudioPacket> packet) OVERRIDE; packet 80 remoting/codec/codec_test.cc void ReceivedPacket(VideoPacket* packet) { packet 81 remoting/codec/codec_test.cc ASSERT_TRUE(decoder_->DecodePacket(*packet)); packet 94 remoting/codec/codec_test.cc void ReceivedScopedPacket(scoped_ptr<VideoPacket> packet) { packet 95 remoting/codec/codec_test.cc ReceivedPacket(packet.get()); packet 215 remoting/codec/codec_test.cc void DataAvailable(scoped_ptr<VideoPacket> packet) { packet 219 remoting/codec/codec_test.cc decoder_tester_->ReceivedPacket(packet.get()); packet 256 remoting/codec/codec_test.cc scoped_ptr<VideoPacket> packet = encoder->Encode(*frame); packet 257 remoting/codec/codec_test.cc tester->DataAvailable(packet.Pass()); packet 306 remoting/codec/codec_test.cc scoped_ptr<VideoPacket> packet = encoder->Encode(*frame); packet 307 remoting/codec/codec_test.cc encoder_tester->DataAvailable(packet.Pass()); packet 366 remoting/codec/codec_test.cc scoped_ptr<VideoPacket> packet = encoder->Encode(*frame); packet 367 remoting/codec/codec_test.cc decoder_tester.ReceivedScopedPacket(packet.Pass()); packet 34 remoting/codec/video_decoder.h virtual bool DecodePacket(const VideoPacket& packet) = 0; packet 29 remoting/codec/video_decoder_verbatim.cc bool VideoDecoderVerbatim::DecodePacket(const VideoPacket& packet) { packet 32 remoting/codec/video_decoder_verbatim.cc const char* in = packet.data().data(); packet 34 remoting/codec/video_decoder_verbatim.cc for (int i = 0; i < packet.dirty_rects_size(); ++i) { packet 35 remoting/codec/video_decoder_verbatim.cc Rect proto_rect = packet.dirty_rects(i); packet 52 remoting/codec/video_decoder_verbatim.cc if (in + rect_row_size > packet.data().data() + packet.data().size()) { packet 62 remoting/codec/video_decoder_verbatim.cc if (in != packet.data().data() + packet.data().size()) { packet 27 remoting/codec/video_decoder_verbatim.h virtual bool DecodePacket(const VideoPacket& packet) OVERRIDE; packet 94 remoting/codec/video_decoder_vpx.cc bool VideoDecoderVpx::DecodePacket(const VideoPacket& packet) { packet 99 remoting/codec/video_decoder_vpx.cc codec_.get(), reinterpret_cast<const uint8*>(packet.data().data()), packet 100 remoting/codec/video_decoder_vpx.cc packet.data().size(), NULL, 0); packet 118 remoting/codec/video_decoder_vpx.cc for (int i = 0; i < packet.dirty_rects_size(); ++i) { packet 119 remoting/codec/video_decoder_vpx.cc Rect remoting_rect = packet.dirty_rects(i); packet 129 remoting/codec/video_decoder_vpx.cc if (packet.has_use_desktop_shape()) { packet 130 remoting/codec/video_decoder_vpx.cc for (int i = 0; i < packet.desktop_shape_rects_size(); ++i) { packet 131 remoting/codec/video_decoder_vpx.cc Rect remoting_rect = packet.desktop_shape_rects(i); packet 29 remoting/codec/video_decoder_vpx.h virtual bool DecodePacket(const VideoPacket& packet) OVERRIDE; packet 24 remoting/codec/video_encoder_verbatim.cc scoped_ptr<VideoPacket> packet(new VideoPacket()); packet 26 remoting/codec/video_encoder_verbatim.cc VideoPacketFormat* format = packet->mutable_format(); packet 43 remoting/codec/video_encoder_verbatim.cc uint8_t* out = GetOutputBuffer(packet.get(), output_size); packet 59 remoting/codec/video_encoder_verbatim.cc Rect* dirty_rect = packet->add_dirty_rects(); packet 66 remoting/codec/video_encoder_verbatim.cc packet->set_capture_time_ms(frame.capture_time_ms()); packet 67 remoting/codec/video_encoder_verbatim.cc packet->set_encode_time_ms( packet 70 remoting/codec/video_encoder_verbatim.cc packet->mutable_format()->set_x_dpi(frame.dpi().x()); packet 71 remoting/codec/video_encoder_verbatim.cc packet->mutable_format()->set_y_dpi(frame.dpi().y()); packet 74 remoting/codec/video_encoder_verbatim.cc return packet.Pass(); packet 77 remoting/codec/video_encoder_verbatim.cc uint8_t* VideoEncoderVerbatim::GetOutputBuffer(VideoPacket* packet, packet 79 remoting/codec/video_encoder_verbatim.cc packet->mutable_data()->resize(size); packet 80 remoting/codec/video_encoder_verbatim.cc return reinterpret_cast<uint8_t*>(string_as_array(packet->mutable_data())); packet 28 remoting/codec/video_encoder_verbatim.h uint8* GetOutputBuffer(VideoPacket* packet, size_t size); packet 188 remoting/codec/video_encoder_vpx.cc scoped_ptr<VideoPacket> packet(new VideoPacket()); packet 199 remoting/codec/video_encoder_vpx.cc packet->set_data(vpx_packet->data.frame.buf, vpx_packet->data.frame.sz); packet 207 remoting/codec/video_encoder_vpx.cc packet->mutable_format()->set_encoding(VideoPacketFormat::ENCODING_VP8); packet 208 remoting/codec/video_encoder_vpx.cc packet->mutable_format()->set_screen_width(frame.size().width()); packet 209 remoting/codec/video_encoder_vpx.cc packet->mutable_format()->set_screen_height(frame.size().height()); packet 210 remoting/codec/video_encoder_vpx.cc packet->set_capture_time_ms(frame.capture_time_ms()); packet 211 remoting/codec/video_encoder_vpx.cc packet->set_encode_time_ms( packet 214 remoting/codec/video_encoder_vpx.cc packet->mutable_format()->set_x_dpi(frame.dpi().x()); packet 215 remoting/codec/video_encoder_vpx.cc packet->mutable_format()->set_y_dpi(frame.dpi().y()); packet 219 remoting/codec/video_encoder_vpx.cc Rect* rect = packet->add_dirty_rects(); packet 226 remoting/codec/video_encoder_vpx.cc return packet.Pass(); packet 40 remoting/codec/video_encoder_vpx_unittest.cc scoped_ptr<VideoPacket> packet = encoder->Encode(*frame); packet 41 remoting/codec/video_encoder_vpx_unittest.cc EXPECT_TRUE(packet); packet 46 remoting/codec/video_encoder_vpx_unittest.cc packet = encoder->Encode(*frame); packet 47 remoting/codec/video_encoder_vpx_unittest.cc EXPECT_TRUE(packet); packet 61 remoting/codec/video_encoder_vpx_unittest.cc scoped_ptr<VideoPacket> packet = encoder->Encode(*frame); packet 62 remoting/codec/video_encoder_vpx_unittest.cc EXPECT_EQ(packet->format().x_dpi(), 96); packet 63 remoting/codec/video_encoder_vpx_unittest.cc EXPECT_EQ(packet->format().y_dpi(), 97); packet 17 remoting/host/audio_capturer.h typedef base::Callback<void(scoped_ptr<AudioPacket> packet)> packet 72 remoting/host/audio_capturer_linux.cc scoped_ptr<AudioPacket> packet(new AudioPacket()); packet 73 remoting/host/audio_capturer_linux.cc packet->add_data(data->data()); packet 74 remoting/host/audio_capturer_linux.cc packet->set_encoding(AudioPacket::ENCODING_RAW); packet 75 remoting/host/audio_capturer_linux.cc packet->set_sampling_rate(kSamplingRate); packet 76 remoting/host/audio_capturer_linux.cc packet->set_bytes_per_sample(AudioPacket::BYTES_PER_SAMPLE_2); packet 77 remoting/host/audio_capturer_linux.cc packet->set_channels(AudioPacket::CHANNELS_STEREO); packet 78 remoting/host/audio_capturer_linux.cc callback_.Run(packet.Pass()); packet 248 remoting/host/audio_capturer_win.cc scoped_ptr<AudioPacket> packet = packet 250 remoting/host/audio_capturer_win.cc packet->add_data(data, frames * wave_format_ex_->nBlockAlign); packet 251 remoting/host/audio_capturer_win.cc packet->set_encoding(AudioPacket::ENCODING_RAW); packet 252 remoting/host/audio_capturer_win.cc packet->set_sampling_rate(sampling_rate_); packet 253 remoting/host/audio_capturer_win.cc packet->set_bytes_per_sample(AudioPacket::BYTES_PER_SAMPLE_2); packet 254 remoting/host/audio_capturer_win.cc packet->set_channels(AudioPacket::CHANNELS_STEREO); packet 256 remoting/host/audio_capturer_win.cc callback_.Run(packet.Pass()); packet 82 remoting/host/audio_scheduler.cc void AudioScheduler::EncodeAudioPacket(scoped_ptr<AudioPacket> packet) { packet 84 remoting/host/audio_scheduler.cc DCHECK(packet.get()); packet 90 remoting/host/audio_scheduler.cc audio_encoder_->Encode(packet.Pass()); packet 100 remoting/host/audio_scheduler.cc void AudioScheduler::SendAudioPacket(scoped_ptr<AudioPacket> packet) { packet 102 remoting/host/audio_scheduler.cc DCHECK(packet.get()); packet 107 remoting/host/audio_scheduler.cc audio_stub_->ProcessAudioPacket(packet.Pass(), base::Closure()); packet 64 remoting/host/audio_scheduler.h void EncodeAudioPacket(scoped_ptr<AudioPacket> packet); packet 67 remoting/host/audio_scheduler.h void SendAudioPacket(scoped_ptr<AudioPacket> packet); packet 350 remoting/host/desktop_session_agent.cc void DesktopSessionAgent::ProcessAudioPacket(scoped_ptr<AudioPacket> packet) { packet 354 remoting/host/desktop_session_agent.cc if (!packet->SerializeToString(&serialized_packet)) { packet 90 remoting/host/desktop_session_agent.h void ProcessAudioPacket(scoped_ptr<AudioPacket> packet); packet 448 remoting/host/desktop_session_proxy.cc scoped_ptr<AudioPacket> packet(new AudioPacket()); packet 449 remoting/host/desktop_session_proxy.cc if (!packet->ParseFromString(serialized_packet)) { packet 457 remoting/host/desktop_session_proxy.cc base::Passed(&packet))); packet 39 remoting/host/ipc_audio_capturer.cc void IpcAudioCapturer::OnAudioPacket(scoped_ptr<AudioPacket> packet) { packet 40 remoting/host/ipc_audio_capturer.cc callback_.Run(packet.Pass()); packet 31 remoting/host/ipc_audio_capturer.h void OnAudioPacket(scoped_ptr<AudioPacket> packet); packet 246 remoting/host/video_scheduler.cc void VideoScheduler::SendVideoPacket(scoped_ptr<VideoPacket> packet) { packet 253 remoting/host/video_scheduler.cc packet.Pass(), base::Bind(&VideoScheduler::VideoFrameSentCallback, this)); packet 285 remoting/host/video_scheduler.cc scoped_ptr<VideoPacket> packet(new VideoPacket()); packet 286 remoting/host/video_scheduler.cc packet->set_client_sequence_number(sequence_number); packet 289 remoting/host/video_scheduler.cc base::Passed(&packet))); packet 294 remoting/host/video_scheduler.cc scoped_ptr<VideoPacket> packet = encoder_->Encode(*frame); packet 295 remoting/host/video_scheduler.cc packet->set_client_sequence_number(sequence_number); packet 303 remoting/host/video_scheduler.cc base::TimeDelta::FromMilliseconds(packet->encode_time_ms())); packet 306 remoting/host/video_scheduler.cc base::Passed(&packet))); packet 139 remoting/host/video_scheduler.h void SendVideoPacket(scoped_ptr<VideoPacket> packet); packet 155 remoting/host/video_scheduler.h scoped_ptr<VideoPacket> packet); packet 39 remoting/host/video_scheduler_unittest.cc scoped_ptr<VideoPacket> packet(new VideoPacket()); packet 40 remoting/host/video_scheduler_unittest.cc return packet.release(); packet 271 remoting/jingle_glue/chromium_socket_factory.cc PendingPacket& packet = send_queue_.front(); packet 273 remoting/jingle_glue/chromium_socket_factory.cc packet.data.get(), packet 274 remoting/jingle_glue/chromium_socket_factory.cc packet.data->size(), packet 275 remoting/jingle_glue/chromium_socket_factory.cc packet.address, packet 38 remoting/protocol/audio_reader.cc void AudioReader::OnNewData(scoped_ptr<AudioPacket> packet, packet 40 remoting/protocol/audio_reader.cc audio_stub_->ProcessAudioPacket(packet.Pass(), done_task); packet 39 remoting/protocol/audio_reader.h void OnNewData(scoped_ptr<AudioPacket> packet, packet 31 remoting/protocol/audio_writer.cc void AudioWriter::ProcessAudioPacket(scoped_ptr<AudioPacket> packet, packet 33 remoting/protocol/audio_writer.cc buffered_writer_.Write(SerializeAndFrameMessage(*packet), done); packet 38 remoting/protocol/audio_writer.h virtual void ProcessAudioPacket(scoped_ptr<AudioPacket> packet, packet 28 remoting/protocol/channel_multiplexer.cc PendingPacket(scoped_ptr<MultiplexPacket> packet, packet 30 remoting/protocol/channel_multiplexer.cc : packet(packet.Pass()), packet 38 remoting/protocol/channel_multiplexer.cc bool is_empty() { return pos >= packet->data().size(); } packet 41 remoting/protocol/channel_multiplexer.cc size = std::min(size, packet->data().size() - pos); packet 42 remoting/protocol/channel_multiplexer.cc memcpy(buffer, packet->data().data() + pos, size); packet 48 remoting/protocol/channel_multiplexer.cc scoped_ptr<MultiplexPacket> packet; packet 80 remoting/protocol/channel_multiplexer.cc void OnIncomingPacket(scoped_ptr<MultiplexPacket> packet, packet 86 remoting/protocol/channel_multiplexer.cc bool DoWrite(scoped_ptr<MultiplexPacket> packet, packet 221 remoting/protocol/channel_multiplexer.cc scoped_ptr<MultiplexPacket> packet, packet 223 remoting/protocol/channel_multiplexer.cc DCHECK_EQ(packet->channel_id(), receive_id_); packet 224 remoting/protocol/channel_multiplexer.cc if (packet->data().size() > 0) { packet 225 remoting/protocol/channel_multiplexer.cc pending_packets_.push_back(new PendingPacket(packet.Pass(), done_task)); packet 244 remoting/protocol/channel_multiplexer.cc scoped_ptr<MultiplexPacket> packet, packet 246 remoting/protocol/channel_multiplexer.cc packet->set_channel_id(send_id_); packet 248 remoting/protocol/channel_multiplexer.cc packet->set_channel_name(name_); packet 251 remoting/protocol/channel_multiplexer.cc return multiplexer_->DoWrite(packet.Pass(), done_task); packet 304 remoting/protocol/channel_multiplexer.cc scoped_ptr<MultiplexPacket> packet(new MultiplexPacket()); packet 306 remoting/protocol/channel_multiplexer.cc packet->mutable_data()->assign(buffer->data(), size); packet 309 remoting/protocol/channel_multiplexer.cc bool result = channel_->DoWrite(packet.Pass(), base::Bind( packet 483 remoting/protocol/channel_multiplexer.cc void ChannelMultiplexer::OnIncomingPacket(scoped_ptr<MultiplexPacket> packet, packet 485 remoting/protocol/channel_multiplexer.cc if (!packet->has_channel_id()) { packet 491 remoting/protocol/channel_multiplexer.cc int receive_id = packet->channel_id(); packet 499 remoting/protocol/channel_multiplexer.cc if (!packet->has_channel_name()) { packet 505 remoting/protocol/channel_multiplexer.cc channel = GetOrCreateChannel(packet->channel_name()); packet 510 remoting/protocol/channel_multiplexer.cc channel->OnIncomingPacket(packet.Pass(), done_task); packet 513 remoting/protocol/channel_multiplexer.cc bool ChannelMultiplexer::DoWrite(scoped_ptr<MultiplexPacket> packet, packet 515 remoting/protocol/channel_multiplexer.cc return writer_.Write(SerializeAndFrameMessage(*packet), done_task); packet 57 remoting/protocol/channel_multiplexer.h void OnIncomingPacket(scoped_ptr<MultiplexPacket> packet, packet 61 remoting/protocol/channel_multiplexer.h bool DoWrite(scoped_ptr<MultiplexPacket> packet, packet 181 remoting/protocol/connection_tester.cc scoped_refptr<net::IOBuffer> packet(new net::IOBuffer(message_size_)); packet 183 remoting/protocol/connection_tester.cc packet->data()[i] = static_cast<char>(i); packet 185 remoting/protocol/connection_tester.cc sent_packets_[packets_sent_] = packet; packet 187 remoting/protocol/connection_tester.cc memcpy(packet->data(), &packets_sent_, sizeof(packets_sent_)); packet 190 remoting/protocol/connection_tester.cc packet.get(), packet 65 remoting/protocol/connection_to_client_unittest.cc scoped_ptr<VideoPacket> packet(new VideoPacket()); packet 66 remoting/protocol/connection_to_client_unittest.cc viewer_->video_stub()->ProcessVideoPacket(packet.Pass(), base::Closure()); packet 83 remoting/protocol/connection_to_client_unittest.cc scoped_ptr<VideoPacket> packet(new VideoPacket()); packet 84 remoting/protocol/connection_to_client_unittest.cc viewer_->video_stub()->ProcessVideoPacket(packet.Pass(), base::Closure()); packet 57 remoting/protocol/protobuf_video_reader.cc void ProtobufVideoReader::OnNewData(scoped_ptr<VideoPacket> packet, packet 59 remoting/protocol/protobuf_video_reader.cc video_stub_->ProcessVideoPacket(packet.Pass(), done_task); packet 36 remoting/protocol/protobuf_video_reader.h void OnNewData(scoped_ptr<VideoPacket> packet, packet 64 remoting/protocol/protobuf_video_writer.cc void ProtobufVideoWriter::ProcessVideoPacket(scoped_ptr<VideoPacket> packet, packet 66 remoting/protocol/protobuf_video_writer.cc buffered_writer_.Write(SerializeAndFrameMessage(*packet), done); packet 38 remoting/protocol/protobuf_video_writer.h virtual void ProcessVideoPacket(scoped_ptr<VideoPacket> packet, packet 756 third_party/libevent/evdns.c name_parse(u8 *packet, int length, int *idx, char *name_out, int name_out_len) { packet 760 third_party/libevent/evdns.c #define GET32(x) do { if (j + 4 > length) goto err; memcpy(&_t32, packet + j, 4); j += 4; x = ntohl(_t32); } while(0) packet 761 third_party/libevent/evdns.c #define GET16(x) do { if (j + 2 > length) goto err; memcpy(&_t, packet + j, 2); j += 2; x = ntohs(_t); } while(0) packet 762 third_party/libevent/evdns.c #define GET8(x) do { if (j >= length) goto err; x = packet[j++]; } while(0) packet 796 third_party/libevent/evdns.c memcpy(cp, packet + j, label_len); packet 813 third_party/libevent/evdns.c reply_parse(u8 *packet, int length) { packet 851 third_party/libevent/evdns.c if (name_parse(packet, length, &j, tmp_name, sizeof(tmp_name))<0)\ packet 858 third_party/libevent/evdns.c if (name_parse(packet, length, &j, tmp_name, sizeof(tmp_name))<0)\ packet 905 third_party/libevent/evdns.c packet + j, 4*addrtocopy); packet 914 third_party/libevent/evdns.c if (name_parse(packet, length, &j, reply.data.ptr.name, packet 934 third_party/libevent/evdns.c packet + j, 16*addrtocopy); packet 957 third_party/libevent/evdns.c request_parse(u8 *packet, int length, struct evdns_server_port *port, struct sockaddr *addr, socklen_t addrlen) packet 996 third_party/libevent/evdns.c if (name_parse(packet, length, &j, tmp_name, sizeof(tmp_name))<0) packet 1170 third_party/libevent/evdns.c u8 packet[1500]; packet 1175 third_party/libevent/evdns.c const int r = recvfrom(ns->socket, packet, sizeof(packet), 0, packet 1189 third_party/libevent/evdns.c reply_parse(packet, r); packet 1197 third_party/libevent/evdns.c u8 packet[1500]; packet 1204 third_party/libevent/evdns.c r = recvfrom(s->socket, packet, sizeof(packet), 0, packet 1213 third_party/libevent/evdns.c request_parse(packet, r, s, (struct sockaddr*) &addr, addrlen); packet 1645 third_party/libusb/src/libusb/libusb.h struct libusb_transfer *transfer, unsigned int packet) packet 1654 third_party/libusb/src/libusb/libusb.h if (packet > INT_MAX) packet 1656 third_party/libusb/src/libusb/libusb.h _packet = (int) packet; packet 1687 third_party/libusb/src/libusb/libusb.h struct libusb_transfer *transfer, unsigned int packet) packet 1694 third_party/libusb/src/libusb/libusb.h if (packet > INT_MAX) packet 1696 third_party/libusb/src/libusb/libusb.h _packet = (int) packet; packet 73 ui/events/gesture_detection/gesture_event_data_packet.cc GestureEventDataPacket packet(TOUCH_TIMEOUT); packet 74 ui/events/gesture_detection/gesture_event_data_packet.cc packet.Push(gesture); packet 75 ui/events/gesture_detection/gesture_event_data_packet.cc return packet; packet 124 ui/events/gesture_detection/touch_disposition_gesture_filter.cc const GestureEventDataPacket& packet) { packet 125 ui/events/gesture_detection/touch_disposition_gesture_filter.cc if (packet.gesture_source() == GestureEventDataPacket::UNDEFINED || packet 126 ui/events/gesture_detection/touch_disposition_gesture_filter.cc packet.gesture_source() == GestureEventDataPacket::INVALID) packet 129 ui/events/gesture_detection/touch_disposition_gesture_filter.cc if (packet.gesture_source() == GestureEventDataPacket::TOUCH_SEQUENCE_START) packet 135 ui/events/gesture_detection/touch_disposition_gesture_filter.cc if (packet.gesture_source() == GestureEventDataPacket::TOUCH_TIMEOUT && packet 139 ui/events/gesture_detection/touch_disposition_gesture_filter.cc FilterAndSendPacket(packet); packet 143 ui/events/gesture_detection/touch_disposition_gesture_filter.cc Tail().push(packet); packet 166 ui/events/gesture_detection/touch_disposition_gesture_filter.cc const GestureEventDataPacket& packet = sequence.front(); packet 167 ui/events/gesture_detection/touch_disposition_gesture_filter.cc DCHECK_NE(packet.gesture_source(), GestureEventDataPacket::UNDEFINED); packet 168 ui/events/gesture_detection/touch_disposition_gesture_filter.cc DCHECK_NE(packet.gesture_source(), GestureEventDataPacket::INVALID); packet 170 ui/events/gesture_detection/touch_disposition_gesture_filter.cc if (packet.gesture_source() != GestureEventDataPacket::TOUCH_TIMEOUT) { packet 175 ui/events/gesture_detection/touch_disposition_gesture_filter.cc IsTouchStartEvent(packet.gesture_source())); packet 178 ui/events/gesture_detection/touch_disposition_gesture_filter.cc FilterAndSendPacket(packet); packet 189 ui/events/gesture_detection/touch_disposition_gesture_filter.cc const GestureEventDataPacket& packet) { packet 190 ui/events/gesture_detection/touch_disposition_gesture_filter.cc for (size_t i = 0; i < packet.gesture_count(); ++i) { packet 191 ui/events/gesture_detection/touch_disposition_gesture_filter.cc const GestureEventData& gesture = packet.gesture(i); packet 43 ui/events/gesture_detection/touch_disposition_gesture_filter.h PacketResult OnGesturePacket(const GestureEventDataPacket& packet); packet 79 ui/events/gesture_detection/touch_disposition_gesture_filter.h void FilterAndSendPacket(const GestureEventDataPacket& packet); packet 101 ui/events/gesture_detection/touch_disposition_gesture_filter_unittest.cc const GestureEventDataPacket& packet) { packet 104 ui/events/gesture_detection/touch_disposition_gesture_filter_unittest.cc for (size_t i = 0; i < packet.gesture_count(); ++i) packet 105 ui/events/gesture_detection/touch_disposition_gesture_filter_unittest.cc touch_packet.Push(packet.gesture(i)); packet 116 ui/events/gesture_detection/touch_disposition_gesture_filter_unittest.cc SendGesturePacket(const GestureEventDataPacket& packet) { packet 117 ui/events/gesture_detection/touch_disposition_gesture_filter_unittest.cc return queue_->OnGesturePacket(packet); packet 738 ui/events/gesture_detection/touch_disposition_gesture_filter_unittest.cc GestureEventDataPacket packet; packet 740 ui/events/gesture_detection/touch_disposition_gesture_filter_unittest.cc SendGesturePacket(packet));