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

Unified Diff: content/browser/presentation/presentation_service_impl.h

Issue 2706463002: [Presentation API] Mojo typemap for content::PresentationConnectionMessage (Closed)
Patch Set: Fix compile error in presentation_connection_message Created 3 years, 10 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/browser/presentation/presentation_service_impl.h
diff --git a/content/browser/presentation/presentation_service_impl.h b/content/browser/presentation/presentation_service_impl.h
index 240fbd74af7f9eef8bf303b0349f6c21b4ed4ff9..cfd8d149617f2fe5ab964fb99707b45277db6b48 100644
--- a/content/browser/presentation/presentation_service_impl.h
+++ b/content/browser/presentation/presentation_service_impl.h
@@ -102,7 +102,7 @@ class CONTENT_EXPORT PresentationServiceImpl
static const int kMaxNumQueuedSessionRequests = 10;
using ConnectionMessagesCallback =
- base::Callback<void(std::vector<blink::mojom::ConnectionMessagePtr>)>;
+ base::Callback<void(const std::vector<PresentationConnectionMessage>&)>;
using SendConnectionMessageCallback = base::Callback<void(bool)>;
// Listener implementation owned by PresentationServiceImpl. An instance of
@@ -170,7 +170,7 @@ class CONTENT_EXPORT PresentationServiceImpl
const NewSessionCallback& callback) override;
void SendConnectionMessage(
const PresentationSessionInfo& session_info,
- blink::mojom::ConnectionMessagePtr connection_message,
+ const PresentationConnectionMessage& message,
const SendConnectionMessageCallback& callback) override;
void CloseConnection(const GURL& presentation_url,
const std::string& presentation_id) override;
@@ -240,9 +240,7 @@ class CONTENT_EXPORT PresentationServiceImpl
// later invocation when session messages arrive.
void OnConnectionMessages(
const content::PresentationSessionInfo& session_info,
- const std::vector<std::unique_ptr<PresentationConnectionMessage>>&
- messages,
- bool pass_ownership);
+ const std::vector<content::PresentationConnectionMessage>& messages);
// A callback registered to OffscreenPresentationManager when
// the PresentationServiceImpl for the presentation receiver is initialized.

Powered by Google App Engine
This is Rietveld 408576698