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

Side by Side Diff: Source/core/inspector/TimelineRecordFactory.h

Issue 212953003: TimelinePanel: provide scriptId in FunctionCall event. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 9 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 /* 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
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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 } 103 }
104 104
105 static PassRefPtr<JSONObject> createEmbedderCallbackData(const String& callb ackName); 105 static PassRefPtr<JSONObject> createEmbedderCallbackData(const String& callb ackName);
106 private: 106 private:
107 TimelineRecordFactory() { } 107 TimelineRecordFactory() { }
108 }; 108 };
109 109
110 } // namespace WebCore 110 } // namespace WebCore
111 111
112 #endif // !defined(TimelineRecordFactory_h) 112 #endif // !defined(TimelineRecordFactory_h)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698