| 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
|
|
|