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

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

Issue 1185553002: ResourceTiming should not depend on Document (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Remove SecurityOrigin parameter Created 5 years, 6 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/loader/FrameFetchContext.cpp ('k') | Source/core/timing/PerformanceBase.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) 2010 Google Inc. All rights reserved. 2 * Copyright (C) 2010 Google Inc. All rights reserved.
3 * Copyright (C) 2012 Intel Inc. All rights reserved. 3 * Copyright (C) 2012 Intel Inc. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are 6 * modification, are permitted provided that the following conditions are
7 * met: 7 * met:
8 * 8 *
9 * * Redistributions of source code must retain the above copyright 9 * * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 void webkitClearResourceTimings(); 69 void webkitClearResourceTimings();
70 void webkitSetResourceTimingBufferSize(unsigned); 70 void webkitSetResourceTimingBufferSize(unsigned);
71 71
72 DEFINE_ATTRIBUTE_EVENT_LISTENER(webkitresourcetimingbufferfull); 72 DEFINE_ATTRIBUTE_EVENT_LISTENER(webkitresourcetimingbufferfull);
73 73
74 void clearFrameTimings(); 74 void clearFrameTimings();
75 void setFrameTimingBufferSize(unsigned); 75 void setFrameTimingBufferSize(unsigned);
76 76
77 DEFINE_ATTRIBUTE_EVENT_LISTENER(frametimingbufferfull); 77 DEFINE_ATTRIBUTE_EVENT_LISTENER(frametimingbufferfull);
78 78
79 void addResourceTiming(const ResourceTimingInfo&, Document*); 79 void addResourceTiming(const ResourceTimingInfo&);
80 80
81 void addRenderTiming(Document*, unsigned, double, double); 81 void addRenderTiming(Document*, unsigned, double, double);
82 82
83 void addCompositeTiming(Document*, unsigned, double); 83 void addCompositeTiming(Document*, unsigned, double);
84 84
85 void mark(const String& markName, ExceptionState&); 85 void mark(const String& markName, ExceptionState&);
86 void clearMarks(const String& markName); 86 void clearMarks(const String& markName);
87 87
88 void measure(const String& measureName, const String& startMark, const Strin g& endMark, ExceptionState&); 88 void measure(const String& measureName, const String& startMark, const Strin g& endMark, ExceptionState&);
89 void clearMeasures(const String& measureName); 89 void clearMeasures(const String& measureName);
(...skipping 13 matching lines...) Expand all
103 PerformanceEntryVector m_resourceTimingBuffer; 103 PerformanceEntryVector m_resourceTimingBuffer;
104 unsigned m_resourceTimingBufferSize; 104 unsigned m_resourceTimingBufferSize;
105 double m_timeOrigin; 105 double m_timeOrigin;
106 106
107 Member<UserTiming> m_userTiming; 107 Member<UserTiming> m_userTiming;
108 }; 108 };
109 109
110 } // namespace blink 110 } // namespace blink
111 111
112 #endif // PerformanceBase_h 112 #endif // PerformanceBase_h
OLDNEW
« no previous file with comments | « Source/core/loader/FrameFetchContext.cpp ('k') | Source/core/timing/PerformanceBase.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698