| 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 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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 } | 42 } |
| 43 | 43 |
| 44 namespace blink { | 44 namespace blink { |
| 45 | 45 |
| 46 class LocalFrame; | 46 class LocalFrame; |
| 47 | 47 |
| 48 class CORE_EXPORT MainThreadDebugger final : public ScriptDebuggerBase { | 48 class CORE_EXPORT MainThreadDebugger final : public ScriptDebuggerBase { |
| 49 WTF_MAKE_NONCOPYABLE(MainThreadDebugger); | 49 WTF_MAKE_NONCOPYABLE(MainThreadDebugger); |
| 50 public: | 50 public: |
| 51 class ClientMessageLoop { | 51 class ClientMessageLoop { |
| 52 WTF_MAKE_FAST_ALLOCATED(ClientMessageLoop); |
| 52 public: | 53 public: |
| 53 virtual ~ClientMessageLoop() { } | 54 virtual ~ClientMessageLoop() { } |
| 54 virtual void run(LocalFrame*) = 0; | 55 virtual void run(LocalFrame*) = 0; |
| 55 virtual void quitNow() = 0; | 56 virtual void quitNow() = 0; |
| 56 }; | 57 }; |
| 57 | 58 |
| 58 static PassOwnPtr<MainThreadDebugger> create(PassOwnPtr<ClientMessageLoop> c
lientMessageLoop, v8::Isolate* isolate) | 59 static PassOwnPtr<MainThreadDebugger> create(PassOwnPtr<ClientMessageLoop> c
lientMessageLoop, v8::Isolate* isolate) |
| 59 { | 60 { |
| 60 return adoptPtr(new MainThreadDebugger(clientMessageLoop, isolate)); | 61 return adoptPtr(new MainThreadDebugger(clientMessageLoop, isolate)); |
| 61 } | 62 } |
| (...skipping 20 matching lines...) Expand all Loading... |
| 82 OwnPtr<ClientMessageLoop> m_clientMessageLoop; | 83 OwnPtr<ClientMessageLoop> m_clientMessageLoop; |
| 83 OwnPtr<InspectorTaskRunner> m_taskRunner; | 84 OwnPtr<InspectorTaskRunner> m_taskRunner; |
| 84 | 85 |
| 85 static MainThreadDebugger* s_instance; | 86 static MainThreadDebugger* s_instance; |
| 86 }; | 87 }; |
| 87 | 88 |
| 88 } // namespace blink | 89 } // namespace blink |
| 89 | 90 |
| 90 | 91 |
| 91 #endif // MainThreadDebugger_h | 92 #endif // MainThreadDebugger_h |
| OLD | NEW |