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

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

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/view_cache_helper.h ('k') | net/url_request/view_cache_helper_unittest.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 #include "net/url_request/view_cache_helper.h" 5 #include "net/url_request/view_cache_helper.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/bind_helpers.h" 8 #include "base/bind_helpers.h"
9 #include "base/stringprintf.h" 9 #include "base/stringprintf.h"
10 #include "net/base/escape.h" 10 #include "net/base/escape.h"
(...skipping 23 matching lines...) Expand all
34 GURL url = GURL(url_prefix + key); 34 GURL url = GURL(url_prefix + key);
35 std::string row = 35 std::string row =
36 "<tr><td><a href=\"" + url.spec() + "\">" + EscapeForHTML(key) + 36 "<tr><td><a href=\"" + url.spec() + "\">" + EscapeForHTML(key) +
37 "</a></td></tr>"; 37 "</a></td></tr>";
38 return row; 38 return row;
39 } 39 }
40 40
41 } // namespace. 41 } // namespace.
42 42
43 ViewCacheHelper::ViewCacheHelper() 43 ViewCacheHelper::ViewCacheHelper()
44 : disk_cache_(NULL), 44 : context_(NULL),
45 disk_cache_(NULL),
45 entry_(NULL), 46 entry_(NULL),
46 iter_(NULL), 47 iter_(NULL),
47 buf_len_(0), 48 buf_len_(0),
48 index_(0), 49 index_(0),
49 data_(NULL), 50 data_(NULL),
50 next_state_(STATE_NONE), 51 next_state_(STATE_NONE),
51 ALLOW_THIS_IN_INITIALIZER_LIST(weak_factory_(this)) { 52 ALLOW_THIS_IN_INITIALIZER_LIST(weak_factory_(this)) {
52 } 53 }
53 54
54 ViewCacheHelper::~ViewCacheHelper() { 55 ViewCacheHelper::~ViewCacheHelper() {
(...skipping 294 matching lines...) Expand 10 before | Expand all | Expand 10 after
349 entry_ = NULL; 350 entry_ = NULL;
350 } 351 }
351 return OK; 352 return OK;
352 } 353 }
353 354
354 void ViewCacheHelper::OnIOComplete(int result) { 355 void ViewCacheHelper::OnIOComplete(int result) {
355 DoLoop(result); 356 DoLoop(result);
356 } 357 }
357 358
358 } // namespace net. 359 } // namespace net.
OLDNEW
« no previous file with comments | « net/url_request/view_cache_helper.h ('k') | net/url_request/view_cache_helper_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698