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 20 matching lines...) Expand all Loading... |
31 #ifndef WorkerRuntimeAgent_h | 31 #ifndef WorkerRuntimeAgent_h |
32 #define WorkerRuntimeAgent_h | 32 #define WorkerRuntimeAgent_h |
33 | 33 |
34 #include "core/inspector/InspectorRuntimeAgent.h" | 34 #include "core/inspector/InspectorRuntimeAgent.h" |
35 #include "wtf/PassOwnPtr.h" | 35 #include "wtf/PassOwnPtr.h" |
36 | 36 |
37 namespace blink { | 37 namespace blink { |
38 | 38 |
39 class WorkerGlobalScope; | 39 class WorkerGlobalScope; |
40 | 40 |
41 class WorkerRuntimeAgent FINAL : public InspectorRuntimeAgent { | 41 class WorkerRuntimeAgent final : public InspectorRuntimeAgent { |
42 public: | 42 public: |
43 static PassOwnPtrWillBeRawPtr<WorkerRuntimeAgent> create(InjectedScriptManag
er* injectedScriptManager, ScriptDebugServer* scriptDebugServer, WorkerGlobalSco
pe* context) | 43 static PassOwnPtrWillBeRawPtr<WorkerRuntimeAgent> create(InjectedScriptManag
er* injectedScriptManager, ScriptDebugServer* scriptDebugServer, WorkerGlobalSco
pe* context) |
44 { | 44 { |
45 return adoptPtrWillBeNoop(new WorkerRuntimeAgent(injectedScriptManager,
scriptDebugServer, context)); | 45 return adoptPtrWillBeNoop(new WorkerRuntimeAgent(injectedScriptManager,
scriptDebugServer, context)); |
46 } | 46 } |
47 virtual ~WorkerRuntimeAgent(); | 47 virtual ~WorkerRuntimeAgent(); |
48 virtual void trace(Visitor*) OVERRIDE; | 48 virtual void trace(Visitor*) override; |
49 | 49 |
50 virtual void init() OVERRIDE; | 50 virtual void init() override; |
51 virtual void enable(ErrorString*) OVERRIDE; | 51 virtual void enable(ErrorString*) override; |
52 | 52 |
53 // Protocol commands. | 53 // Protocol commands. |
54 virtual void run(ErrorString*) OVERRIDE; | 54 virtual void run(ErrorString*) override; |
55 virtual void isRunRequired(ErrorString*, bool* out_result) OVERRIDE; | 55 virtual void isRunRequired(ErrorString*, bool* out_result) override; |
56 | 56 |
57 void willEvaluateWorkerScript(WorkerGlobalScope*, int workerThreadStartMode)
; | 57 void willEvaluateWorkerScript(WorkerGlobalScope*, int workerThreadStartMode)
; |
58 | 58 |
59 private: | 59 private: |
60 WorkerRuntimeAgent(InjectedScriptManager*, ScriptDebugServer*, WorkerGlobalS
cope*); | 60 WorkerRuntimeAgent(InjectedScriptManager*, ScriptDebugServer*, WorkerGlobalS
cope*); |
61 virtual InjectedScript injectedScriptForEval(ErrorString*, const int* execut
ionContextId) OVERRIDE; | 61 virtual InjectedScript injectedScriptForEval(ErrorString*, const int* execut
ionContextId) override; |
62 virtual void muteConsole() OVERRIDE; | 62 virtual void muteConsole() override; |
63 virtual void unmuteConsole() OVERRIDE; | 63 virtual void unmuteConsole() override; |
64 RawPtrWillBeMember<WorkerGlobalScope> m_workerGlobalScope; | 64 RawPtrWillBeMember<WorkerGlobalScope> m_workerGlobalScope; |
65 bool m_paused; | 65 bool m_paused; |
66 }; | 66 }; |
67 | 67 |
68 } // namespace blink | 68 } // namespace blink |
69 | 69 |
70 #endif // !defined(InspectorPagerAgent_h) | 70 #endif // !defined(InspectorPagerAgent_h) |
OLD | NEW |