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

Unified Diff: third_party/WebKit/Source/web/WebLocalFrameImpl.cpp

Issue 2591803002: NOT FOR LANDING: Thread the needle through all webmodules.
Patch Set: AddEventListener sketched out. Created 3 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/WebKit/Source/web/WebLocalFrameImpl.h ('k') | third_party/WebKit/Source/web/agent/agent.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/web/WebLocalFrameImpl.cpp
diff --git a/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp b/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp
index 5a917d88d3f8e6dc534087a051f26899c2a9f089..8ec518020c99f624dc0d2ceb26782b4c0b44d031 100644
--- a/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp
+++ b/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp
@@ -231,6 +231,8 @@
#include "web/WebPluginContainerImpl.h"
#include "web/WebRemoteFrameImpl.h"
#include "web/WebViewImpl.h"
+#include "web/agent/sample/sample_agent.h"
+#include "web/api/frame.h"
#include "wtf/CurrentTime.h"
#include "wtf/HashMap.h"
#include "wtf/PtrUtil.h"
@@ -1927,6 +1929,13 @@ WebDevToolsAgent* WebLocalFrameImpl::devToolsAgent() {
return m_devToolsAgent.get();
}
+void WebLocalFrameImpl::startAgents() {
+ // TODO(dglazkov): Store all agents for the lifetime of this instance.
+ if (!frame())
+ return;
+ new web::SampleAgent(new web::Frame(frame()));
+}
+
WebLocalFrameImpl* WebLocalFrameImpl::localRoot() {
// This can't use the LocalFrame::localFrameRoot, since it may be called
// when the WebLocalFrame exists but the core LocalFrame does not.
« no previous file with comments | « third_party/WebKit/Source/web/WebLocalFrameImpl.h ('k') | third_party/WebKit/Source/web/agent/agent.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698