| OLD | NEW |
| (Empty) | |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef WEB_AGENT_AGENT_H |
| 6 #define WEB_AGENT_AGENT_H |
| 7 |
| 8 #include "platform/heap/Handle.h" |
| 9 #include "web/api/frame.h" |
| 10 |
| 11 namespace web { |
| 12 |
| 13 class Agent : public blink::GarbageCollectedFinalized<Agent> { |
| 14 public: |
| 15 explicit Agent(Frame* frame) : frame_(frame) {} |
| 16 |
| 17 DEFINE_INLINE_TRACE() { visitor->trace(frame_); } |
| 18 |
| 19 protected: |
| 20 Frame* GetFrame() const { return frame_; } |
| 21 |
| 22 private: |
| 23 blink::Member<Frame> frame_; |
| 24 }; |
| 25 |
| 26 } // namespace web |
| 27 |
| 28 #endif // WEB_AGENT_AGENT_H |
| OLD | NEW |