| 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_CREDENTIAL_STATE_H_ | 5 #ifndef NET_SPDY_SPDY_CREDENTIAL_STATE_H_ |
| 6 #define NET_SPDY_SPDY_CREDENTIAL_STATE_H_ | 6 #define NET_SPDY_SPDY_CREDENTIAL_STATE_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "googleurl/src/gurl.h" | |
| 11 #include "net/base/net_export.h" | 10 #include "net/base/net_export.h" |
| 11 #include "url/gurl.h" |
| 12 | 12 |
| 13 namespace net { | 13 namespace net { |
| 14 | 14 |
| 15 // A class for tracking the credentials associated with a SPDY session. | 15 // A class for tracking the credentials associated with a SPDY session. |
| 16 class NET_EXPORT_PRIVATE SpdyCredentialState { | 16 class NET_EXPORT_PRIVATE SpdyCredentialState { |
| 17 public: | 17 public: |
| 18 explicit SpdyCredentialState(size_t num_slots); | 18 explicit SpdyCredentialState(size_t num_slots); |
| 19 ~SpdyCredentialState(); | 19 ~SpdyCredentialState(); |
| 20 | 20 |
| 21 // Changes the number of credentials being tracked. If the new size is | 21 // Changes the number of credentials being tracked. If the new size is |
| (...skipping 25 matching lines...) Expand all Loading... |
| 47 private: | 47 private: |
| 48 // Vector of origins that have credentials. | 48 // Vector of origins that have credentials. |
| 49 std::vector<GURL> slots_; | 49 std::vector<GURL> slots_; |
| 50 // Index of the last origin added to |slots_|. | 50 // Index of the last origin added to |slots_|. |
| 51 size_t last_added_; | 51 size_t last_added_; |
| 52 }; | 52 }; |
| 53 | 53 |
| 54 } // namespace net | 54 } // namespace net |
| 55 | 55 |
| 56 #endif // NET_SPDY_SPDY_CREDENTIAL_STATE_H_ | 56 #endif // NET_SPDY_SPDY_CREDENTIAL_STATE_H_ |
| OLD | NEW |