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

Side by Side Diff: content/public/browser/load_notification_details.h

Issue 562603002: Move PageTransition from //content/public/common to //ui/base (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 6 years, 3 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
« no previous file with comments | « content/public/browser/download_item.h ('k') | content/public/browser/navigation_controller.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #ifndef CONTENT_PUBLIC_BROWSER_LOAD_NOTIFICATION_DETAILS_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_LOAD_NOTIFICATION_DETAILS_H_
6 #define CONTENT_PUBLIC_BROWSER_LOAD_NOTIFICATION_DETAILS_H_ 6 #define CONTENT_PUBLIC_BROWSER_LOAD_NOTIFICATION_DETAILS_H_
7 7
8 #include "base/time/time.h" 8 #include "base/time/time.h"
9 #include "content/public/browser/navigation_controller.h" 9 #include "content/public/browser/navigation_controller.h"
10 #include "content/public/common/page_transition_types.h" 10 #include "ui/base/page_transition_types.h"
11 #include "url/gurl.h" 11 #include "url/gurl.h"
12 12
13 namespace content { 13 namespace content {
14 14
15 // The LoadNotificationDetails object contains additional details about a 15 // The LoadNotificationDetails object contains additional details about a
16 // page load that has been completed. It was created to let the MetricsService 16 // page load that has been completed. It was created to let the MetricsService
17 // log page load metrics. 17 // log page load metrics.
18 struct LoadNotificationDetails { 18 struct LoadNotificationDetails {
19 LoadNotificationDetails(const GURL& url, 19 LoadNotificationDetails(const GURL& url,
20 PageTransition origin, 20 ui::PageTransition origin,
21 base::TimeDelta load_time, 21 base::TimeDelta load_time,
22 NavigationController* controller, 22 NavigationController* controller,
23 int session_index) 23 int session_index)
24 : url(url), 24 : url(url),
25 load_time(load_time), 25 load_time(load_time),
26 session_index(session_index), 26 session_index(session_index),
27 origin(origin), 27 origin(origin),
28 controller(controller) {} 28 controller(controller) {}
29 29
30 // The URL loaded. 30 // The URL loaded.
31 GURL url; 31 GURL url;
32 32
33 // The length of time the page load took. 33 // The length of time the page load took.
34 base::TimeDelta load_time; 34 base::TimeDelta load_time;
35 35
36 // The index of the load within the tab session. 36 // The index of the load within the tab session.
37 int session_index; 37 int session_index;
38 38
39 // The type of action that caused the load. 39 // The type of action that caused the load.
40 PageTransition origin; 40 ui::PageTransition origin;
41 41
42 // The NavigationController for the load. 42 // The NavigationController for the load.
43 NavigationController* controller; 43 NavigationController* controller;
44 }; 44 };
45 45
46 } // namespace content 46 } // namespace content
47 47
48 #endif // CONTENT_PUBLIC_BROWSER_LOAD_NOTIFICATION_DETAILS_H_ 48 #endif // CONTENT_PUBLIC_BROWSER_LOAD_NOTIFICATION_DETAILS_H_
OLDNEW
« no previous file with comments | « content/public/browser/download_item.h ('k') | content/public/browser/navigation_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698