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 |
haraken
2017/04/06 02:26:32
Add a class-level comment.
wychen
2017/04/06 15:34:58
I think the coding style in Blink was more like pr
|
+ : 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; |
+}; |
+ |
+} // namespace blink |
+ |
+#endif // CopylessPasteServer_h |