| 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_URL_REQUEST_VIEW_CACHE_HELPER_H_ | 5 #ifndef NET_URL_REQUEST_VIEW_CACHE_HELPER_H_ |
| 6 #define NET_URL_REQUEST_VIEW_CACHE_HELPER_H_ | 6 #define NET_URL_REQUEST_VIEW_CACHE_HELPER_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 93 int DoOpenEntry(); | 93 int DoOpenEntry(); |
| 94 int DoOpenEntryComplete(int result); | 94 int DoOpenEntryComplete(int result); |
| 95 int DoReadResponse(); | 95 int DoReadResponse(); |
| 96 int DoReadResponseComplete(int result); | 96 int DoReadResponseComplete(int result); |
| 97 int DoReadData(); | 97 int DoReadData(); |
| 98 int DoReadDataComplete(int result); | 98 int DoReadDataComplete(int result); |
| 99 | 99 |
| 100 // Called to signal completion of asynchronous IO. | 100 // Called to signal completion of asynchronous IO. |
| 101 void OnIOComplete(int result); | 101 void OnIOComplete(int result); |
| 102 | 102 |
| 103 scoped_refptr<const URLRequestContext> context_; | 103 const URLRequestContext* context_; |
| 104 disk_cache::Backend* disk_cache_; | 104 disk_cache::Backend* disk_cache_; |
| 105 disk_cache::Entry* entry_; | 105 disk_cache::Entry* entry_; |
| 106 void* iter_; | 106 void* iter_; |
| 107 scoped_refptr<IOBuffer> buf_; | 107 scoped_refptr<IOBuffer> buf_; |
| 108 int buf_len_; | 108 int buf_len_; |
| 109 int index_; | 109 int index_; |
| 110 | 110 |
| 111 std::string key_; | 111 std::string key_; |
| 112 std::string url_prefix_; | 112 std::string url_prefix_; |
| 113 std::string* data_; | 113 std::string* data_; |
| 114 CompletionCallback callback_; | 114 CompletionCallback callback_; |
| 115 | 115 |
| 116 State next_state_; | 116 State next_state_; |
| 117 | 117 |
| 118 base::WeakPtrFactory<ViewCacheHelper> weak_factory_; | 118 base::WeakPtrFactory<ViewCacheHelper> weak_factory_; |
| 119 | 119 |
| 120 DISALLOW_COPY_AND_ASSIGN(ViewCacheHelper); | 120 DISALLOW_COPY_AND_ASSIGN(ViewCacheHelper); |
| 121 }; | 121 }; |
| 122 | 122 |
| 123 } // namespace net. | 123 } // namespace net. |
| 124 | 124 |
| 125 #endif // NET_URL_REQUEST_VIEW_CACHE_HELPER_H_ | 125 #endif // NET_URL_REQUEST_VIEW_CACHE_HELPER_H_ |
| OLD | NEW |