OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/strings/stringprintf.h" | 9 #include "base/strings/stringprintf.h" |
10 #include "net/base/escape.h" | 10 #include "net/base/escape.h" |
(...skipping 27 matching lines...) Expand all Loading... |
38 "</a></td></tr>"; | 38 "</a></td></tr>"; |
39 return row; | 39 return row; |
40 } | 40 } |
41 | 41 |
42 } // namespace. | 42 } // namespace. |
43 | 43 |
44 ViewCacheHelper::ViewCacheHelper() | 44 ViewCacheHelper::ViewCacheHelper() |
45 : context_(NULL), | 45 : context_(NULL), |
46 disk_cache_(NULL), | 46 disk_cache_(NULL), |
47 entry_(NULL), | 47 entry_(NULL), |
48 iter_(NULL), | |
49 buf_len_(0), | 48 buf_len_(0), |
50 index_(0), | 49 index_(0), |
51 data_(NULL), | 50 data_(NULL), |
52 next_state_(STATE_NONE), | 51 next_state_(STATE_NONE), |
53 weak_factory_(this) { | 52 weak_factory_(this) { |
54 } | 53 } |
55 | 54 |
56 ViewCacheHelper::~ViewCacheHelper() { | 55 ViewCacheHelper::~ViewCacheHelper() { |
57 if (entry_) | 56 if (entry_) |
58 entry_->Close(); | 57 entry_->Close(); |
(...skipping 299 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
358 entry_ = NULL; | 357 entry_ = NULL; |
359 } | 358 } |
360 return OK; | 359 return OK; |
361 } | 360 } |
362 | 361 |
363 void ViewCacheHelper::OnIOComplete(int result) { | 362 void ViewCacheHelper::OnIOComplete(int result) { |
364 DoLoop(result); | 363 DoLoop(result); |
365 } | 364 } |
366 | 365 |
367 } // namespace net. | 366 } // namespace net. |
OLD | NEW |