OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_SSL_HOST_INFO_H_ | 5 #ifndef NET_HTTP_DISK_CACHE_BASED_SSL_HOST_INFO_H_ |
6 #define NET_HTTP_DISK_CACHE_BASED_SSL_HOST_INFO_H_ | 6 #define NET_HTTP_DISK_CACHE_BASED_SSL_HOST_INFO_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
86 int DoReadComplete(int rv); | 86 int DoReadComplete(int rv); |
87 int DoWriteComplete(int rv); | 87 int DoWriteComplete(int rv); |
88 int DoCreateComplete(int rv); | 88 int DoCreateComplete(int rv); |
89 | 89 |
90 int DoGetBackend(); | 90 int DoGetBackend(); |
91 int DoOpen(); | 91 int DoOpen(); |
92 int DoRead(); | 92 int DoRead(); |
93 int DoWrite(); | 93 int DoWrite(); |
94 int DoCreate(); | 94 int DoCreate(); |
95 | 95 |
96 // WaitForDataReadyDone is the terminal state of the read operation. | 96 // DoWaitForDataReadyDone is the terminal state of the read operation. |
97 int WaitForDataReadyDone(); | 97 int DoWaitForDataReadyDone(); |
98 | 98 |
99 // SetDone is the terminal state of the write operation. | 99 // DoSetDone is the terminal state of the write operation. |
100 int SetDone(); | 100 int DoSetDone(); |
101 | 101 |
102 // IsCallbackPending returns true if we have a pending callback. | 102 // IsCallbackPending returns true if we have a pending callback. |
103 bool IsCallbackPending() const; | 103 bool IsCallbackPending() const; |
104 | 104 |
105 base::WeakPtrFactory<DiskCacheBasedSSLHostInfo> weak_ptr_factory_; | 105 base::WeakPtrFactory<DiskCacheBasedSSLHostInfo> weak_ptr_factory_; |
106 CallbackImpl* callback_; | 106 CallbackImpl* callback_; |
107 State state_; | 107 State state_; |
108 bool ready_; | 108 bool ready_; |
109 std::string new_data_; | 109 std::string new_data_; |
110 const std::string hostname_; | 110 const std::string hostname_; |
111 HttpCache* const http_cache_; | 111 HttpCache* const http_cache_; |
112 disk_cache::Backend* backend_; | 112 disk_cache::Backend* backend_; |
113 disk_cache::Entry* entry_; | 113 disk_cache::Entry* entry_; |
114 CompletionCallback* user_callback_; | 114 CompletionCallback* user_callback_; |
115 scoped_refptr<net::IOBuffer> read_buffer_; | 115 scoped_refptr<net::IOBuffer> read_buffer_; |
116 scoped_refptr<net::IOBuffer> write_buffer_; | 116 scoped_refptr<net::IOBuffer> write_buffer_; |
117 std::string data_; | 117 std::string data_; |
118 }; | 118 }; |
119 | 119 |
120 } // namespace net | 120 } // namespace net |
121 | 121 |
122 #endif // NET_HTTP_DISK_CACHE_BASED_SSL_HOST_INFO_H_ | 122 #endif // NET_HTTP_DISK_CACHE_BASED_SSL_HOST_INFO_H_ |
OLD | NEW |