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

Side by Side Diff: Source/web/WebDevToolsAgentImpl.h

Issue 1183173002: [DevTools] Show sync XHR info during request loading. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 6 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) 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 14 matching lines...) Expand all
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 WebDevToolsAgentImpl_h 31 #ifndef WebDevToolsAgentImpl_h
32 #define WebDevToolsAgentImpl_h 32 #define WebDevToolsAgentImpl_h
33 33
34 #include "core/inspector/InspectorFrontendChannel.h" 34 #include "core/inspector/InspectorFrontendChannel.h"
35 #include "core/inspector/InspectorResourceAgent.h"
35 #include "core/inspector/InspectorRuntimeAgent.h" 36 #include "core/inspector/InspectorRuntimeAgent.h"
36 #include "core/inspector/InspectorStateClient.h" 37 #include "core/inspector/InspectorStateClient.h"
37 #include "core/inspector/InspectorTracingAgent.h" 38 #include "core/inspector/InspectorTracingAgent.h"
38 #include "platform/heap/Handle.h" 39 #include "platform/heap/Handle.h"
39 #include "public/platform/WebSize.h" 40 #include "public/platform/WebSize.h"
40 #include "public/platform/WebThread.h" 41 #include "public/platform/WebThread.h"
41 #include "public/web/WebDevToolsAgent.h" 42 #include "public/web/WebDevToolsAgent.h"
42 #include "wtf/Forward.h" 43 #include "wtf/Forward.h"
43 #include "wtf/OwnPtr.h" 44 #include "wtf/OwnPtr.h"
44 #include "wtf/Vector.h" 45 #include "wtf/Vector.h"
(...skipping 18 matching lines...) Expand all
63 class WebLayerTreeView; 64 class WebLayerTreeView;
64 class WebLocalFrameImpl; 65 class WebLocalFrameImpl;
65 class WebString; 66 class WebString;
66 class WebViewImpl; 67 class WebViewImpl;
67 68
68 class WebDevToolsAgentImpl final 69 class WebDevToolsAgentImpl final
69 : public NoBaseWillBeGarbageCollectedFinalized<WebDevToolsAgentImpl> 70 : public NoBaseWillBeGarbageCollectedFinalized<WebDevToolsAgentImpl>
70 , public WebDevToolsAgent 71 , public WebDevToolsAgent
71 , public InspectorStateClient 72 , public InspectorStateClient
72 , public InspectorTracingAgent::Client 73 , public InspectorTracingAgent::Client
74 , public InspectorResourceAgent::Client
73 , public InspectorRuntimeAgent::Client 75 , public InspectorRuntimeAgent::Client
74 , public InspectorFrontendChannel 76 , public InspectorFrontendChannel
75 , private WebThread::TaskObserver { 77 , private WebThread::TaskObserver {
76 public: 78 public:
77 static PassOwnPtrWillBeRawPtr<WebDevToolsAgentImpl> create(WebLocalFrameImpl *, WebDevToolsAgentClient*); 79 static PassOwnPtrWillBeRawPtr<WebDevToolsAgentImpl> create(WebLocalFrameImpl *, WebDevToolsAgentClient*);
78 ~WebDevToolsAgentImpl() override; 80 ~WebDevToolsAgentImpl() override;
79 void dispose(); 81 void dispose();
80 DECLARE_VIRTUAL_TRACE(); 82 DECLARE_VIRTUAL_TRACE();
81 83
82 void willBeDestroyed(); 84 void willBeDestroyed();
83 WebDevToolsAgentClient* client() { return m_client; } 85 WebDevToolsAgentClient* client() { return m_client; }
84 bool handleInputEvent(const WebInputEvent&); 86 bool handleInputEvent(const WebInputEvent&);
85 void flushPendingProtocolNotifications();
86 void dispatchMessageFromFrontend(const String& message); 87 void dispatchMessageFromFrontend(const String& message);
87 void registerAgent(PassOwnPtrWillBeRawPtr<InspectorAgent>); 88 void registerAgent(PassOwnPtrWillBeRawPtr<InspectorAgent>);
88 static void webViewImplClosed(WebViewImpl*); 89 static void webViewImplClosed(WebViewImpl*);
89 static void webFrameWidgetImplClosed(WebFrameWidgetImpl*); 90 static void webFrameWidgetImplClosed(WebFrameWidgetImpl*);
90 91
92 // InspectorResourceAgent::Client implementation.
93 void flushPendingProtocolNotifications() override;
94
91 // Instrumentation from web/ layer. 95 // Instrumentation from web/ layer.
92 void didCommitLoadForLocalFrame(LocalFrame*); 96 void didCommitLoadForLocalFrame(LocalFrame*);
93 bool screencastEnabled(); 97 bool screencastEnabled();
94 void willAddPageOverlay(const GraphicsLayer*); 98 void willAddPageOverlay(const GraphicsLayer*);
95 void didRemovePageOverlay(const GraphicsLayer*); 99 void didRemovePageOverlay(const GraphicsLayer*);
96 void layerTreeViewChanged(WebLayerTreeView*); 100 void layerTreeViewChanged(WebLayerTreeView*);
97 101
98 // WebDevToolsAgent implementation. 102 // WebDevToolsAgent implementation.
99 void attach(const WebString& hostId) override; 103 void attach(const WebString& hostId) override;
100 void reattach(const WebString& hostId, const WebString& savedState) override ; 104 void reattach(const WebString& hostId, const WebString& savedState) override ;
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
162 typedef Vector<RefPtr<JSONObject>> NotificationQueue; 166 typedef Vector<RefPtr<JSONObject>> NotificationQueue;
163 NotificationQueue m_notificationQueue; 167 NotificationQueue m_notificationQueue;
164 String m_stateCookie; 168 String m_stateCookie;
165 169
166 friend class DebuggerTask; 170 friend class DebuggerTask;
167 }; 171 };
168 172
169 } // namespace blink 173 } // namespace blink
170 174
171 #endif 175 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698