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

Unified Diff: net/spdy/spdy_pinnable_buffer_piece.h

Issue 266243004: Clang format slam. Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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
Index: net/spdy/spdy_pinnable_buffer_piece.h
diff --git a/net/spdy/spdy_pinnable_buffer_piece.h b/net/spdy/spdy_pinnable_buffer_piece.h
index 6ffc2639f714cacff92f75c561bfbceadcea1eb1..14e6fe862ce13363746c819d23a6a78e3b614f96 100644
--- a/net/spdy/spdy_pinnable_buffer_piece.h
+++ b/net/spdy/spdy_pinnable_buffer_piece.h
@@ -24,13 +24,9 @@ struct NET_EXPORT_PRIVATE SpdyPinnableBufferPiece {
SpdyPinnableBufferPiece();
~SpdyPinnableBufferPiece();
- const char * buffer() const {
- return buffer_;
- }
+ const char* buffer() const { return buffer_; }
- size_t length() const {
- return length_;
- }
+ size_t length() const { return length_; }
operator base::StringPiece() const {
return base::StringPiece(buffer_, length_);
@@ -39,9 +35,7 @@ struct NET_EXPORT_PRIVATE SpdyPinnableBufferPiece {
// Allocates and copies the buffer to internal storage.
void Pin();
- bool IsPinned() const {
- return storage_.get() != NULL;
- }
+ bool IsPinned() const { return storage_.get() != NULL; }
// Swaps buffers, including internal storage, with |other|.
void Swap(SpdyPinnableBufferPiece* other);
@@ -49,7 +43,7 @@ struct NET_EXPORT_PRIVATE SpdyPinnableBufferPiece {
private:
friend class SpdyPrefixedBufferReader;
- const char * buffer_;
+ const char* buffer_;
size_t length_;
// Null iff |buffer_| isn't pinned.
scoped_ptr<char[]> storage_;

Powered by Google App Engine
This is Rietveld 408576698