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

Side by Side Diff: chrome/browser/load_notification_details.h

Issue 7995: Move Time, TimeDelta and TimeTicks into namespace base. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 12 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) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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 // The LoadNotificationDetails object contains additional details about a 5 // The LoadNotificationDetails object contains additional details about a
6 // page load that has been completed. It was created to let the MetricsService 6 // page load that has been completed. It was created to let the MetricsService
7 // log page load metrics. 7 // log page load metrics.
8 8
9 #ifndef CHROME_BROWSER_LOAD_NOTIFICATION_DETAILS_H__ 9 #ifndef CHROME_BROWSER_LOAD_NOTIFICATION_DETAILS_H__
10 #define CHROME_BROWSER_LOAD_NOTIFICATION_DETAILS_H__ 10 #define CHROME_BROWSER_LOAD_NOTIFICATION_DETAILS_H__
11 11
12 #include "base/basictypes.h" 12 #include "base/basictypes.h"
13 #include "base/time.h" 13 #include "base/time.h"
14 #include "chrome/browser/navigation_controller.h" 14 #include "chrome/browser/navigation_controller.h"
15 #include "chrome/common/page_transition_types.h" 15 #include "chrome/common/page_transition_types.h"
16 #include "googleurl/src/gurl.h" 16 #include "googleurl/src/gurl.h"
17 17
18 class LoadNotificationDetails { 18 class LoadNotificationDetails {
19 public: 19 public:
20 LoadNotificationDetails(const GURL& url, 20 LoadNotificationDetails(const GURL& url,
21 PageTransition::Type origin, 21 PageTransition::Type origin,
22 TimeDelta load_time, 22 base::TimeDelta load_time,
23 NavigationController* controller, 23 NavigationController* controller,
24 int session_index) 24 int session_index)
25 : url_(url), 25 : url_(url),
26 origin_(origin), 26 origin_(origin),
27 load_time_(load_time), 27 load_time_(load_time),
28 controller_(controller), 28 controller_(controller),
29 session_index_(session_index) {} 29 session_index_(session_index) {}
30 30
31 ~LoadNotificationDetails() {} 31 ~LoadNotificationDetails() {}
32 32
33 const GURL& url() const { return url_; } 33 const GURL& url() const { return url_; }
34 PageTransition::Type origin() const { return origin_; } 34 PageTransition::Type origin() const { return origin_; }
35 TimeDelta load_time() const { return load_time_; } 35 base::TimeDelta load_time() const { return load_time_; }
36 int session_index() const { return session_index_; } 36 int session_index() const { return session_index_; }
37 NavigationController* controller() const { return controller_; } 37 NavigationController* controller() const { return controller_; }
38 38
39 private: 39 private:
40 GURL url_; // the URL loaded 40 GURL url_; // the URL loaded
41 TimeDelta load_time_; // length of time the page load took 41 base::TimeDelta load_time_; // length of time the page load took
42 int session_index_; // index of the load within the tab session 42 int session_index_; // index of the load within the tab session
43 PageTransition::Type origin_; // type of action that caused the load 43 PageTransition::Type origin_; // type of action that caused the load
44 NavigationController* controller_; // tells us which tab the load was in 44 NavigationController* controller_; // tells us which tab the load was in
45 45
46 LoadNotificationDetails() {} 46 LoadNotificationDetails() {}
47 47
48 DISALLOW_EVIL_CONSTRUCTORS(LoadNotificationDetails); 48 DISALLOW_EVIL_CONSTRUCTORS(LoadNotificationDetails);
49 }; 49 };
50 50
51 #endif // CHROME_BROWSER_LOAD_NOTIFICATION_DETAILS_H__ 51 #endif // CHROME_BROWSER_LOAD_NOTIFICATION_DETAILS_H__
52 52
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698