OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2011 Google Inc. All rights reserved. | 2 * Copyright (C) 2011 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 | 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 13 matching lines...) Expand all Loading... |
24 | 24 |
25 | 25 |
26 #include "config.h" | 26 #include "config.h" |
27 #include "core/inspector/InspectorConsoleAgent.h" | 27 #include "core/inspector/InspectorConsoleAgent.h" |
28 | 28 |
29 #include "InspectorFrontend.h" | 29 #include "InspectorFrontend.h" |
30 #include "bindings/v8/ScriptCallStackFactory.h" | 30 #include "bindings/v8/ScriptCallStackFactory.h" |
31 #include "bindings/v8/ScriptController.h" | 31 #include "bindings/v8/ScriptController.h" |
32 #include "bindings/v8/ScriptObject.h" | 32 #include "bindings/v8/ScriptObject.h" |
33 #include "bindings/v8/ScriptProfiler.h" | 33 #include "bindings/v8/ScriptProfiler.h" |
| 34 #include "core/frame/Frame.h" |
34 #include "core/inspector/ConsoleMessage.h" | 35 #include "core/inspector/ConsoleMessage.h" |
35 #include "core/inspector/InjectedScriptHost.h" | 36 #include "core/inspector/InjectedScriptHost.h" |
36 #include "core/inspector/InjectedScriptManager.h" | 37 #include "core/inspector/InjectedScriptManager.h" |
37 #include "core/inspector/InspectorState.h" | 38 #include "core/inspector/InspectorState.h" |
38 #include "core/inspector/InspectorTimelineAgent.h" | 39 #include "core/inspector/InspectorTimelineAgent.h" |
39 #include "core/inspector/InstrumentingAgents.h" | 40 #include "core/inspector/InstrumentingAgents.h" |
40 #include "core/inspector/ScriptArguments.h" | 41 #include "core/inspector/ScriptArguments.h" |
41 #include "core/inspector/ScriptCallFrame.h" | 42 #include "core/inspector/ScriptCallFrame.h" |
42 #include "core/inspector/ScriptCallStack.h" | 43 #include "core/inspector/ScriptCallStack.h" |
43 #include "core/loader/DocumentLoader.h" | 44 #include "core/loader/DocumentLoader.h" |
44 #include "core/frame/Frame.h" | |
45 #include "core/page/Page.h" | 45 #include "core/page/Page.h" |
46 #include "core/platform/network/ResourceResponse.h" | |
47 #include "platform/network/ResourceError.h" | 46 #include "platform/network/ResourceError.h" |
| 47 #include "platform/network/ResourceResponse.h" |
48 #include "wtf/CurrentTime.h" | 48 #include "wtf/CurrentTime.h" |
49 #include "wtf/OwnPtr.h" | 49 #include "wtf/OwnPtr.h" |
50 #include "wtf/PassOwnPtr.h" | 50 #include "wtf/PassOwnPtr.h" |
51 #include "wtf/text/StringBuilder.h" | 51 #include "wtf/text/StringBuilder.h" |
52 #include "wtf/text/WTFString.h" | 52 #include "wtf/text/WTFString.h" |
53 | 53 |
54 namespace WebCore { | 54 namespace WebCore { |
55 | 55 |
56 static const unsigned maximumConsoleMessages = 1000; | 56 static const unsigned maximumConsoleMessages = 1000; |
57 static const int expireConsoleMessagesStep = 100; | 57 static const int expireConsoleMessagesStep = 100; |
(...skipping 290 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
348 int m_heapObjectId; | 348 int m_heapObjectId; |
349 }; | 349 }; |
350 | 350 |
351 void InspectorConsoleAgent::addInspectedHeapObject(ErrorString*, int inspectedHe
apObjectId) | 351 void InspectorConsoleAgent::addInspectedHeapObject(ErrorString*, int inspectedHe
apObjectId) |
352 { | 352 { |
353 m_injectedScriptManager->injectedScriptHost()->addInspectedObject(adoptPtr(n
ew InspectableHeapObject(inspectedHeapObjectId))); | 353 m_injectedScriptManager->injectedScriptHost()->addInspectedObject(adoptPtr(n
ew InspectableHeapObject(inspectedHeapObjectId))); |
354 } | 354 } |
355 | 355 |
356 } // namespace WebCore | 356 } // namespace WebCore |
357 | 357 |
OLD | NEW |