OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_HTTP_DISK_CACHE_BASED_QUIC_SERVER_INFO_H_ | 5 #ifndef NET_HTTP_DISK_CACHE_BASED_QUIC_SERVER_INFO_H_ |
6 #define NET_HTTP_DISK_CACHE_BASED_QUIC_SERVER_INFO_H_ | 6 #define NET_HTTP_DISK_CACHE_BASED_QUIC_SERVER_INFO_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
11 #include "base/memory/weak_ptr.h" | 11 #include "base/memory/weak_ptr.h" |
12 #include "base/threading/non_thread_safe.h" | 12 #include "base/threading/non_thread_safe.h" |
| 13 #include "base/time/time.h" |
13 #include "net/base/completion_callback.h" | 14 #include "net/base/completion_callback.h" |
14 #include "net/disk_cache/disk_cache.h" | 15 #include "net/disk_cache/disk_cache.h" |
15 #include "net/quic/crypto/quic_server_info.h" | 16 #include "net/quic/crypto/quic_server_info.h" |
16 | 17 |
17 namespace net { | 18 namespace net { |
18 | 19 |
19 class HttpCache; | 20 class HttpCache; |
20 class IOBuffer; | 21 class IOBuffer; |
21 class QuicServerId; | 22 class QuicServerId; |
22 | 23 |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
91 bool found_entry_; // Controls the behavior of DoCreateOrOpen. | 92 bool found_entry_; // Controls the behavior of DoCreateOrOpen. |
92 std::string new_data_; | 93 std::string new_data_; |
93 const QuicServerId server_id_; | 94 const QuicServerId server_id_; |
94 HttpCache* const http_cache_; | 95 HttpCache* const http_cache_; |
95 disk_cache::Backend* backend_; | 96 disk_cache::Backend* backend_; |
96 disk_cache::Entry* entry_; | 97 disk_cache::Entry* entry_; |
97 CompletionCallback user_callback_; | 98 CompletionCallback user_callback_; |
98 scoped_refptr<IOBuffer> read_buffer_; | 99 scoped_refptr<IOBuffer> read_buffer_; |
99 scoped_refptr<IOBuffer> write_buffer_; | 100 scoped_refptr<IOBuffer> write_buffer_; |
100 std::string data_; | 101 std::string data_; |
| 102 base::TimeTicks load_start_time_; |
101 | 103 |
102 base::WeakPtrFactory<DiskCacheBasedQuicServerInfo> weak_factory_; | 104 base::WeakPtrFactory<DiskCacheBasedQuicServerInfo> weak_factory_; |
103 }; | 105 }; |
104 | 106 |
105 } // namespace net | 107 } // namespace net |
106 | 108 |
107 #endif // NET_HTTP_DISK_CACHE_BASED_QUIC_SERVER_INFO_H_ | 109 #endif // NET_HTTP_DISK_CACHE_BASED_QUIC_SERVER_INFO_H_ |
OLD | NEW |