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

Unified Diff: pdf/chunk_stream.cc

Issue 2828413005: Clang format pdf/ (Closed)
Patch Set: Manual tweaks Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pdf/chunk_stream.h ('k') | pdf/document_loader.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pdf/chunk_stream.cc
diff --git a/pdf/chunk_stream.cc b/pdf/chunk_stream.cc
index adb3cb6edaf5c90a8015930f2378f291791ff94c..d9dae1e20af0a048f83be43386eaec5eaa589b75 100644
--- a/pdf/chunk_stream.cc
+++ b/pdf/chunk_stream.cc
@@ -18,11 +18,9 @@
namespace chrome_pdf {
-ChunkStream::ChunkStream() : stream_size_(0) {
-}
+ChunkStream::ChunkStream() : stream_size_(0) {}
-ChunkStream::~ChunkStream() {
-}
+ChunkStream::~ChunkStream() {}
void ChunkStream::Clear() {
chunks_.clear();
@@ -87,8 +85,9 @@ bool ChunkStream::ReadData(size_t offset, size_t size, void* buffer) const {
}
bool ChunkStream::GetMissedRanges(
- size_t offset, size_t size,
- std::vector<std::pair<size_t, size_t> >* ranges) const {
+ size_t offset,
+ size_t size,
+ std::vector<std::pair<size_t, size_t>>* ranges) const {
if (IsRangeAvailable(offset, size))
return false;
@@ -125,8 +124,8 @@ bool ChunkStream::GetMissedRanges(
// Add last chunk.
if (cur_offset < offset + size)
- ranges->push_back(std::pair<size_t, size_t>(cur_offset,
- offset + size - cur_offset));
+ ranges->push_back(
+ std::pair<size_t, size_t>(cur_offset, offset + size - cur_offset));
return true;
}
« no previous file with comments | « pdf/chunk_stream.h ('k') | pdf/document_loader.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698