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

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

Issue 7274031: Wholesale move of debugger sources to content. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add OWNERS and DEPS. Created 9 years, 5 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 "content/browser/debugger/devtools_netlog_observer.h"
6 6
7 #include "base/string_tokenizer.h" 7 #include "base/string_tokenizer.h"
8 #include "base/string_util.h" 8 #include "base/string_util.h"
9 #include "base/values.h" 9 #include "base/values.h"
10 #include "chrome/browser/io_thread.h" 10 #include "chrome/browser/io_thread.h"
11 #include "content/common/resource_response.h" 11 #include "content/common/resource_response.h"
12 #include "net/base/load_flags.h" 12 #include "net/base/load_flags.h"
13 #include "net/http/http_net_log_params.h" 13 #include "net/http/http_net_log_params.h"
14 #include "net/http/http_response_headers.h" 14 #include "net/http/http_response_headers.h"
15 #include "net/http/http_util.h" 15 #include "net/http/http_util.h"
(...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after
285 285
286 RequestToEncodedDataLengthMap::iterator it = 286 RequestToEncodedDataLengthMap::iterator it =
287 dev_tools_net_log_observer->request_to_encoded_data_length_.find( 287 dev_tools_net_log_observer->request_to_encoded_data_length_.find(
288 source_id); 288 source_id);
289 if (it == dev_tools_net_log_observer->request_to_encoded_data_length_.end()) 289 if (it == dev_tools_net_log_observer->request_to_encoded_data_length_.end())
290 return -1; 290 return -1;
291 int encoded_data_length = it->second; 291 int encoded_data_length = it->second;
292 it->second = 0; 292 it->second = 0;
293 return encoded_data_length; 293 return encoded_data_length;
294 } 294 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698