Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(416)

Side by Side Diff: Source/WebCore/inspector/WorkerInspectorController.h

Issue 13646003: DevTools: Remove ENABLE(INSPECTOR) and ENABLE(JAVASCRIPT_DEBUGGER) from the code. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 13 matching lines...) Expand all
24 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 24 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 */ 29 */
30 30
31 #ifndef WorkerInspectorController_h 31 #ifndef WorkerInspectorController_h
32 #define WorkerInspectorController_h 32 #define WorkerInspectorController_h
33 33
34 #if ENABLE(INSPECTOR) && ENABLE(WORKERS) 34 #if ENABLE(WORKERS)
35 35
36 #include "InspectorBaseAgent.h" 36 #include "InspectorBaseAgent.h"
37 #include <wtf/FastAllocBase.h> 37 #include <wtf/FastAllocBase.h>
38 #include <wtf/Forward.h> 38 #include <wtf/Forward.h>
39 #include <wtf/Noncopyable.h> 39 #include <wtf/Noncopyable.h>
40 #include <wtf/OwnPtr.h> 40 #include <wtf/OwnPtr.h>
41 #include <wtf/RefPtr.h> 41 #include <wtf/RefPtr.h>
42 42
43 namespace WebCore { 43 namespace WebCore {
44 44
(...skipping 13 matching lines...) Expand all
58 WTF_MAKE_FAST_ALLOCATED; 58 WTF_MAKE_FAST_ALLOCATED;
59 public: 59 public:
60 WorkerInspectorController(WorkerContext*); 60 WorkerInspectorController(WorkerContext*);
61 ~WorkerInspectorController(); 61 ~WorkerInspectorController();
62 62
63 bool hasFrontend() const { return m_frontend; } 63 bool hasFrontend() const { return m_frontend; }
64 void connectFrontend(); 64 void connectFrontend();
65 void disconnectFrontend(); 65 void disconnectFrontend();
66 void restoreInspectorStateFromCookie(const String& inspectorCookie); 66 void restoreInspectorStateFromCookie(const String& inspectorCookie);
67 void dispatchMessageFromFrontend(const String&); 67 void dispatchMessageFromFrontend(const String&);
68 #if ENABLE(JAVASCRIPT_DEBUGGER)
69 void resume(); 68 void resume();
70 #endif
71 69
72 private: 70 private:
73 friend InstrumentingAgents* instrumentationForWorkerContext(WorkerContext*); 71 friend InstrumentingAgents* instrumentationForWorkerContext(WorkerContext*);
74 72
75 WorkerContext* m_workerContext; 73 WorkerContext* m_workerContext;
76 OwnPtr<InspectorStateClient> m_stateClient; 74 OwnPtr<InspectorStateClient> m_stateClient;
77 OwnPtr<InspectorCompositeState> m_state; 75 OwnPtr<InspectorCompositeState> m_state;
78 RefPtr<InstrumentingAgents> m_instrumentingAgents; 76 RefPtr<InstrumentingAgents> m_instrumentingAgents;
79 OwnPtr<InjectedScriptManager> m_injectedScriptManager; 77 OwnPtr<InjectedScriptManager> m_injectedScriptManager;
80 InspectorRuntimeAgent* m_runtimeAgent; 78 InspectorRuntimeAgent* m_runtimeAgent;
81 InspectorAgentRegistry m_agents; 79 InspectorAgentRegistry m_agents;
82 OwnPtr<InspectorFrontendChannel> m_frontendChannel; 80 OwnPtr<InspectorFrontendChannel> m_frontendChannel;
83 OwnPtr<InspectorFrontend> m_frontend; 81 OwnPtr<InspectorFrontend> m_frontend;
84 RefPtr<InspectorBackendDispatcher> m_backendDispatcher; 82 RefPtr<InspectorBackendDispatcher> m_backendDispatcher;
85 }; 83 };
86 84
87 } 85 }
88 86
89 #endif // ENABLE(WORKERS) 87 #endif // ENABLE(WORKERS)
90 88
91 #endif // !defined(WorkerInspectorController_h) 89 #endif // !defined(WorkerInspectorController_h)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698