OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2010 Google Inc. All rights reserved. | 2 * Copyright (C) 2010 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 "bindings/v8/ScriptObject.h" | 34 #include "bindings/v8/ScriptObject.h" |
35 #include "bindings/v8/ScriptState.h" | 35 #include "bindings/v8/ScriptState.h" |
36 #include "core/inspector/InspectorController.h" | 36 #include "core/inspector/InspectorController.h" |
37 #include "core/inspector/InspectorFrontendHost.h" | 37 #include "core/inspector/InspectorFrontendHost.h" |
38 #include "core/page/Page.h" | 38 #include "core/page/Page.h" |
39 #include "core/page/Settings.h" | 39 #include "core/page/Settings.h" |
40 #include "platform/Timer.h" | 40 #include "platform/Timer.h" |
41 #include "public/platform/Platform.h" | 41 #include "public/platform/Platform.h" |
42 #include "public/platform/WebThread.h" | 42 #include "public/platform/WebThread.h" |
43 #include "wtf/Deque.h" | 43 #include "wtf/Deque.h" |
44 #include "wtf/text/WTFString.h" | |
45 | 44 |
46 namespace WebCore { | 45 namespace WebCore { |
47 | 46 |
48 class InspectorBackendMessageQueue : public RefCounted<InspectorBackendMessageQu
eue> { | 47 class InspectorBackendMessageQueue : public RefCounted<InspectorBackendMessageQu
eue> { |
49 WTF_MAKE_FAST_ALLOCATED; | 48 WTF_MAKE_FAST_ALLOCATED; |
50 public: | 49 public: |
51 explicit InspectorBackendMessageQueue(InspectorController& inspectorControll
er) | 50 explicit InspectorBackendMessageQueue(InspectorController& inspectorControll
er) |
52 : m_inspectorController(&inspectorController) | 51 : m_inspectorController(&inspectorController) |
53 { | 52 { |
54 } | 53 } |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
121 ScriptGlobalObject::set(frontendScriptState, "InspectorFrontendHost", m_fron
tendHost.get()); | 120 ScriptGlobalObject::set(frontendScriptState, "InspectorFrontendHost", m_fron
tendHost.get()); |
122 } | 121 } |
123 | 122 |
124 void InspectorFrontendClientLocal::sendMessageToBackend(const String& message) | 123 void InspectorFrontendClientLocal::sendMessageToBackend(const String& message) |
125 { | 124 { |
126 m_messageQueue->dispatch(message); | 125 m_messageQueue->dispatch(message); |
127 } | 126 } |
128 | 127 |
129 } // namespace WebCore | 128 } // namespace WebCore |
130 | 129 |
OLD | NEW |