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

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

Issue 8253002: Move PageTransition into content namespace. While I'm touching all these files, I've also updated... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 2 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 CONTENT_BROWSER_LOAD_NOTIFICATION_DETAILS_H_ 9 #ifndef CONTENT_BROWSER_LOAD_NOTIFICATION_DETAILS_H_
10 #define CONTENT_BROWSER_LOAD_NOTIFICATION_DETAILS_H_ 10 #define CONTENT_BROWSER_LOAD_NOTIFICATION_DETAILS_H_
11 #pragma once 11 #pragma once
12 12
13 #include "base/basictypes.h" 13 #include "base/basictypes.h"
14 #include "base/time.h" 14 #include "base/time.h"
15 #include "content/browser/tab_contents/navigation_controller.h" 15 #include "content/browser/tab_contents/navigation_controller.h"
16 #include "content/common/page_transition_types.h" 16 #include "content/public/common/page_transition_types.h"
17 #include "googleurl/src/gurl.h" 17 #include "googleurl/src/gurl.h"
18 18
19 class LoadNotificationDetails { 19 class LoadNotificationDetails {
20 public: 20 public:
21 LoadNotificationDetails(const GURL& url, 21 LoadNotificationDetails(const GURL& url,
22 PageTransition::Type origin, 22 content::PageTransition origin,
23 base::TimeDelta load_time, 23 base::TimeDelta load_time,
24 NavigationController* controller, 24 NavigationController* controller,
25 int session_index) 25 int session_index)
26 : url_(url), 26 : url_(url),
27 load_time_(load_time), 27 load_time_(load_time),
28 session_index_(session_index), 28 session_index_(session_index),
29 origin_(origin), 29 origin_(origin),
30 controller_(controller) {} 30 controller_(controller) {}
31 31
32 ~LoadNotificationDetails() {} 32 ~LoadNotificationDetails() {}
33 33
34 const GURL& url() const { return url_; } 34 const GURL& url() const { return url_; }
35 PageTransition::Type origin() const { return origin_; } 35 content::PageTransition origin() const { return origin_; }
36 base::TimeDelta load_time() const { return load_time_; } 36 base::TimeDelta load_time() const { return load_time_; }
37 int session_index() const { return session_index_; } 37 int session_index() const { return session_index_; }
38 NavigationController* controller() const { return controller_; } 38 NavigationController* controller() const { return controller_; }
39 39
40 private: 40 private:
41 // The URL loaded. 41 // The URL loaded.
42 GURL url_; 42 GURL url_;
43 43
44 // The length of time the page load took. 44 // The length of time the page load took.
45 base::TimeDelta load_time_; 45 base::TimeDelta load_time_;
46 46
47 // The index of the load within the tab session. 47 // The index of the load within the tab session.
48 int session_index_; 48 int session_index_;
49 49
50 // The type of action that caused the load. 50 // The type of action that caused the load.
51 PageTransition::Type origin_; 51 content::PageTransition origin_;
52 52
53 // The NavigationController for the load. 53 // The NavigationController for the load.
54 NavigationController* controller_; 54 NavigationController* controller_;
55 55
56 LoadNotificationDetails() {} 56 LoadNotificationDetails() {}
57 57
58 DISALLOW_COPY_AND_ASSIGN(LoadNotificationDetails); 58 DISALLOW_COPY_AND_ASSIGN(LoadNotificationDetails);
59 }; 59 };
60 60
61 #endif // CONTENT_BROWSER_LOAD_NOTIFICATION_DETAILS_H_ 61 #endif // CONTENT_BROWSER_LOAD_NOTIFICATION_DETAILS_H_
OLDNEW
« no previous file with comments | « content/browser/download/mhtml_generation_manager.cc ('k') | content/browser/renderer_host/render_view_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698