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

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

Issue 2591803002: NOT FOR LANDING: Thread the needle through all webmodules.
Patch Set: Needle threaded all the way. Created 4 years 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
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 f23032813ecfc83b9df814bff317a5c8fe1b9308..2a8f96fdacb2cc2cf158f8969a91eb2a63a3ed0a 100644
--- a/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp
+++ b/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp
@@ -227,6 +227,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"
@@ -1906,6 +1908,11 @@ WebDevToolsAgent* WebLocalFrameImpl::devToolsAgent() {
return m_devToolsAgent.get();
}
+void WebLocalFrameImpl::startAgents() {
+ // TODO(dglazkov): Store all agents for the lifetime of this instance.
+ new web::agent::SampleAgent(new web::api::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.

Powered by Google App Engine
This is Rietveld 408576698