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

Unified Diff: third_party/WebKit/Source/web/agent/agent.h

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
Index: third_party/WebKit/Source/web/agent/agent.h
diff --git a/third_party/WebKit/Source/web/agent/agent.h b/third_party/WebKit/Source/web/agent/agent.h
new file mode 100644
index 0000000000000000000000000000000000000000..021e415665ae37506356bf471f078a2ac2a248c6
--- /dev/null
+++ b/third_party/WebKit/Source/web/agent/agent.h
@@ -0,0 +1,28 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef WEB_AGENT_AGENT_H
+#define WEB_AGENT_AGENT_H
+
+#include "platform/heap/Handle.h"
+#include "web/api/frame.h"
+
+namespace web {
+
+class Agent : public blink::GarbageCollectedFinalized<Agent> {
+ public:
+ explicit Agent(Frame* frame) : frame_(frame) {}
+
+ DEFINE_INLINE_TRACE() { visitor->trace(frame_); }
+
+ protected:
+ Frame* GetFrame() const { return frame_; }
+
+ private:
+ blink::Member<Frame> frame_;
+};
+
+} // namespace web
+
+#endif // WEB_AGENT_AGENT_H
« no previous file with comments | « third_party/WebKit/Source/web/WebLocalFrameImpl.cpp ('k') | third_party/WebKit/Source/web/agent/sample/sample_agent.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698