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 "content/browser/renderer_host/async_resource_handler.h" | 5 #include "content/browser/renderer_host/async_resource_handler.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
| 10 #include "base/debug/alias.h" |
10 #include "base/hash_tables.h" | 11 #include "base/hash_tables.h" |
11 #include "base/logging.h" | 12 #include "base/logging.h" |
12 #include "base/shared_memory.h" | 13 #include "base/shared_memory.h" |
13 #include "content/browser/debugger/devtools_netlog_observer.h" | 14 #include "content/browser/debugger/devtools_netlog_observer.h" |
14 #include "content/browser/host_zoom_map.h" | 15 #include "content/browser/host_zoom_map.h" |
15 #include "content/browser/renderer_host/resource_dispatcher_host.h" | 16 #include "content/browser/renderer_host/resource_dispatcher_host.h" |
16 #include "content/browser/renderer_host/resource_dispatcher_host_request_info.h" | 17 #include "content/browser/renderer_host/resource_dispatcher_host_request_info.h" |
17 #include "content/browser/renderer_host/resource_message_filter.h" | 18 #include "content/browser/renderer_host/resource_message_filter.h" |
18 #include "content/browser/resource_context.h" | 19 #include "content/browser/resource_context.h" |
19 #include "content/common/resource_messages.h" | 20 #include "content/common/resource_messages.h" |
(...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
277 | 278 |
278 // static | 279 // static |
279 void AsyncResourceHandler::GlobalCleanup() { | 280 void AsyncResourceHandler::GlobalCleanup() { |
280 if (g_spare_read_buffer) { | 281 if (g_spare_read_buffer) { |
281 // Avoid the CHECK in SharedIOBuffer::~SharedIOBuffer(). | 282 // Avoid the CHECK in SharedIOBuffer::~SharedIOBuffer(). |
282 SharedIOBuffer* tmp = g_spare_read_buffer; | 283 SharedIOBuffer* tmp = g_spare_read_buffer; |
283 g_spare_read_buffer = NULL; | 284 g_spare_read_buffer = NULL; |
284 tmp->Release(); | 285 tmp->Release(); |
285 } | 286 } |
286 } | 287 } |
OLD | NEW |