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

Unified Diff: content/public/browser/presentation_message.h

Issue 1037483003: [PresentationAPI] Implementing send() from WebPresentationClient to the PresentationService. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: moved presentation_message.h/.cc to content/public/browser/ Created 5 years, 8 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: content/public/browser/presentation_message.h
diff --git a/content/public/browser/presentation_message.h b/content/public/browser/presentation_message.h
new file mode 100644
index 0000000000000000000000000000000000000000..f069e57adf054f1504f24f259c768d2c62d79396
--- /dev/null
+++ b/content/public/browser/presentation_message.h
@@ -0,0 +1,40 @@
+// Copyright 2015 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 CONTENT_PUBLIC_BROWSER_PRESENTATION_MESSAGE_H_
+#define CONTENT_PUBLIC_BROWSER_PRESENTATION_MESSAGE_H_
+
+#include <string>
+#include <vector>
+
+#include "content/common/content_export.h"
+
+namespace content {
+
+enum CONTENT_EXPORT PresentationMessageType {
+ TEXT,
+ ARRAY_BUFFER,
+};
+
+// Wrapper for text and binary message to be exchanged
+// between presentation sessions.
+struct CONTENT_EXPORT PresentationMessageRequest {
+ PresentationMessageRequest(
+ const std::string& presentation_url,
+ const std::string& presentation_id,
+ PresentationMessageType type,
+ const std::string& message,
+ const std::vector<uint8_t>& data);
+ ~PresentationMessageRequest();
+
+ const std::string presentation_url;
+ const std::string presentation_id;
+ PresentationMessageType type;
+ const std::string message;
imcheng (use chromium acct) 2015/04/30 20:11:30 Could you add some comments about this field being
USE s.singapati at gmail.com 2015/05/04 16:40:28 Done.
+ const std::vector<uint8_t> data;
+};
+
+} // namespace content
+
+#endif // CONTENT_PUBLIC_BROWSER_PRESENTATION_MESSAGE_H_

Powered by Google App Engine
This is Rietveld 408576698