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

Side by Side Diff: chrome/browser/debugger/devtools_netlog_observer.cc

Issue 6628035: Move resource related IPCs to their own file in content. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 9 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 | « no previous file | chrome/browser/net/load_timing_observer.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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 "chrome/browser/debugger/devtools_netlog_observer.h" 5 #include "chrome/browser/debugger/devtools_netlog_observer.h"
6 6
7 #include "base/string_util.h" 7 #include "base/string_util.h"
8 #include "chrome/browser/io_thread.h" 8 #include "chrome/browser/io_thread.h"
9 #include "chrome/common/resource_response.h" 9 #include "content/common/resource_response.h"
10 #include "net/base/load_flags.h" 10 #include "net/base/load_flags.h"
11 #include "net/http/http_net_log_params.h" 11 #include "net/http/http_net_log_params.h"
12 #include "net/http/http_response_headers.h" 12 #include "net/http/http_response_headers.h"
13 #include "net/url_request/url_request.h" 13 #include "net/url_request/url_request.h"
14 #include "net/url_request/url_request_netlog_params.h" 14 #include "net/url_request/url_request_netlog_params.h"
15 #include "webkit/glue/resource_loader_bridge.h" 15 #include "webkit/glue/resource_loader_bridge.h"
16 16
17 const size_t kMaxNumEntries = 1000; 17 const size_t kMaxNumEntries = 1000;
18 18
19 DevToolsNetLogObserver* DevToolsNetLogObserver::instance_ = NULL; 19 DevToolsNetLogObserver* DevToolsNetLogObserver::instance_ = NULL;
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
136 return; 136 return;
137 137
138 uint32 source_id = request->net_log().source().id; 138 uint32 source_id = request->net_log().source().id;
139 DevToolsNetLogObserver* dev_tools_net_log_observer = 139 DevToolsNetLogObserver* dev_tools_net_log_observer =
140 DevToolsNetLogObserver::GetInstance(); 140 DevToolsNetLogObserver::GetInstance();
141 if (!dev_tools_net_log_observer) 141 if (!dev_tools_net_log_observer)
142 return; 142 return;
143 response->response_head.devtools_info = 143 response->response_head.devtools_info =
144 dev_tools_net_log_observer->GetResourceInfo(source_id); 144 dev_tools_net_log_observer->GetResourceInfo(source_id);
145 } 145 }
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/net/load_timing_observer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698