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

Side by Side Diff: net/spdy/spdy_session.h

Issue 9703098: Remove "base/values.h" import from "base/location.h", fix up downstream files. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix one more file on ChromiumOS Created 8 years, 9 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef NET_SPDY_SPDY_SESSION_H_ 5 #ifndef NET_SPDY_SPDY_SESSION_H_
6 #define NET_SPDY_SPDY_SESSION_H_ 6 #define NET_SPDY_SPDY_SESSION_H_
7 #pragma once 7 #pragma once
8 8
9 #include <algorithm> 9 #include <algorithm>
10 #include <list> 10 #include <list>
(...skipping 14 matching lines...) Expand all
25 #include "net/base/upload_data_stream.h" 25 #include "net/base/upload_data_stream.h"
26 #include "net/socket/client_socket_handle.h" 26 #include "net/socket/client_socket_handle.h"
27 #include "net/socket/ssl_client_socket.h" 27 #include "net/socket/ssl_client_socket.h"
28 #include "net/socket/stream_socket.h" 28 #include "net/socket/stream_socket.h"
29 #include "net/spdy/buffered_spdy_framer.h" 29 #include "net/spdy/buffered_spdy_framer.h"
30 #include "net/spdy/spdy_credential_state.h" 30 #include "net/spdy/spdy_credential_state.h"
31 #include "net/spdy/spdy_io_buffer.h" 31 #include "net/spdy/spdy_io_buffer.h"
32 #include "net/spdy/spdy_protocol.h" 32 #include "net/spdy/spdy_protocol.h"
33 #include "net/spdy/spdy_session_pool.h" 33 #include "net/spdy/spdy_session_pool.h"
34 34
35 namespace base {
36 class Value;
37 }
38
35 namespace net { 39 namespace net {
36 40
37 // This is somewhat arbitrary and not really fixed, but it will always work 41 // This is somewhat arbitrary and not really fixed, but it will always work
38 // reasonably with ethernet. Chop the world into 2-packet chunks. This is 42 // reasonably with ethernet. Chop the world into 2-packet chunks. This is
39 // somewhat arbitrary, but is reasonably small and ensures that we elicit 43 // somewhat arbitrary, but is reasonably small and ensures that we elicit
40 // ACKs quickly from TCP (because TCP tries to only ACK every other packet). 44 // ACKs quickly from TCP (because TCP tries to only ACK every other packet).
41 const int kMss = 1430; 45 const int kMss = 1430;
42 const int kMaxSpdyFrameChunkSize = (2 * kMss) - spdy::SpdyFrame::kHeaderSize; 46 const int kMaxSpdyFrameChunkSize = (2 * kMss) - spdy::SpdyFrame::kHeaderSize;
43 47
44 class BoundNetLog; 48 class BoundNetLog;
(...skipping 659 matching lines...) Expand 10 before | Expand all | Expand 10 after
704 708
705 DISALLOW_COPY_AND_ASSIGN(NetLogSpdyCredentialParameter); 709 DISALLOW_COPY_AND_ASSIGN(NetLogSpdyCredentialParameter);
706 }; 710 };
707 711
708 class NetLogSpdySessionCloseParameter : public NetLog::EventParameters { 712 class NetLogSpdySessionCloseParameter : public NetLog::EventParameters {
709 public: 713 public:
710 NetLogSpdySessionCloseParameter(int status, 714 NetLogSpdySessionCloseParameter(int status,
711 const std::string& description); 715 const std::string& description);
712 716
713 int status() const { return status_; } 717 int status() const { return status_; }
714 virtual Value* ToValue() const OVERRIDE; 718 virtual base::Value* ToValue() const OVERRIDE;
715 719
716 private: 720 private:
717 virtual ~NetLogSpdySessionCloseParameter(); 721 virtual ~NetLogSpdySessionCloseParameter();
718 722
719 const int status_; 723 const int status_;
720 const std::string description_; 724 const std::string description_;
721 725
722 DISALLOW_COPY_AND_ASSIGN(NetLogSpdySessionCloseParameter); 726 DISALLOW_COPY_AND_ASSIGN(NetLogSpdySessionCloseParameter);
723 }; 727 };
724 728
725 } // namespace net 729 } // namespace net
726 730
727 #endif // NET_SPDY_SPDY_SESSION_H_ 731 #endif // NET_SPDY_SPDY_SESSION_H_
OLDNEW
« no previous file with comments | « net/socket/mock_client_socket_pool_manager.cc ('k') | remoting/client/plugin/chromoting_instance.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698