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. | |
| 4 | |
| 5 #ifndef CopylessPasteServer_h | |
| 6 #define CopylessPasteServer_h | |
| 7 | |
| 8 #include "modules/ModulesExport.h" | |
| 9 #include "platform/heap/Persistent.h" | |
| 10 #include "public/platform/modules/document_metadata/copyless_paste.mojom-blink.h " | |
| 11 | |
| 12 namespace blink { | |
| 13 | |
| 14 class LocalFrame; | |
| 15 | |
| 16 class MODULES_EXPORT CopylessPasteServer final | |
| 17 : public mojom::blink::CopylessPaste { | |
| 18 public: | |
| 19 explicit CopylessPasteServer(LocalFrame&); | |
| 20 | |
| 21 static void bindMojoRequest(LocalFrame*, mojom::blink::CopylessPasteRequest); | |
| 22 | |
| 23 void GetEntities(const GetEntitiesCallback&) override; | |
| 24 | |
| 25 private: | |
| 26 WeakPersistent<LocalFrame> m_frame; | |
|
dglazkov
2017/03/30 17:52:50
Could you help me understand why WeakPersistent is
wychen
2017/03/30 18:00:30
I followed other similar examples like:
https://cs
| |
| 27 }; | |
| 28 | |
| 29 } // namespace blink | |
| 30 | |
| 31 #endif // CopylessPasteServer_h | |
| OLD | NEW |