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

Side by Side Diff: chrome/renderer/page_load_histograms.cc

Issue 13722005: Moves fields only accessed from content::DocumentState to content::InternalDocumentStateData. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Style tweak Created 7 years, 8 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 "chrome/renderer/page_load_histograms.h" 5 #include "chrome/renderer/page_load_histograms.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "base/metrics/field_trial.h" 9 #include "base/metrics/field_trial.h"
10 #include "base/metrics/histogram.h" 10 #include "base/metrics/histogram.h"
11 #include "base/time.h" 11 #include "base/time.h"
12 #include "chrome/common/chrome_switches.h" 12 #include "chrome/common/chrome_switches.h"
13 #include "chrome/renderer/chrome_content_renderer_client.h" 13 #include "chrome/renderer/chrome_content_renderer_client.h"
14 #include "content/public/common/content_constants.h" 14 #include "content/public/common/content_constants.h"
15 #include "content/public/renderer/document_state.h" 15 #include "content/public/renderer/document_state.h"
16 #include "content/public/renderer/render_thread.h" 16 #include "content/public/renderer/render_thread.h"
17 #include "content/public/renderer/render_view.h" 17 #include "content/public/renderer/render_view.h"
18 #include "extensions/common/url_pattern.h" 18 #include "extensions/common/url_pattern.h"
19 #include "googleurl/src/gurl.h" 19 #include "googleurl/src/gurl.h"
20 #include "third_party/WebKit/Source/Platform/chromium/public/WebURLRequest.h"
20 #include "third_party/WebKit/Source/Platform/chromium/public/WebURLResponse.h" 21 #include "third_party/WebKit/Source/Platform/chromium/public/WebURLResponse.h"
21 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDocument.h" 22 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDocument.h"
22 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFrame.h" 23 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFrame.h"
23 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPerformance.h" 24 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPerformance.h"
24 #include "third_party/WebKit/Source/WebKit/chromium/public/WebView.h" 25 #include "third_party/WebKit/Source/WebKit/chromium/public/WebView.h"
25 26
26 using WebKit::WebDataSource; 27 using WebKit::WebDataSource;
27 using WebKit::WebFrame; 28 using WebKit::WebFrame;
28 using WebKit::WebPerformance; 29 using WebKit::WebPerformance;
29 using WebKit::WebString; 30 using WebKit::WebString;
(...skipping 841 matching lines...) Expand 10 before | Expand all | Expand 10 after
871 872
872 DCHECK(document_state); 873 DCHECK(document_state);
873 DCHECK(ds); 874 DCHECK(ds);
874 GURL url(ds->request().url()); 875 GURL url(ds->request().url());
875 Time start = document_state->start_load_time(); 876 Time start = document_state->start_load_time();
876 Time finish = document_state->finish_load_time(); 877 Time finish = document_state->finish_load_time();
877 // TODO(mbelshe): should we log more stats? 878 // TODO(mbelshe): should we log more stats?
878 VLOG(1) << "PLT: " << (finish - start).InMilliseconds() << "ms " 879 VLOG(1) << "PLT: " << (finish - start).InMilliseconds() << "ms "
879 << url.spec(); 880 << url.spec();
880 } 881 }
OLDNEW
« no previous file with comments | « no previous file | content/public/renderer/document_state.h » ('j') | content/renderer/render_view_impl.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698