| 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 PresentationController_h | 5 #ifndef PresentationController_h |
| 6 #define PresentationController_h | 6 #define PresentationController_h |
| 7 | 7 |
| 8 #include "core/frame/DOMWindowProperty.h" | 8 #include "core/frame/DOMWindowProperty.h" |
| 9 #include "core/frame/LocalFrame.h" | 9 #include "core/frame/LocalFrame.h" |
| 10 #include "modules/ModulesExport.h" | 10 #include "modules/ModulesExport.h" |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 size_t length) override; | 61 size_t length) override; |
| 62 | 62 |
| 63 // Called by the Presentation object to advertize itself to the controller. | 63 // Called by the Presentation object to advertize itself to the controller. |
| 64 // The Presentation object is kept as a WeakMember in order to avoid keeping | 64 // The Presentation object is kept as a WeakMember in order to avoid keeping |
| 65 // it alive when it is no longer in the tree. | 65 // it alive when it is no longer in the tree. |
| 66 void setPresentation(Presentation*); | 66 void setPresentation(Presentation*); |
| 67 | 67 |
| 68 // Called by the Presentation object when the default request is updated | 68 // Called by the Presentation object when the default request is updated |
| 69 // in order to notify the client about the change of default presentation | 69 // in order to notify the client about the change of default presentation |
| 70 // url. | 70 // url. |
| 71 void setDefaultRequestUrl(const KURL&); | 71 void setDefaultRequestUrl(const WTF::Vector<KURL>&); |
| 72 | 72 |
| 73 // Handling of running connections. | 73 // Handling of running connections. |
| 74 void registerConnection(PresentationConnection*); | 74 void registerConnection(PresentationConnection*); |
| 75 | 75 |
| 76 private: | 76 private: |
| 77 PresentationController(LocalFrame&, WebPresentationClient*); | 77 PresentationController(LocalFrame&, WebPresentationClient*); |
| 78 | 78 |
| 79 // Implementation of DOMWindowProperty. | 79 // Implementation of DOMWindowProperty. |
| 80 void frameDestroyed() override; | 80 void frameDestroyed() override; |
| 81 | 81 |
| (...skipping 14 matching lines...) Expand all Loading... |
| 96 // The presentation connections associated with that frame. | 96 // The presentation connections associated with that frame. |
| 97 // TODO(mlamouri): the PresentationController will keep any created | 97 // TODO(mlamouri): the PresentationController will keep any created |
| 98 // connections alive until the frame is detached. These should be weak ptr | 98 // connections alive until the frame is detached. These should be weak ptr |
| 99 // so that the connection can be GC'd. | 99 // so that the connection can be GC'd. |
| 100 HeapHashSet<Member<PresentationConnection>> m_connections; | 100 HeapHashSet<Member<PresentationConnection>> m_connections; |
| 101 }; | 101 }; |
| 102 | 102 |
| 103 } // namespace blink | 103 } // namespace blink |
| 104 | 104 |
| 105 #endif // PresentationController_h | 105 #endif // PresentationController_h |
| OLD | NEW |