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

Unified Diff: net/spdy/spdy_session_key.h

Issue 2832973003: Split net/spdy into core and chromium subdirectories. (Closed)
Patch Set: Fix some more build rules. 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 | « net/spdy/spdy_session_fuzzer.cc ('k') | net/spdy/spdy_session_key.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/spdy/spdy_session_key.h
diff --git a/net/spdy/spdy_session_key.h b/net/spdy/spdy_session_key.h
deleted file mode 100644
index f6a823803a970138d58931e5b5a09270e0cbf04c..0000000000000000000000000000000000000000
--- a/net/spdy/spdy_session_key.h
+++ /dev/null
@@ -1,63 +0,0 @@
-// Copyright (c) 2013 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef NET_SPDY_SPDY_SESSION_KEY_H_
-#define NET_SPDY_SPDY_SESSION_KEY_H_
-
-#include "net/base/net_export.h"
-#include "net/base/privacy_mode.h"
-#include "net/proxy/proxy_server.h"
-
-namespace net {
-
-// SpdySessionKey is used as unique index for SpdySessionPool.
-class NET_EXPORT_PRIVATE SpdySessionKey {
- public:
- SpdySessionKey();
- SpdySessionKey(const HostPortPair& host_port_pair,
- const ProxyServer& proxy_server,
- PrivacyMode privacy_mode);
-
- // Temporary hack for implicit copy constructor
- SpdySessionKey(const HostPortProxyPair& host_port_proxy_pair,
- PrivacyMode privacy_mode);
-
- SpdySessionKey(const SpdySessionKey& other);
-
- ~SpdySessionKey();
-
- // Comparator function so this can be placed in a std::map.
- bool operator<(const SpdySessionKey& other) const;
-
- // Equality test of contents. (Probably another violation of style guide).
- bool Equals(const SpdySessionKey& other) const;
-
- const HostPortProxyPair& host_port_proxy_pair() const {
- return host_port_proxy_pair_;
- }
-
- const HostPortPair& host_port_pair() const {
- return host_port_proxy_pair_.first;
- }
-
- const ProxyServer& proxy_server() const {
- return host_port_proxy_pair_.second;
- }
-
- PrivacyMode privacy_mode() const {
- return privacy_mode_;
- }
-
- // Returns the estimate of dynamically allocated memory in bytes.
- size_t EstimateMemoryUsage() const;
-
- private:
- HostPortProxyPair host_port_proxy_pair_;
- // If enabled, then session cannot be tracked by the server.
- PrivacyMode privacy_mode_;
-};
-
-} // namespace net
-
-#endif // NET_SPDY_SPDY_SESSION_KEY_H_
« no previous file with comments | « net/spdy/spdy_session_fuzzer.cc ('k') | net/spdy/spdy_session_key.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698