Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(443)

Unified Diff: third_party/WebKit/Source/modules/document_metadata/CopylessPasteServer.h

Issue 2793103002: Parse JSON in Blink for CopylessPaste. (Closed)
Patch Set: Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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..038af66843bc592ce0fb81ff2f32c48d74a9ed50
--- /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 THIRD_PARTY_WEBKIT_SOURCE_MODULES_DOCUMENT_METADATA_COPYLESSPASTESERVER_H_
+#define THIRD_PARTY_WEBKIT_SOURCE_MODULES_DOCUMENT_METADATA_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;
+};
+
+} // namespace blink
+
+#endif // THIRD_PARTY_WEBKIT_SOURCE_MODULES_DOCUMENT_METADATA_COPYLESSPASTESERVER_H_

Powered by Google App Engine
This is Rietveld 408576698