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

Side by Side Diff: third_party/WebKit/Source/web/WebPerformance.cpp

Issue 2655143002: Drop replacesCurrentHistoryItem, NavigationType (Closed)
Patch Set: More compile fixes Created 3 years, 10 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 /* 1 /*
2 * Copyright (C) 2010 Google Inc. All rights reserved. 2 * Copyright (C) 2010 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 28 matching lines...) Expand all
39 } 39 }
40 40
41 void WebPerformance::reset() { 41 void WebPerformance::reset() {
42 m_private.reset(); 42 m_private.reset();
43 } 43 }
44 44
45 void WebPerformance::assign(const WebPerformance& other) { 45 void WebPerformance::assign(const WebPerformance& other) {
46 m_private = other.m_private; 46 m_private = other.m_private;
47 } 47 }
48 48
49 WebNavigationType WebPerformance::navigationType() const {
50 switch (m_private->navigation()->type()) {
51 case PerformanceNavigation::kTypeNavigate:
52 return WebNavigationTypeOther;
53 case PerformanceNavigation::kTypeReload:
54 return WebNavigationTypeReload;
55 case PerformanceNavigation::kTypeBackForward:
56 return WebNavigationTypeBackForward;
57 case PerformanceNavigation::kTypeReserved:
58 return WebNavigationTypeOther;
59 }
60 NOTREACHED();
61 return WebNavigationTypeOther;
62 }
63
64 double WebPerformance::navigationStart() const { 49 double WebPerformance::navigationStart() const {
65 return millisecondsToSeconds(m_private->timing()->navigationStart()); 50 return millisecondsToSeconds(m_private->timing()->navigationStart());
66 } 51 }
67 52
68 double WebPerformance::unloadEventEnd() const { 53 double WebPerformance::unloadEventEnd() const {
69 return millisecondsToSeconds(m_private->timing()->unloadEventEnd()); 54 return millisecondsToSeconds(m_private->timing()->unloadEventEnd());
70 } 55 }
71 56
72 double WebPerformance::redirectStart() const { 57 double WebPerformance::redirectStart() const {
73 return millisecondsToSeconds(m_private->timing()->redirectStart()); 58 return millisecondsToSeconds(m_private->timing()->redirectStart());
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
209 194
210 WebPerformance::WebPerformance(Performance* performance) 195 WebPerformance::WebPerformance(Performance* performance)
211 : m_private(performance) {} 196 : m_private(performance) {}
212 197
213 WebPerformance& WebPerformance::operator=(Performance* performance) { 198 WebPerformance& WebPerformance::operator=(Performance* performance) {
214 m_private = performance; 199 m_private = performance;
215 return *this; 200 return *this;
216 } 201 }
217 202
218 } // namespace blink 203 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/web/WebLocalFrameImpl.cpp ('k') | third_party/WebKit/Source/web/WebSharedWorkerImpl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698