mirror of
https://github.com/kidfromjupiter/nearby.git
synced 2026-09-15 07:06:11 -04:00
Prepare Project for open source
Change-Id: Ic26d4915efa2be47ce00ffaab7a474d696e6657c
This commit is contained in:
@@ -15,8 +15,7 @@ namespace mediums {
|
||||
// ble_v2.createAdvertisementHeader
|
||||
// LINT.IfChange
|
||||
const std::uint32_t BLEAdvertisementHeader::kServiceIdBloomFilterLength = 10;
|
||||
// LINT.ThenChange(//depot/google3/core/internal/\
|
||||
// mediums/ble_v2.h)
|
||||
// LINT.ThenChange(cpp/core/internal/mediums/ble_v2.h)
|
||||
const std::uint32_t BLEAdvertisementHeader::kAdvertisementHashLength = 4;
|
||||
|
||||
const std::uint32_t BLEAdvertisementHeader::kVersionAndNumSlotsLength = 1;
|
||||
|
||||
@@ -442,6 +442,7 @@ class HandleSuccessfulOutgoingChunkRunnable : public Runnable {
|
||||
return;
|
||||
}
|
||||
|
||||
// nearby:google3-begin
|
||||
// TODO(reznor): The fact that we've sent total_size bytes (which we will
|
||||
// always know 1 frame before we get the SUCCESS frame), also tells us this
|
||||
// is the last chunk - should we add those smarts, or just be simple and
|
||||
@@ -451,6 +452,7 @@ class HandleSuccessfulOutgoingChunkRunnable : public Runnable {
|
||||
// at just that point, so at least consider injecting the smarts.
|
||||
// TODO(reznor): Should we check whether payload_header.total_size ==
|
||||
// payload_chunk.offset?
|
||||
// nearby:google3-end
|
||||
bool is_last_chunk = (payload_chunk_flags_ &
|
||||
PayloadTransferFrame::PayloadChunk::LAST_CHUNK) != 0;
|
||||
PayloadTransferUpdate update(
|
||||
@@ -514,6 +516,7 @@ class HandleSuccessfulIncomingChunkRunnable : public Runnable {
|
||||
return;
|
||||
}
|
||||
|
||||
// nearby:google3-begin
|
||||
// TODO(reznor): The fact that we've received total_size bytes (which we
|
||||
// will always know 1 frame before we get the SUCCESS frame), also tells us
|
||||
// this is the last chunk - should we add those smarts, or just be simple
|
||||
@@ -522,6 +525,7 @@ class HandleSuccessfulIncomingChunkRunnable : public Runnable {
|
||||
// get all the bytes and then remain hanging because the remote device
|
||||
// disconnected at just that point, so at least consider injecting the
|
||||
// smarts.
|
||||
// nearby:google3-end
|
||||
bool is_last_chunk = (payload_chunk_flags_ &
|
||||
PayloadTransferFrame::PayloadChunk::LAST_CHUNK) != 0;
|
||||
PayloadTransferUpdate update(
|
||||
|
||||
Reference in New Issue
Block a user