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

Side by Side Diff: chrome/browser/page_load_metrics/metrics_web_contents_observer.cc

Issue 2771233002: Remove the wrapper functions content::RecordAction et al (Closed)
Patch Set: Rebased Created 3 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
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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/page_load_metrics/metrics_web_contents_observer.h" 5 #include "chrome/browser/page_load_metrics/metrics_web_contents_observer.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <ostream> 8 #include <ostream>
9 #include <string> 9 #include <string>
10 #include <utility> 10 #include <utility>
11 11
12 #include "base/location.h" 12 #include "base/location.h"
13 #include "base/memory/ptr_util.h" 13 #include "base/memory/ptr_util.h"
14 #include "base/metrics/histogram_macros.h" 14 #include "base/metrics/histogram_macros.h"
15 #include "base/metrics/user_metrics.h"
16 #include "chrome/browser/page_load_metrics/browser_page_track_decider.h" 15 #include "chrome/browser/page_load_metrics/browser_page_track_decider.h"
17 #include "chrome/browser/page_load_metrics/page_load_metrics_embedder_interface. h" 16 #include "chrome/browser/page_load_metrics/page_load_metrics_embedder_interface. h"
18 #include "chrome/browser/page_load_metrics/page_load_metrics_util.h" 17 #include "chrome/browser/page_load_metrics/page_load_metrics_util.h"
19 #include "chrome/browser/page_load_metrics/page_load_tracker.h" 18 #include "chrome/browser/page_load_metrics/page_load_tracker.h"
20 #include "chrome/common/page_load_metrics/page_load_metrics_messages.h" 19 #include "chrome/common/page_load_metrics/page_load_metrics_messages.h"
21 #include "chrome/common/page_load_metrics/page_load_timing.h" 20 #include "chrome/common/page_load_metrics/page_load_timing.h"
22 #include "content/public/browser/browser_thread.h" 21 #include "content/public/browser/browser_thread.h"
23 #include "content/public/browser/global_request_id.h" 22 #include "content/public/browser/global_request_id.h"
24 #include "content/public/browser/navigation_details.h" 23 #include "content/public/browser/navigation_details.h"
25 #include "content/public/browser/navigation_handle.h" 24 #include "content/public/browser/navigation_handle.h"
(...skipping 548 matching lines...) Expand 10 before | Expand all | Expand 10 after
574 content::NavigationHandle* navigation_handle) const { 573 content::NavigationHandle* navigation_handle) const {
575 DCHECK(navigation_handle->IsInMainFrame()); 574 DCHECK(navigation_handle->IsInMainFrame());
576 DCHECK(!navigation_handle->HasCommitted() || 575 DCHECK(!navigation_handle->HasCommitted() ||
577 !navigation_handle->IsSameDocument()); 576 !navigation_handle->IsSameDocument());
578 577
579 return BrowserPageTrackDecider(embedder_interface_.get(), web_contents(), 578 return BrowserPageTrackDecider(embedder_interface_.get(), web_contents(),
580 navigation_handle).ShouldTrack(); 579 navigation_handle).ShouldTrack();
581 } 580 }
582 581
583 } // namespace page_load_metrics 582 } // namespace page_load_metrics
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698