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

Side by Side Diff: chrome/browser/net/load_timing_observer.cc

Issue 8437002: Move BrowserThread to content namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: A few updates. Created 9 years, 1 month 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/net/load_timing_observer.h" 5 #include "chrome/browser/net/load_timing_observer.h"
6 6
7 #include "base/time.h" 7 #include "base/time.h"
8 #include "chrome/browser/net/chrome_net_log.h" 8 #include "chrome/browser/net/chrome_net_log.h"
9 #include "content/common/resource_response.h" 9 #include "content/common/resource_response.h"
10 #include "content/public/browser/browser_thread.h" 10 #include "content/public/browser/browser_thread.h"
11 #include "net/base/load_flags.h" 11 #include "net/base/load_flags.h"
12 #include "net/url_request/url_request.h" 12 #include "net/url_request/url_request.h"
13 #include "net/url_request/url_request_netlog_params.h" 13 #include "net/url_request/url_request_netlog_params.h"
14 14
15 using base::Time; 15 using base::Time;
16 using base::TimeTicks; 16 using base::TimeTicks;
17 using content::BrowserThread;
17 using webkit_glue::ResourceLoaderBridge; 18 using webkit_glue::ResourceLoaderBridge;
18 using webkit_glue::ResourceLoadTimingInfo; 19 using webkit_glue::ResourceLoadTimingInfo;
19 20
20 const size_t kMaxNumEntries = 1000; 21 const size_t kMaxNumEntries = 1000;
21 22
22 namespace { 23 namespace {
23 24
24 const int64 kSyncPeriodMicroseconds = 1000 * 1000 * 10; 25 const int64 kSyncPeriodMicroseconds = 1000 * 1000 * 10;
25 26
26 // We know that this conversion is not solid and suffers from world clock 27 // We know that this conversion is not solid and suffers from world clock
(...skipping 339 matching lines...) Expand 10 before | Expand all | Expand 10 after
366 if (it == socket_to_record_.end()) 367 if (it == socket_to_record_.end())
367 return; 368 return;
368 369
369 if (type == net::NetLog::TYPE_SSL_CONNECT) { 370 if (type == net::NetLog::TYPE_SSL_CONNECT) {
370 if (is_begin) 371 if (is_begin)
371 it->second.ssl_start = time; 372 it->second.ssl_start = time;
372 else if (is_end) 373 else if (is_end)
373 it->second.ssl_end = time; 374 it->second.ssl_end = time;
374 } 375 }
375 } 376 }
OLDNEW
« no previous file with comments | « chrome/browser/net/http_server_properties_manager_unittest.cc ('k') | chrome/browser/net/load_timing_observer_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698