summaryrefslogtreecommitdiffstats
path: root/webkit/glue/devtools/debugger_agent_manager.cc
Commit message (Collapse)AuthorAgeFilesLines
* DevTools: remove files which were upstreamed.yurys@chromium.org2010-02-021-319/+0
| | | | | | | | BUG=28062 Review URL: http://codereview.chromium.org/561021 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@37842 0039d316-1c4b-4281-b951-d872f2087c98
* DevTools upstreaming: move code to WebKit namespaceyurys@chromium.org2010-01-291-3/+3
| | | | | | | | BUG=28062 Review URL: http://codereview.chromium.org/552234 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@37514 0039d316-1c4b-4281-b951-d872f2087c98
* DevTools: prepare devtools files from webkit/glue for upstreamingyurys@chromium.org2010-01-271-256/+249
| | | | | | | | BUG=28062 Review URL: http://codereview.chromium.org/549173 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@37251 0039d316-1c4b-4281-b951-d872f2087c98
* DevTools: process pause script request on the IO thread. To pause already ↵yurys@chromium.org2009-11-301-13/+9
| | | | | | | | | | | running script we need to call v8::Debug::DebugBreak() on a thread different from the Render thread which may be busy with JS execution. BUG=28892 TEST=DevToolsSanityTest.TestPauseWhenScriptIsRunning Review URL: http://codereview.chromium.org/444017 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@33279 0039d316-1c4b-4281-b951-d872f2087c98
* Adds auto continue option on Debugger Agent to avoid pausing the.pfeldman@chromium.org2009-11-171-0/+6
| | | | | | | | | | Original review: http://codereview.chromium.org/395027. TBR=knorton Review URL: http://codereview.chromium.org/402014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@32174 0039d316-1c4b-4281-b951-d872f2087c98
* Upstreaming WebKit.gypyaar@chromium.org2009-11-121-3/+3
| | | | | | | | | | | | This mega patch contains a few simple but tightly dependent changes: 1. Deletion of webkit/api/WebKit.gyp. The file now lives in webkit.org. 2. Rename of webkit/webkit.gyp to webkit/webkit_glue.gyp. Having two webkit.gyp was a source of developer confusion. 3. Gyp dependencies are updated across chromium to point at the upstream WebKit.gyp and the renamed webkit_glue.gyp. 4. Some 200+ files include paths fixed to point to third_party/WebKit/WebKit/chromium instead of webkit/api. The later will be deleted in a subsequent patch. Review URL: http://codereview.chromium.org/387020 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@31749 0039d316-1c4b-4281-b951-d872f2087c98
* Moves webview_impl.cc, webframe_impl.cc and webframeloaderclient_impl.cc intodarin@chromium.org2009-10-301-3/+6
| | | | | | | | | | | | webkit/api/src. R=yaar BUG=25896,25897,25902 TEST=none Review URL: http://codereview.chromium.org/341030 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@30558 0039d316-1c4b-4281-b951-d872f2087c98
* DevTools: Remove base/ dependencies from glue/devtoolspfeldman@chromium.org2009-10-281-8/+7
| | | | | | | | BUG=24622,24597 Review URL: http://codereview.chromium.org/330029 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@30330 0039d316-1c4b-4281-b951-d872f2087c98
* Move WebDevToolsAgent{Delegate} into the WebKit API.darin@chromium.org2009-10-171-0/+3
| | | | | | | | | | | | | | | | | Moves corresponding WebView and WebViewDelegate methods too. This uses the term "Frontend" for what was previously known as "Client" in the devtools interfaces. This is to avoid awkward "ClientClient" naming. Frontend was Pavel Feldman's suggested renaming. In a follow up patch, I will be renaming WebDevToolsClient{Delegate} to WebDevToolsFrontend{Client}. R=dglazkov BUG=24597 TEST=none Review URL: http://codereview.chromium.org/287009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@29369 0039d316-1c4b-4281-b951-d872f2087c98
* Convert devtools interfaces over to using WebString.darin@chromium.org2009-10-161-15/+14
| | | | | | | | | | | | | | | | | | | | | | | | Also converts some internal std::string usage to WebCore::String. Note: copying WebString to WebCore::String is very cheap (just increments a reference count). The ugly WebStringToString and StringToWebString calls inside the devtools implementation are temporary. Once this code moves into the WebKit API implementation, those methods will go away. I thought about changing the devtools IPCs to use string16 instead of std::string because that would avoid the UTF8 conversions. I'm not sure if that is worth it though given that UTF16 would increase the amount of data being sent over IPC. I figure this is something that could be studied later. R=pfeldman BUG=24597 TEST=none Review URL: http://codereview.chromium.org/264077 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@29286 0039d316-1c4b-4281-b951-d872f2087c98
* DevTools: scripts request is now sent only when context id is received(if we ↵yurys@google.com2009-09-041-8/+6
| | | | | | | | | send scripts request right after context id request there is no guarantee that their responses will come in the same order). BUG=19858 Review URL: http://codereview.chromium.org/193006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@25435 0039d316-1c4b-4281-b951-d872f2087c98
* DevTools: split console evaluation into two steps: actual evaluation and resultyurys@google.com2009-07-271-9/+29
| | | | | | | | | | | wrapping. When second step is executed debugger_agent_manager will autocontinue on break. We assume that second step doesn't call user scripts. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=21635 Review URL: http://codereview.chromium.org/159395 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@21637 0039d316-1c4b-4281-b951-d872f2087c98
* Reverting 21635.yurys@google.com2009-07-271-29/+9
| | | | | | Review URL: http://codereview.chromium.org/159399 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@21636 0039d316-1c4b-4281-b951-d872f2087c98
* DevTools: split console evaluation into two steps: actual evaluation and resultyurys@google.com2009-07-271-9/+29
| | | | | | | | | wrapping. When second step is executed debugger_agent_manager will autocontinue on break. We assume that second step doesn't call user scripts. Review URL: http://codereview.chromium.org/159395 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@21635 0039d316-1c4b-4281-b951-d872f2087c98
* Reverting 21525.yurys@google.com2009-07-241-29/+9
| | | | | | Review URL: http://codereview.chromium.org/160100 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@21529 0039d316-1c4b-4281-b951-d872f2087c98
* DevTools: split console evaluation into two steps: actual evaluation and ↵yurys@google.com2009-07-241-9/+29
| | | | | | | | result wrapping. When second step is executed debugger_agent_manager will autocontinue on break. We assume that second step doesn't call user scripts. Review URL: http://codereview.chromium.org/160012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@21525 0039d316-1c4b-4281-b951-d872f2087c98
* DevTools: allow reload while on a breakpoint: detach agent on navigation ↵pfeldman@chromium.org2009-07-131-0/+7
| | | | | | | | | | attempt. BUG=16606 Review URL: http://codereview.chromium.org/149529 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@20480 0039d316-1c4b-4281-b951-d872f2087c98
* DevTools: clear breakpoints when devtools window is closing. This change ↵yurys@google.com2009-07-071-3/+18
| | | | | | | | | depends on v8 change: http://codereview.chromium.org/149197 BUG=15993 Review URL: http://codereview.chromium.org/155090 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@20020 0039d316-1c4b-4281-b951-d872f2087c98
* Delete V8Proxy and V8Utilities and use upstreamed versions.japhet@chromium.org2009-06-291-3/+3
| | | | | | Review URL: http://codereview.chromium.org/150056 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@19539 0039d316-1c4b-4281-b951-d872f2087c98
* Reverting 19489,19488.japhet@chromium.org2009-06-291-3/+3
| | | | | | Review URL: http://codereview.chromium.org/150024 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@19490 0039d316-1c4b-4281-b951-d872f2087c98
* Use upstream V8Proxy and V8Utilitiesjaphet@chromium.org2009-06-291-3/+3
| | | | | | | | | BUG=15459 TEST=none Review URL: http://codereview.chromium.org/149086 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@19488 0039d316-1c4b-4281-b951-d872f2087c98
* DevTools: when injected script context is created its context data is set to ↵yurys@google.com2009-06-111-16/+19
| | | | | | | | | the value derived from the context data of the page it's injected in. It allows to match injected scripts with the inspected page. BUG=13676 Review URL: http://codereview.chromium.org/122036 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@18164 0039d316-1c4b-4281-b951-d872f2087c98
* DevTools: use event context to decide which agent should be used for ↵yurys@google.com2009-05-261-75/+46
| | | | | | | | | handling the event. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=16586 Review URL: http://codereview.chromium.org/113629 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@16871 0039d316-1c4b-4281-b951-d872f2087c98
* DevTools: Messages converted to wide strings don't work on Mac and Linux. ↵yurys@google.com2009-05-211-3/+3
| | | | | | | | Use Utf8ToUtf16 conversion instead. Review URL: http://codereview.chromium.org/113706 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@16607 0039d316-1c4b-4281-b951-d872f2087c98
* DevTools: Reverting 16586. Necessary v8 changes are not rolled yet.yurys@google.com2009-05-211-46/+75
| | | | | | Review URL: http://codereview.chromium.org/115630 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@16593 0039d316-1c4b-4281-b951-d872f2087c98
* DevTools: only supported event types are forwarded to the client. ↵yurys@google.com2009-05-211-0/+7
| | | | | | | | Unsupported events may cause additional troubles. E.g. ScriptCollected event handling crashes on call to GetEventContext(this should be fixed on v8 side). Review URL: http://codereview.chromium.org/113695 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@16589 0039d316-1c4b-4281-b951-d872f2087c98
* DevTools: use event context to decide which agent should be used for ↵yurys@google.com2009-05-211-75/+46
| | | | | | | | handling the event. Review URL: http://codereview.chromium.org/113629 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@16586 0039d316-1c4b-4281-b951-d872f2087c98
* DevTools: utility scripts and all other scripts not having context data are ↵yurys@google.com2009-05-181-0/+36
| | | | | | | | filtered out on the agent side. Review URL: http://codereview.chromium.org/115466 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@16288 0039d316-1c4b-4281-b951-d872f2087c98
* Page global contexts are assigned uniques ids.Script list now contain ↵yurys@google.com2009-05-131-24/+26
| | | | | | | | scripts from the inspected tab only.Also switched DebuggerAgentManager to MessageHandler2 that accepts v8::Debug::Message instead of string. Review URL: http://codereview.chromium.org/115032 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@15945 0039d316-1c4b-4281-b951-d872f2087c98
* Split V8Proxy::retrieveActiveFrame() into two methods.aa@chromium.org2009-05-121-1/+1
| | | | | | | | | | | | | | | | | | We now have RetrieveFrameForCurrentContext() and RetrieveFrameForEnteredContext(). These terms means the same thing they do in V8::Context -- 'current' is the top of the js stack and 'entered' is the bottom. I needed 'entered' to fix a bug in extensions where if you call an extension API through the web inspector we get confused and think the web inspector's view is the one who called. Review URL: http://codereview.chromium.org/113085 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@15828 0039d316-1c4b-4281-b951-d872f2087c98
* DevTools: Do not fail on closing WebInspector while on a breakpoint.pfeldman@chromium.org2009-05-061-10/+66
| | | | | | Review URL: http://codereview.chromium.org/108020 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@15403 0039d316-1c4b-4281-b951-d872f2087c98
* 1. Debugger front-end scripts are now updated from 'afterCompile' events.yurys@google.com2009-04-281-0/+8
| | | | | | | 2. V8 debugger message handlers are temporary removed when a new debugger agent is attaching to avoid failing on compile events. Review URL: http://codereview.chromium.org/100042 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@14728 0039d316-1c4b-4281-b951-d872f2087c98
* To avoid reauest and response json parsing caller_id is passed as ClientData ↵yurys@google.com2009-04-241-109/+44
| | | | | | | | parameter to the debugger. Review URL: http://codereview.chromium.org/93068 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@14421 0039d316-1c4b-4281-b951-d872f2087c98
* Review URL: http://codereview.chromium.org/93009yurys@google.com2009-04-231-1/+1
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@14295 0039d316-1c4b-4281-b951-d872f2087c98
* DevTools: Run nested message loop instead of whitelisting the messages.pfeldman@chromium.org2009-04-221-18/+15
| | | | | | Review URL: http://codereview.chromium.org/90007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@14183 0039d316-1c4b-4281-b951-d872f2087c98
* DevTools: Make all devtools messages dispatch through debugger interrupt.pfeldman@chromium.org2009-04-171-12/+31
| | | | | | Review URL: http://codereview.chromium.org/73002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@13910 0039d316-1c4b-4281-b951-d872f2087c98
* 1. All debugger messages are dispatched in a static method on the IO thread. ↵yurys@google.com2009-04-081-9/+156
| | | | | | | | | | | All responses from the v8 go to another static method where we should find out which devtool agent delegate should be used for sending the response. We use call_id to match request with the delegate its response should be sent to. We don't pass the delegate directly as it's designed to be accessed on the render thread only. To match debug command response with its request the request sequence number is replaced with a number that is unique across the renderer(note that requests from different clients may have equal ids so we cannot rely on them). This happens before the command gets to the v8. When the command response is ready the original request_seq is restored. Before that the request_seq field is used to find out which devtools agent delegate should be used for sending the response. 2. For the debugger events we derive target agent from the current v8 execution context. If there is no agent attached to the RenderView owning that context 'continue' command is sent to the v8 automatically and the message is ignored. Review URL: http://codereview.chromium.org/62106 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@13347 0039d316-1c4b-4281-b951-d872f2087c98
* Debugger output is now handled on the render thread.yurys@google.com2009-04-021-1/+4
| | | | | | Review URL: http://codereview.chromium.org/60013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@13007 0039d316-1c4b-4281-b951-d872f2087c98
* 1. Supported removal of breakpoints from UI.yurys@google.com2009-04-011-0/+8
| | | | | | | | | 2. Fixed bug in resume debugger functionality. 3. Implemented pause in debugger. 4. Removed deprecated messages and their handlers. Review URL: http://codereview.chromium.org/60012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@12952 0039d316-1c4b-4281-b951-d872f2087c98
* 1. Implemented an agent providing RPC interface to v8 debugger of the ↵yurys@google.com2009-03-271-0/+88
inspected page. 2. Introduce new devtools IPC message to distinguish debugger messages and process them on IO thread so that debugger commands can be processed when v8 is stopped on a breakpoint bloking the render thread. 3. Added RPC message to allow devtool client evaluating JS expressions in the context of the inspected page. Review URL: http://codereview.chromium.org/42594 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@12639 0039d316-1c4b-4281-b951-d872f2087c98