Chromium Code Reviews| 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.#ifndef WebViewBase_h | |
|
sashab
2017/05/15 01:59:48
Remove #ifndef WebViewBase_h
| |
| 4 | |
| 5 #ifndef WebRemoteFrameBase_h | |
| 6 #define WebRemoteFrameBase_h | |
| 7 | |
| 8 #include "core/CoreExport.h" | |
| 9 #include "public/web/WebRemoteFrame.h" | |
| 10 | |
| 11 namespace blink { | |
| 12 | |
| 13 class FrameOwner; | |
| 14 class Page; | |
| 15 class RemoteFrame; | |
| 16 | |
| 17 class WebRemoteFrameBase : public GarbageCollectedFinalized<WebRemoteFrameBase>, | |
| 18 public WebRemoteFrame { | |
| 19 public: | |
| 20 CORE_EXPORT static WebRemoteFrameBase* FromFrame(RemoteFrame&); | |
| 21 | |
| 22 virtual void InitializeCoreFrame(Page&, | |
| 23 FrameOwner*, | |
| 24 const AtomicString& name) = 0; | |
| 25 virtual RemoteFrame* GetFrame() const = 0; | |
| 26 | |
| 27 DEFINE_INLINE_VIRTUAL_TRACE() {} | |
| 28 | |
| 29 protected: | |
| 30 explicit WebRemoteFrameBase(WebTreeScopeType scope) : WebRemoteFrame(scope) {} | |
| 31 }; | |
| 32 | |
| 33 DEFINE_TYPE_CASTS(WebRemoteFrameBase, | |
| 34 WebFrame, | |
| 35 frame, | |
| 36 frame->IsWebRemoteFrame(), | |
| 37 frame.IsWebRemoteFrame()); | |
| 38 } // namespace blink | |
| 39 | |
| 40 #endif // WebRemoteFrameBase_h | |
| OLD | NEW |