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

Side by Side Diff: chrome/renderer/navigation_state.h

Issue 6276001: Fix two bugs in recording web timing histograms. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 11 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) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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 #ifndef CHROME_RENDERER_NAVIGATION_STATE_H_ 5 #ifndef CHROME_RENDERER_NAVIGATION_STATE_H_
6 #define CHROME_RENDERER_NAVIGATION_STATE_H_ 6 #define CHROME_RENDERER_NAVIGATION_STATE_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
153 void set_first_paint_after_load_time(const base::Time& value) { 153 void set_first_paint_after_load_time(const base::Time& value) {
154 first_paint_after_load_time_ = value; 154 first_paint_after_load_time_ = value;
155 } 155 }
156 156
157 // True iff the histograms for the associated frame have been dumped. 157 // True iff the histograms for the associated frame have been dumped.
158 bool load_histograms_recorded() const { return load_histograms_recorded_; } 158 bool load_histograms_recorded() const { return load_histograms_recorded_; }
159 void set_load_histograms_recorded(bool value) { 159 void set_load_histograms_recorded(bool value) {
160 load_histograms_recorded_ = value; 160 load_histograms_recorded_ = value;
161 } 161 }
162 162
163 bool web_timing_histograms_recorded() const {
164 return web_timing_histograms_recorded_;
165 }
166 void set_web_timing_histograms_recorded(bool value) {
167 web_timing_histograms_recorded_ = value;
168 }
169
163 // True if we have already processed the "DidCommitLoad" event for this 170 // True if we have already processed the "DidCommitLoad" event for this
164 // request. Used by session history. 171 // request. Used by session history.
165 bool request_committed() const { return request_committed_; } 172 bool request_committed() const { return request_committed_; }
166 void set_request_committed(bool value) { request_committed_ = value; } 173 void set_request_committed(bool value) { request_committed_ = value; }
167 174
168 // True if this navigation was not initiated via WebFrame::LoadRequest. 175 // True if this navigation was not initiated via WebFrame::LoadRequest.
169 bool is_content_initiated() const { return is_content_initiated_; } 176 bool is_content_initiated() const { return is_content_initiated_; }
170 177
171 const GURL& searchable_form_url() const { return searchable_form_url_; } 178 const GURL& searchable_form_url() const { return searchable_form_url_; }
172 void set_searchable_form_url(const GURL& url) { searchable_form_url_ = url; } 179 void set_searchable_form_url(const GURL& url) { searchable_form_url_ = url; }
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
274 PageTransition::Type transition_type_; 281 PageTransition::Type transition_type_;
275 LoadType load_type_; 282 LoadType load_type_;
276 base::Time request_time_; 283 base::Time request_time_;
277 base::Time start_load_time_; 284 base::Time start_load_time_;
278 base::Time commit_load_time_; 285 base::Time commit_load_time_;
279 base::Time finish_document_load_time_; 286 base::Time finish_document_load_time_;
280 base::Time finish_load_time_; 287 base::Time finish_load_time_;
281 base::Time first_paint_time_; 288 base::Time first_paint_time_;
282 base::Time first_paint_after_load_time_; 289 base::Time first_paint_after_load_time_;
283 bool load_histograms_recorded_; 290 bool load_histograms_recorded_;
291 bool web_timing_histograms_recorded_;
jar (doing other things) 2011/01/13 17:42:20 Please add a constructor initializer for this to n
tonyg 2011/01/13 22:14:07 Good catch. That would have been bad.
284 bool request_committed_; 292 bool request_committed_;
285 bool is_content_initiated_; 293 bool is_content_initiated_;
286 int32 pending_page_id_; 294 int32 pending_page_id_;
287 int pending_history_list_offset_; 295 int pending_history_list_offset_;
288 GURL searchable_form_url_; 296 GURL searchable_form_url_;
289 std::string searchable_form_encoding_; 297 std::string searchable_form_encoding_;
290 scoped_ptr<webkit_glue::PasswordForm> password_form_data_; 298 scoped_ptr<webkit_glue::PasswordForm> password_form_data_;
291 scoped_ptr<webkit_glue::AltErrorPageResourceFetcher> alt_error_page_fetcher_; 299 scoped_ptr<webkit_glue::AltErrorPageResourceFetcher> alt_error_page_fetcher_;
292 std::string security_info_; 300 std::string security_info_;
293 bool postpone_loading_data_; 301 bool postpone_loading_data_;
(...skipping 13 matching lines...) Expand all
307 bool was_within_same_page_; 315 bool was_within_same_page_;
308 316
309 // A prefetcher is a page that contains link rel=prefetch elements. 317 // A prefetcher is a page that contains link rel=prefetch elements.
310 bool was_prefetcher_; 318 bool was_prefetcher_;
311 bool was_referred_by_prefetcher_; 319 bool was_referred_by_prefetcher_;
312 320
313 DISALLOW_COPY_AND_ASSIGN(NavigationState); 321 DISALLOW_COPY_AND_ASSIGN(NavigationState);
314 }; 322 };
315 323
316 #endif // CHROME_RENDERER_NAVIGATION_STATE_H_ 324 #endif // CHROME_RENDERER_NAVIGATION_STATE_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/renderer/page_load_histograms.cc » ('j') | chrome/renderer/page_load_histograms.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698