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

Side by Side Diff: Source/core/timing/PerformanceUserTiming.h

Issue 663693005: Use C++11 features in core/timing (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Addressed review. Created 6 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
« no previous file with comments | « Source/core/timing/PerformanceTiming.cpp ('k') | Source/core/timing/PerformanceUserTiming.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2012 Intel Inc. All rights reserved. 2 * Copyright (C) 2012 Intel 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 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 24 matching lines...) Expand all
35 #include "wtf/text/StringHash.h" 35 #include "wtf/text/StringHash.h"
36 #include "wtf/text/WTFString.h" 36 #include "wtf/text/WTFString.h"
37 37
38 namespace blink { 38 namespace blink {
39 39
40 class ExceptionState; 40 class ExceptionState;
41 class Performance; 41 class Performance;
42 class PerformanceEntry; 42 class PerformanceEntry;
43 43
44 typedef unsigned long long (PerformanceTiming::*NavigationTimingFunction)() cons t; 44 typedef unsigned long long (PerformanceTiming::*NavigationTimingFunction)() cons t;
45 typedef WillBeHeapHashMap<String, PerformanceEntryVector> PerformanceEntryMap; 45 using PerformanceEntryMap = WillBeHeapHashMap<String, PerformanceEntryVector>;
46 46
47 class UserTiming : public RefCountedWillBeGarbageCollected<UserTiming> { 47 class UserTiming : public RefCountedWillBeGarbageCollected<UserTiming> {
48 public: 48 public:
49 static PassRefPtrWillBeRawPtr<UserTiming> create(Performance* performance) 49 static PassRefPtrWillBeRawPtr<UserTiming> create(Performance* performance)
50 { 50 {
51 return adoptRefWillBeNoop(new UserTiming(performance)); 51 return adoptRefWillBeNoop(new UserTiming(performance));
52 } 52 }
53 53
54 void mark(const String& markName, ExceptionState&); 54 void mark(const String& markName, ExceptionState&);
55 void clearMarks(const String& markName); 55 void clearMarks(const String& markName);
(...skipping 14 matching lines...) Expand all
70 70
71 double findExistingMarkStartTime(const String& markName, ExceptionState&); 71 double findExistingMarkStartTime(const String& markName, ExceptionState&);
72 RawPtrWillBeMember<Performance> m_performance; 72 RawPtrWillBeMember<Performance> m_performance;
73 PerformanceEntryMap m_marksMap; 73 PerformanceEntryMap m_marksMap;
74 PerformanceEntryMap m_measuresMap; 74 PerformanceEntryMap m_measuresMap;
75 }; 75 };
76 76
77 } 77 }
78 78
79 #endif // !defined(PerformanceUserTiming_h) 79 #endif // !defined(PerformanceUserTiming_h)
OLDNEW
« no previous file with comments | « Source/core/timing/PerformanceTiming.cpp ('k') | Source/core/timing/PerformanceUserTiming.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698