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

Unified Diff: net/spdy/spdy_header_block.h

Issue 2102253003: Make SpdyHeaderBlock non-copyable. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: iOS fix. Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/spdy/spdy_framer_test.cc ('k') | net/spdy/spdy_header_block.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/spdy/spdy_header_block.h
diff --git a/net/spdy/spdy_header_block.h b/net/spdy/spdy_header_block.h
index 3260c81ac51d313936ced295d48c69fcb9cb2e11..0afde3159f542e237487ac46506ea1f7d44a70ec 100644
--- a/net/spdy/spdy_header_block.h
+++ b/net/spdy/spdy_header_block.h
@@ -11,6 +11,7 @@
#include <memory>
#include <string>
+#include "base/macros.h"
#include "base/strings/string_piece.h"
#include "net/base/linked_hash_map.h"
#include "net/base/net_export.h"
@@ -52,12 +53,14 @@ class NET_EXPORT SpdyHeaderBlock {
class StringPieceProxy;
SpdyHeaderBlock();
- SpdyHeaderBlock(const SpdyHeaderBlock& other);
+ SpdyHeaderBlock(const SpdyHeaderBlock& other) = delete;
SpdyHeaderBlock(SpdyHeaderBlock&& other);
~SpdyHeaderBlock();
- SpdyHeaderBlock& operator=(const SpdyHeaderBlock& other);
+ SpdyHeaderBlock& operator=(const SpdyHeaderBlock& other) = delete;
SpdyHeaderBlock& operator=(SpdyHeaderBlock&& other);
+ SpdyHeaderBlock Clone() const;
+
bool operator==(const SpdyHeaderBlock& other) const;
bool operator!=(const SpdyHeaderBlock& other) const;
« no previous file with comments | « net/spdy/spdy_framer_test.cc ('k') | net/spdy/spdy_header_block.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698