| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 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 24 matching lines...) Expand all Loading... |
| 35 #include "../platform/WebString.h" | 35 #include "../platform/WebString.h" |
| 36 | 36 |
| 37 namespace blink { | 37 namespace blink { |
| 38 | 38 |
| 39 class WebLocalFrame; | 39 class WebLocalFrame; |
| 40 class WebString; | 40 class WebString; |
| 41 struct WebDeviceEmulationParams; | 41 struct WebDeviceEmulationParams; |
| 42 | 42 |
| 43 class WebDevToolsAgentClient { | 43 class WebDevToolsAgentClient { |
| 44 public: | 44 public: |
| 45 // Sends response message over the protocol, update agent state on the browser
side for | 45 // Sends response message over the protocol, update agent state on the browser |
| 46 // potential re-attach. |callId| for notifications is 0, |state| for notificat
ions is empty. | 46 // side for potential re-attach. |callId| for notifications is 0, |state| for |
| 47 // notifications is empty. |
| 47 virtual void sendProtocolMessage(int sessionId, | 48 virtual void sendProtocolMessage(int sessionId, |
| 48 int callId, | 49 int callId, |
| 49 const WebString& response, | 50 const WebString& response, |
| 50 const WebString& state) {} | 51 const WebString& state) {} |
| 51 | 52 |
| 52 // Returns process id. | 53 // Returns process id. |
| 53 virtual long processId() { return -1; } | 54 virtual long processId() { return -1; } |
| 54 | 55 |
| 55 // Returns unique identifier of the entity within process. | 56 // Returns unique identifier of the entity within process. |
| 56 virtual int debuggerId() { return -1; } | 57 virtual int debuggerId() { return -1; } |
| 57 | 58 |
| 58 // Resume the inspected renderer that is waiting for DevTools front-end to ini
tialize its state. | 59 // Resume the inspected renderer that is waiting for DevTools front-end to |
| 60 // initialize its state. |
| 59 virtual void resumeStartup() {} | 61 virtual void resumeStartup() {} |
| 60 | 62 |
| 61 class WebKitClientMessageLoop { | 63 class WebKitClientMessageLoop { |
| 62 public: | 64 public: |
| 63 virtual ~WebKitClientMessageLoop() {} | 65 virtual ~WebKitClientMessageLoop() {} |
| 64 virtual void run() = 0; | 66 virtual void run() = 0; |
| 65 virtual void quitNow() = 0; | 67 virtual void quitNow() = 0; |
| 66 }; | 68 }; |
| 67 virtual WebKitClientMessageLoop* createClientMessageLoop() { return 0; } | 69 virtual WebKitClientMessageLoop* createClientMessageLoop() { return 0; } |
| 68 virtual void willEnterDebugLoop() {} | 70 virtual void willEnterDebugLoop() {} |
| 69 virtual void didExitDebugLoop() {} | 71 virtual void didExitDebugLoop() {} |
| 70 | 72 |
| 71 virtual bool requestDevToolsForFrame(WebLocalFrame*) { return false; } | 73 virtual bool requestDevToolsForFrame(WebLocalFrame*) { return false; } |
| 72 | 74 |
| 73 virtual void enableTracing(const WebString& categoryFilter) {} | 75 virtual void enableTracing(const WebString& categoryFilter) {} |
| 74 virtual void disableTracing() {} | 76 virtual void disableTracing() {} |
| 75 | 77 |
| 76 virtual void setCPUThrottlingRate(double rate) {} | 78 virtual void setCPUThrottlingRate(double rate) {} |
| 77 | 79 |
| 78 protected: | 80 protected: |
| 79 ~WebDevToolsAgentClient() {} | 81 ~WebDevToolsAgentClient() {} |
| 80 }; | 82 }; |
| 81 | 83 |
| 82 } // namespace blink | 84 } // namespace blink |
| 83 | 85 |
| 84 #endif | 86 #endif |
| OLD | NEW |