Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(307)

Side by Side Diff: net/url_request/view_cache_helper.h

Issue 10299002: Stop refcounting URLRequestContext. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Initialize to NULL Created 8 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « net/url_request/url_request_unittest.cc ('k') | net/url_request/view_cache_helper.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « net/url_request/url_request_unittest.cc ('k') | net/url_request/view_cache_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698