Chromium Code Reviews| Index: third_party/WebKit/Source/modules/document_metadata/CopylessPasteServer.h |
| diff --git a/third_party/WebKit/Source/modules/document_metadata/CopylessPasteServer.h b/third_party/WebKit/Source/modules/document_metadata/CopylessPasteServer.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..78e77639403b0f31b7700c94db02d02d0fb7cfa7 |
| --- /dev/null |
| +++ b/third_party/WebKit/Source/modules/document_metadata/CopylessPasteServer.h |
| @@ -0,0 +1,31 @@ |
| +// Copyright 2017 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef CopylessPasteServer_h |
| +#define CopylessPasteServer_h |
| + |
| +#include "modules/ModulesExport.h" |
| +#include "platform/heap/Persistent.h" |
| +#include "public/platform/modules/document_metadata/copyless_paste.mojom-blink.h" |
| + |
| +namespace blink { |
| + |
| +class LocalFrame; |
| + |
| +class MODULES_EXPORT CopylessPasteServer final |
| + : public mojom::blink::CopylessPaste { |
| + public: |
| + explicit CopylessPasteServer(LocalFrame&); |
| + |
| + static void bindMojoRequest(LocalFrame*, mojom::blink::CopylessPasteRequest); |
| + |
| + void GetEntities(const GetEntitiesCallback&) override; |
| + |
| + private: |
| + 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
|
| +}; |
| + |
| +} // namespace blink |
| + |
| +#endif // CopylessPasteServer_h |