| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef WebFrameImplBase_h | 5 #ifndef WebFrameImplBase_h |
| 6 #define WebFrameImplBase_h | 6 #define WebFrameImplBase_h |
| 7 | 7 |
| 8 #include "platform/heap/Handle.h" | 8 #include "platform/heap/Handle.h" |
| 9 #include "web/WebExport.h" | 9 #include "web/WebExport.h" |
| 10 #include "wtf/text/AtomicString.h" | 10 #include "wtf/text/AtomicString.h" |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 // implements WebRemoteFrame. | 21 // implements WebRemoteFrame. |
| 22 // - The private implementations should share some functionality, but cannot | 22 // - The private implementations should share some functionality, but cannot |
| 23 // inherit from a common base class inheriting WebFrame. This would result in | 23 // inherit from a common base class inheriting WebFrame. This would result in |
| 24 // WebFrame beind inherited from two different base classes. | 24 // WebFrame beind inherited from two different base classes. |
| 25 // | 25 // |
| 26 // To get around this, only the private implementations have WebFrameImplBase as | 26 // To get around this, only the private implementations have WebFrameImplBase as |
| 27 // a base class. WebFrame exposes a virtual accessor to retrieve the underlying | 27 // a base class. WebFrame exposes a virtual accessor to retrieve the underlying |
| 28 // implementation as an instance of the base class, but has no inheritance | 28 // implementation as an instance of the base class, but has no inheritance |
| 29 // relationship with it. The cost is a virtual indirection, but this is nicer | 29 // relationship with it. The cost is a virtual indirection, but this is nicer |
| 30 // than the previous manual dispatch emulating real virtual dispatch. | 30 // than the previous manual dispatch emulating real virtual dispatch. |
| 31 class WEB_EXPORT WebFrameImplBase : public RefCountedWillBeGarbageCollectedFinal
ized<WebFrameImplBase> { | 31 class WEB_EXPORT WebFrameImplBase : public GarbageCollectedFinalized<WebFrameImp
lBase> { |
| 32 public: | 32 public: |
| 33 virtual ~WebFrameImplBase(); | 33 virtual ~WebFrameImplBase(); |
| 34 | 34 |
| 35 virtual void initializeCoreFrame(FrameHost*, FrameOwner*, const AtomicString
& name, const AtomicString& uniqueName) = 0; | 35 virtual void initializeCoreFrame(FrameHost*, FrameOwner*, const AtomicString
& name, const AtomicString& uniqueName) = 0; |
| 36 // TODO(dcheng): Rename this to coreFrame()? This probably also shouldn't be
const... | 36 // TODO(dcheng): Rename this to coreFrame()? This probably also shouldn't be
const... |
| 37 virtual Frame* frame() const = 0; | 37 virtual Frame* frame() const = 0; |
| 38 | 38 |
| 39 DECLARE_VIRTUAL_TRACE(); | 39 DECLARE_VIRTUAL_TRACE(); |
| 40 }; | 40 }; |
| 41 | 41 |
| 42 } // namespace blink | 42 } // namespace blink |
| 43 | 43 |
| 44 #endif // WebFrameImplBase_h | 44 #endif // WebFrameImplBase_h |
| OLD | NEW |