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

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

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/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..92015dffbcd45ae1151148e449980481f99559c8
--- /dev/null
+++ b/third_party/WebKit/Source/web/agent/agent.h
@@ -0,0 +1,32 @@
+// 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 "web/api/Frame.h"
+#include "platform/heap/Handle.h"
+
+namespace web {
+namespace agent {
+
+class Agent : public blink::GarbageCollectedFinalized<Agent> {
+ public:
+ explicit Agent(api::Frame* frame) : frame_(frame) {}
+
+ using Visitor = blink::Visitor;
+ using InlinedGlobalMarkingVisitor = blink::InlinedGlobalMarkingVisitor;
+ DEFINE_INLINE_TRACE() { visitor->trace(frame_); }
+
+ protected:
+ api::Frame* GetFrame() const { return frame_; }
+
+ private:
+ blink::Member<api::Frame> frame_;
+};
+
+} // namespace agent
+} // namespace web
+
+#endif // WEB_AGENT_AGENT_H

Powered by Google App Engine
This is Rietveld 408576698