2009-12-07 Mikhail Naganov <mnaganov@chromium.org>
[WebKit-https.git] / WebKit / chromium / public / WebDevToolsAgent.h
index cf4d7eafeddbedab68f235bc531f3def653ed747..8276e0168d5fd91ff8542da2f5457610a5fc4076 100644 (file)
 
 namespace WebKit {
 class WebDevToolsAgentClient;
+class WebFrame;
 class WebString;
+class WebURLRequest;
+class WebURLResponse;
 class WebView;
 struct WebPoint;
+struct WebURLError;
 
 class WebDevToolsAgent {
 public:
@@ -65,11 +69,27 @@ public:
     WEBKIT_API static void executeDebuggerCommand(
         const WebString& command, int callerIdentifier);
 
+    // Asynchronously request debugger to pause immediately.
+    WEBKIT_API static void debuggerPauseScript();
+
+    WEBKIT_API static bool dispatchMessageFromFrontendOnIOThread(const WebString& className,
+                                                                 const WebString& methodName,
+                                                                 const WebString& param1,
+                                                                 const WebString& param2,
+                                                                 const WebString& param3);
+
     typedef void (*MessageLoopDispatchHandler)();
 
     // Installs dispatch handle that is going to be called periodically
     // while on a breakpoint.
     WEBKIT_API static void setMessageLoopDispatchHandler(MessageLoopDispatchHandler);
+
+    virtual void identifierForInitialRequest(unsigned long resourceId, WebFrame*, const WebURLRequest&) = 0;
+    virtual void willSendRequest(unsigned long resourceId, const WebURLRequest&) = 0;
+    virtual void didReceiveData(unsigned long resourceId, int length) = 0;
+    virtual void didReceiveResponse(unsigned long resourceId, const WebURLResponse&) = 0;
+    virtual void didFinishLoading(unsigned long resourceId) = 0;
+    virtual void didFailLoading(unsigned long resourceId, const WebURLError&) = 0;
 };
 
 } // namespace WebKit