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

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

Issue 16831010: Move some classes out of webkit/glue/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Move UploadDataStreamBuilder to content/browser Created 7 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) 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/devtools/devtools_netlog_observer.h" 5 #include "content/browser/devtools/devtools_netlog_observer.h"
6 6
7 #include "base/strings/string_util.h" 7 #include "base/strings/string_util.h"
8 #include "base/values.h" 8 #include "base/values.h"
9 #include "content/public/browser/browser_thread.h" 9 #include "content/public/browser/browser_thread.h"
10 #include "content/public/browser/content_browser_client.h" 10 #include "content/public/browser/content_browser_client.h"
11 #include "content/public/common/resource_response.h" 11 #include "content/public/common/resource_response.h"
12 #include "net/base/load_flags.h" 12 #include "net/base/load_flags.h"
13 #include "net/http/http_response_headers.h" 13 #include "net/http/http_response_headers.h"
14 #include "net/http/http_util.h" 14 #include "net/http/http_util.h"
15 #include "net/spdy/spdy_header_block.h" 15 #include "net/spdy/spdy_header_block.h"
16 #include "net/url_request/url_request.h" 16 #include "net/url_request/url_request.h"
17 #include "net/url_request/url_request_netlog_params.h" 17 #include "net/url_request/url_request_netlog_params.h"
18 #include "webkit/glue/resource_loader_bridge.h"
19 18
20 namespace content { 19 namespace content {
21 const size_t kMaxNumEntries = 1000; 20 const size_t kMaxNumEntries = 1000;
22 21
23 DevToolsNetLogObserver* DevToolsNetLogObserver::instance_ = NULL; 22 DevToolsNetLogObserver* DevToolsNetLogObserver::instance_ = NULL;
24 23
25 DevToolsNetLogObserver::DevToolsNetLogObserver() { 24 DevToolsNetLogObserver::DevToolsNetLogObserver() {
26 } 25 }
27 26
28 DevToolsNetLogObserver::~DevToolsNetLogObserver() { 27 DevToolsNetLogObserver::~DevToolsNetLogObserver() {
(...skipping 291 matching lines...) Expand 10 before | Expand all | Expand 10 after
320 dev_tools_net_log_observer->request_to_encoded_data_length_.find( 319 dev_tools_net_log_observer->request_to_encoded_data_length_.find(
321 source_id); 320 source_id);
322 if (it == dev_tools_net_log_observer->request_to_encoded_data_length_.end()) 321 if (it == dev_tools_net_log_observer->request_to_encoded_data_length_.end())
323 return -1; 322 return -1;
324 int encoded_data_length = it->second; 323 int encoded_data_length = it->second;
325 it->second = 0; 324 it->second = 0;
326 return encoded_data_length; 325 return encoded_data_length;
327 } 326 }
328 327
329 } // namespace content 328 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/devtools/devtools_netlog_observer.h ('k') | content/browser/loader/async_resource_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698