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

Side by Side Diff: content/browser/renderer_host/async_resource_handler.cc

Issue 9371025: Move resource_context.h to content/public/browser. Remove the workaround in its destructor since ... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 8 years, 10 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
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 "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/debug/alias.h"
11 #include "base/hash_tables.h" 11 #include "base/hash_tables.h"
12 #include "base/logging.h" 12 #include "base/logging.h"
13 #include "base/shared_memory.h" 13 #include "base/shared_memory.h"
14 #include "content/browser/debugger/devtools_netlog_observer.h" 14 #include "content/browser/debugger/devtools_netlog_observer.h"
15 #include "content/browser/host_zoom_map_impl.h" 15 #include "content/browser/host_zoom_map_impl.h"
16 #include "content/browser/renderer_host/resource_dispatcher_host.h" 16 #include "content/browser/renderer_host/resource_dispatcher_host.h"
17 #include "content/browser/renderer_host/resource_dispatcher_host_request_info.h" 17 #include "content/browser/renderer_host/resource_dispatcher_host_request_info.h"
18 #include "content/browser/renderer_host/resource_message_filter.h" 18 #include "content/browser/renderer_host/resource_message_filter.h"
19 #include "content/browser/resource_context.h"
20 #include "content/common/resource_messages.h" 19 #include "content/common/resource_messages.h"
21 #include "content/common/view_messages.h" 20 #include "content/common/view_messages.h"
22 #include "content/public/browser/global_request_id.h" 21 #include "content/public/browser/global_request_id.h"
22 #include "content/public/browser/resource_context.h"
23 #include "content/public/browser/resource_dispatcher_host_delegate.h" 23 #include "content/public/browser/resource_dispatcher_host_delegate.h"
24 #include "content/public/common/resource_response.h" 24 #include "content/public/common/resource_response.h"
25 #include "net/base/io_buffer.h" 25 #include "net/base/io_buffer.h"
26 #include "net/base/load_flags.h" 26 #include "net/base/load_flags.h"
27 #include "net/base/net_log.h" 27 #include "net/base/net_log.h"
28 #include "webkit/glue/resource_loader_bridge.h" 28 #include "webkit/glue/resource_loader_bridge.h"
29 29
30 using base::TimeTicks; 30 using base::TimeTicks;
31 using content::GlobalRequestID; 31 using content::GlobalRequestID;
32 32
(...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after
276 276
277 // static 277 // static
278 void AsyncResourceHandler::GlobalCleanup() { 278 void AsyncResourceHandler::GlobalCleanup() {
279 if (g_spare_read_buffer) { 279 if (g_spare_read_buffer) {
280 // Avoid the CHECK in SharedIOBuffer::~SharedIOBuffer(). 280 // Avoid the CHECK in SharedIOBuffer::~SharedIOBuffer().
281 SharedIOBuffer* tmp = g_spare_read_buffer; 281 SharedIOBuffer* tmp = g_spare_read_buffer;
282 g_spare_read_buffer = NULL; 282 g_spare_read_buffer = NULL;
283 tmp->Release(); 283 tmp->Release();
284 } 284 }
285 } 285 }
OLDNEW
« no previous file with comments | « content/browser/plugin_service_impl_browsertest.cc ('k') | content/browser/renderer_host/buffered_resource_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698