OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
45 class IntRect; | 45 class IntRect; |
46 class ResourceRequest; | 46 class ResourceRequest; |
47 class ResourceResponse; | 47 class ResourceResponse; |
48 | 48 |
49 class TimelineRecordFactory { | 49 class TimelineRecordFactory { |
50 public: | 50 public: |
51 static PassRefPtr<TypeBuilder::Timeline::TimelineEvent> createGenericRecord(
double startTime, int maxCallStackDepth, const String& type, PassRefPtr<JSONObje
ct> data); | 51 static PassRefPtr<TypeBuilder::Timeline::TimelineEvent> createGenericRecord(
double startTime, int maxCallStackDepth, const String& type, PassRefPtr<JSONObje
ct> data); |
52 static PassRefPtr<TypeBuilder::Timeline::TimelineEvent> createBackgroundReco
rd(double startTime, const String& thread, const String& type, PassRefPtr<JSONOb
ject> data); | 52 static PassRefPtr<TypeBuilder::Timeline::TimelineEvent> createBackgroundReco
rd(double startTime, const String& thread, const String& type, PassRefPtr<JSONOb
ject> data); |
53 | 53 |
54 static PassRefPtr<JSONObject> createGCEventData(size_t usedHeapSizeDelta); | 54 static PassRefPtr<JSONObject> createGCEventData(size_t usedHeapSizeDelta); |
55 static PassRefPtr<JSONObject> createFunctionCallData(const String& scriptNam
e, int scriptLine); | 55 static PassRefPtr<JSONObject> createFunctionCallData(int scriptId, const Str
ing& scriptName, int scriptLine); |
56 static PassRefPtr<JSONObject> createEventDispatchData(const Event&); | 56 static PassRefPtr<JSONObject> createEventDispatchData(const Event&); |
57 static PassRefPtr<JSONObject> createGenericTimerData(int timerId); | 57 static PassRefPtr<JSONObject> createGenericTimerData(int timerId); |
58 static PassRefPtr<JSONObject> createTimerInstallData(int timerId, int timeou
t, bool singleShot); | 58 static PassRefPtr<JSONObject> createTimerInstallData(int timerId, int timeou
t, bool singleShot); |
59 static PassRefPtr<JSONObject> createXHRReadyStateChangeData(const String& ur
l, int readyState); | 59 static PassRefPtr<JSONObject> createXHRReadyStateChangeData(const String& ur
l, int readyState); |
60 static PassRefPtr<JSONObject> createXHRLoadData(const String& url); | 60 static PassRefPtr<JSONObject> createXHRLoadData(const String& url); |
61 static PassRefPtr<JSONObject> createEvaluateScriptData(const String&, double
lineNumber); | 61 static PassRefPtr<JSONObject> createEvaluateScriptData(const String&, double
lineNumber); |
62 static PassRefPtr<JSONObject> createConsoleTimeData(const String&); | 62 static PassRefPtr<JSONObject> createConsoleTimeData(const String&); |
63 static PassRefPtr<JSONObject> createTimeStampData(const String&); | 63 static PassRefPtr<JSONObject> createTimeStampData(const String&); |
64 static PassRefPtr<JSONObject> createResourceSendRequestData(const String& re
questId, const ResourceRequest&); | 64 static PassRefPtr<JSONObject> createResourceSendRequestData(const String& re
questId, const ResourceRequest&); |
65 static PassRefPtr<JSONObject> createScheduleResourceRequestData(const String
&); | 65 static PassRefPtr<JSONObject> createScheduleResourceRequestData(const String
&); |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
105 static PassRefPtr<JSONObject> createEmbedderCallbackData(const String& callb
ackName); | 105 static PassRefPtr<JSONObject> createEmbedderCallbackData(const String& callb
ackName); |
106 | 106 |
107 static String type(TypeBuilder::Timeline::TimelineEvent*); | 107 static String type(TypeBuilder::Timeline::TimelineEvent*); |
108 private: | 108 private: |
109 TimelineRecordFactory() { } | 109 TimelineRecordFactory() { } |
110 }; | 110 }; |
111 | 111 |
112 } // namespace WebCore | 112 } // namespace WebCore |
113 | 113 |
114 #endif // !defined(TimelineRecordFactory_h) | 114 #endif // !defined(TimelineRecordFactory_h) |
OLD | NEW |