diff options
author | pfeldman@chromium.org <pfeldman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-04-06 14:01:45 +0000 |
---|---|---|
committer | pfeldman@chromium.org <pfeldman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-04-06 14:01:45 +0000 |
commit | 449be361bb402d93a2bfa59dc61c72beafac6959 (patch) | |
tree | 13978441ed9c6de996972897c57a59d5bee8b5db /webkit/glue/devtools/dom_agent_impl.h | |
parent | b75b7d079cffabab306e5701645f8d6a3c595873 (diff) | |
download | chromium_src-449be361bb402d93a2bfa59dc61c72beafac6959.zip chromium_src-449be361bb402d93a2bfa59dc61c72beafac6959.tar.gz chromium_src-449be361bb402d93a2bfa59dc61c72beafac6959.tar.bz2 |
DevTools: Glue part for the 'attach early' functionality.
- Establish 2 main scenarios for attach: 'attach to live' and 'start attached'
- Make WebFrameLoaderImpl call setMainFrameDocumentReady only for main frame document.
Review URL: http://codereview.chromium.org/62038
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@13154 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/glue/devtools/dom_agent_impl.h')
-rw-r--r-- | webkit/glue/devtools/dom_agent_impl.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/webkit/glue/devtools/dom_agent_impl.h b/webkit/glue/devtools/dom_agent_impl.h index 5a959eb..88a251c 100644 --- a/webkit/glue/devtools/dom_agent_impl.h +++ b/webkit/glue/devtools/dom_agent_impl.h @@ -55,7 +55,11 @@ class DomAgentImpl : public DomAgent { void DiscardBindings(); // Initializes dom agent with the given document. - void SetDocument(WebCore::Document* document); + // 'loaded' must be set to true iff main resource has been loaded + // and document has been parsed. Otherwise, 'loaded' should be + // false. DomAgent will then add itself as a listener to the + // DOMContentLoaded event and will track document loading by itself. + void SetDocument(WebCore::Document* document, bool loaded); // Returns node for given id according to the present binding. WebCore::Node* GetNodeForId(int id); @@ -134,6 +138,7 @@ class DomAgentImpl : public DomAgent { WebCore::Node* InnerFirstChild(WebCore::Node* node); int InnerChildNodeCount(WebCore::Node* node); WebCore::Element* InnerParentElement(WebCore::Node* node); + WebCore::Document* GetMainFrameDocument(); DomAgentDelegate* delegate_; HashMap<WebCore::Node*, int> node_to_id_; @@ -141,6 +146,7 @@ class DomAgentImpl : public DomAgent { HashSet<int> children_requested_; int last_node_id_; ListHashSet<RefPtr<WebCore::Document> > documents_; + HashSet<RefPtr<WebCore::Document> > loaded_documents_; RefPtr<WebCore::EventListener> event_listener_; // Captures pending document element request's call id. // Defaults to 0 meaning no pending request. |