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 // Mojo interface to return extracted metadata for AppIndexing. |
| 17 class MODULES_EXPORT CopylessPasteServer final |
| 18 : public mojom::document_metadata::blink::CopylessPaste { |
| 19 public: |
| 20 explicit CopylessPasteServer(LocalFrame&); |
| 21 |
| 22 static void bindMojoRequest( |
| 23 LocalFrame*, |
| 24 mojom::document_metadata::blink::CopylessPasteRequest); |
| 25 |
| 26 void GetEntities(const GetEntitiesCallback&) override; |
| 27 |
| 28 private: |
| 29 WeakPersistent<LocalFrame> m_frame; |
| 30 }; |
| 31 |
| 32 } // namespace blink |
| 33 |
| 34 #endif // CopylessPasteServer_h |
OLD | NEW |