| 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 23 matching lines...) Expand all Loading... |
| 34 #include "core/InspectorTypeBuilder.h" | 34 #include "core/InspectorTypeBuilder.h" |
| 35 #include "platform/JSONValues.h" | 35 #include "platform/JSONValues.h" |
| 36 #include "platform/weborigin/KURL.h" | 36 #include "platform/weborigin/KURL.h" |
| 37 #include "wtf/Forward.h" | 37 #include "wtf/Forward.h" |
| 38 #include "wtf/text/WTFString.h" | 38 #include "wtf/text/WTFString.h" |
| 39 | 39 |
| 40 namespace blink { | 40 namespace blink { |
| 41 | 41 |
| 42 class Event; | 42 class Event; |
| 43 class FloatQuad; | 43 class FloatQuad; |
| 44 class InspectorFrontend; | |
| 45 class IntRect; | |
| 46 class ResourceRequest; | 44 class ResourceRequest; |
| 47 class ResourceResponse; | 45 class ResourceResponse; |
| 48 | 46 |
| 49 class TimelineRecordFactory { | 47 class TimelineRecordFactory { |
| 50 public: | 48 public: |
| 51 static PassRefPtr<TypeBuilder::Timeline::TimelineEvent> createGenericRecord(
double startTime, int maxCallStackDepth, const String& type, PassRefPtr<JSONObje
ct> data); | 49 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); | 50 static PassRefPtr<TypeBuilder::Timeline::TimelineEvent> createBackgroundReco
rd(double startTime, const String& thread, const String& type, PassRefPtr<JSONOb
ject> data); |
| 53 | 51 |
| 54 static PassRefPtr<JSONObject> createGCEventData(size_t usedHeapSizeDelta); | 52 static PassRefPtr<JSONObject> createGCEventData(size_t usedHeapSizeDelta); |
| 55 static PassRefPtr<JSONObject> createFunctionCallData(int scriptId, const Str
ing& scriptName, int scriptLine); | 53 static PassRefPtr<JSONObject> createFunctionCallData(int scriptId, const Str
ing& scriptName, int scriptLine); |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 104 static PassRefPtr<JSONObject> createEmbedderCallbackData(const String& callb
ackName); | 102 static PassRefPtr<JSONObject> createEmbedderCallbackData(const String& callb
ackName); |
| 105 | 103 |
| 106 static String type(TypeBuilder::Timeline::TimelineEvent*); | 104 static String type(TypeBuilder::Timeline::TimelineEvent*); |
| 107 private: | 105 private: |
| 108 TimelineRecordFactory() { } | 106 TimelineRecordFactory() { } |
| 109 }; | 107 }; |
| 110 | 108 |
| 111 } // namespace blink | 109 } // namespace blink |
| 112 | 110 |
| 113 #endif // !defined(TimelineRecordFactory_h) | 111 #endif // !defined(TimelineRecordFactory_h) |
| OLD | NEW |