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

Side by Side Diff: net/http/http_cache.cc

Issue 2333923004: Extracting NetLog inner classes into their own classes. (Closed)
Patch Set: Some nit fixes and better, impl-agnostic naming of net_log_parameters_callback_typedef.h -> net/log… Created 4 years, 2 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
OLDNEW
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/http/http_cache.h" 5 #include "net/http/http_cache.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <utility> 8 #include <utility>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 25 matching lines...) Expand all
36 #include "net/base/upload_data_stream.h" 36 #include "net/base/upload_data_stream.h"
37 #include "net/disk_cache/disk_cache.h" 37 #include "net/disk_cache/disk_cache.h"
38 #include "net/http/disk_cache_based_quic_server_info.h" 38 #include "net/http/disk_cache_based_quic_server_info.h"
39 #include "net/http/http_cache_transaction.h" 39 #include "net/http/http_cache_transaction.h"
40 #include "net/http/http_network_layer.h" 40 #include "net/http/http_network_layer.h"
41 #include "net/http/http_network_session.h" 41 #include "net/http/http_network_session.h"
42 #include "net/http/http_request_info.h" 42 #include "net/http/http_request_info.h"
43 #include "net/http/http_response_headers.h" 43 #include "net/http/http_response_headers.h"
44 #include "net/http/http_response_info.h" 44 #include "net/http/http_response_info.h"
45 #include "net/http/http_util.h" 45 #include "net/http/http_util.h"
46 #include "net/log/net_log_with_source.h"
46 #include "net/quic/core/crypto/quic_server_info.h" 47 #include "net/quic/core/crypto/quic_server_info.h"
47 48
48 #if defined(OS_POSIX) 49 #if defined(OS_POSIX)
49 #include <unistd.h> 50 #include <unistd.h>
50 #endif 51 #endif
51 52
52 namespace net { 53 namespace net {
53 54
54 HttpCache::DefaultBackend::DefaultBackend( 55 HttpCache::DefaultBackend::DefaultBackend(
55 CacheType type, 56 CacheType type,
(...skipping 1098 matching lines...) Expand 10 before | Expand all | Expand 10 after
1154 building_backend_ = false; 1155 building_backend_ = false;
1155 DeletePendingOp(pending_op); 1156 DeletePendingOp(pending_op);
1156 } 1157 }
1157 1158
1158 // The cache may be gone when we return from the callback. 1159 // The cache may be gone when we return from the callback.
1159 if (!item->DoCallback(result, disk_cache_.get())) 1160 if (!item->DoCallback(result, disk_cache_.get()))
1160 item->NotifyTransaction(result, NULL); 1161 item->NotifyTransaction(result, NULL);
1161 } 1162 }
1162 1163
1163 } // namespace net 1164 } // namespace net
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698