OLD | NEW |
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 685 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
696 SpdyControlFlags flags, | 696 SpdyControlFlags flags, |
697 SpdyStreamId id, | 697 SpdyStreamId id, |
698 SpdyStreamId associated_stream); | 698 SpdyStreamId associated_stream); |
699 | 699 |
700 const linked_ptr<SpdyHeaderBlock>& GetHeaders() const { | 700 const linked_ptr<SpdyHeaderBlock>& GetHeaders() const { |
701 return headers_; | 701 return headers_; |
702 } | 702 } |
703 | 703 |
704 virtual base::Value* ToValue() const OVERRIDE; | 704 virtual base::Value* ToValue() const OVERRIDE; |
705 | 705 |
706 private: | 706 protected: |
707 virtual ~NetLogSpdySynParameter(); | 707 virtual ~NetLogSpdySynParameter(); |
708 | 708 |
| 709 private: |
709 const linked_ptr<SpdyHeaderBlock> headers_; | 710 const linked_ptr<SpdyHeaderBlock> headers_; |
710 const SpdyControlFlags flags_; | 711 const SpdyControlFlags flags_; |
711 const SpdyStreamId id_; | 712 const SpdyStreamId id_; |
712 const SpdyStreamId associated_stream_; | 713 const SpdyStreamId associated_stream_; |
713 | 714 |
714 DISALLOW_COPY_AND_ASSIGN(NetLogSpdySynParameter); | 715 DISALLOW_COPY_AND_ASSIGN(NetLogSpdySynParameter); |
715 }; | 716 }; |
716 | 717 |
717 | 718 |
718 class NetLogSpdyCredentialParameter : public NetLog::EventParameters { | 719 class NetLogSpdyCredentialParameter : public NetLog::EventParameters { |
719 public: | 720 public: |
720 NetLogSpdyCredentialParameter(size_t slot, const std::string& origin); | 721 NetLogSpdyCredentialParameter(size_t slot, const std::string& origin); |
721 | 722 |
722 virtual base::Value* ToValue() const OVERRIDE; | 723 virtual base::Value* ToValue() const OVERRIDE; |
723 | 724 |
724 private: | 725 protected: |
725 virtual ~NetLogSpdyCredentialParameter(); | 726 virtual ~NetLogSpdyCredentialParameter(); |
726 | 727 |
| 728 private: |
727 const size_t slot_; | 729 const size_t slot_; |
728 const std::string origin_; | 730 const std::string origin_; |
729 | 731 |
730 DISALLOW_COPY_AND_ASSIGN(NetLogSpdyCredentialParameter); | 732 DISALLOW_COPY_AND_ASSIGN(NetLogSpdyCredentialParameter); |
731 }; | 733 }; |
732 | 734 |
733 class NetLogSpdySessionCloseParameter : public NetLog::EventParameters { | 735 class NetLogSpdySessionCloseParameter : public NetLog::EventParameters { |
734 public: | 736 public: |
735 NetLogSpdySessionCloseParameter(int status, | 737 NetLogSpdySessionCloseParameter(int status, |
736 const std::string& description); | 738 const std::string& description); |
737 | 739 |
738 int status() const { return status_; } | 740 int status() const { return status_; } |
739 virtual base::Value* ToValue() const OVERRIDE; | 741 virtual base::Value* ToValue() const OVERRIDE; |
740 | 742 |
741 private: | 743 protected: |
742 virtual ~NetLogSpdySessionCloseParameter(); | 744 virtual ~NetLogSpdySessionCloseParameter(); |
743 | 745 |
| 746 private: |
744 const int status_; | 747 const int status_; |
745 const std::string description_; | 748 const std::string description_; |
746 | 749 |
747 DISALLOW_COPY_AND_ASSIGN(NetLogSpdySessionCloseParameter); | 750 DISALLOW_COPY_AND_ASSIGN(NetLogSpdySessionCloseParameter); |
748 }; | 751 }; |
749 | 752 |
750 } // namespace net | 753 } // namespace net |
751 | 754 |
752 #endif // NET_SPDY_SPDY_SESSION_H_ | 755 #endif // NET_SPDY_SPDY_SESSION_H_ |
OLD | NEW |