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

Unified Diff: content/renderer/presentation/presentation_dispatcher.h

Issue 2714693002: [Presentation API] Use connection proxy to change connection state to 'closed' (Closed)
Patch Set: 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/renderer/presentation/presentation_dispatcher.h
diff --git a/content/renderer/presentation/presentation_dispatcher.h b/content/renderer/presentation/presentation_dispatcher.h
index 3ec8da333ff7384e62e9e41fbc8d89f360761aa2..a87365f4a6b9976d56d0b25f90ffd8cbc2a384f7 100644
--- a/content/renderer/presentation/presentation_dispatcher.h
+++ b/content/renderer/presentation/presentation_dispatcher.h
@@ -8,9 +8,9 @@
#include <stddef.h>
#include <stdint.h>
+#include <deque>
#include <map>
#include <memory>
-#include <queue>
#include <set>
#include <string>
#include <vector>
@@ -129,8 +129,10 @@ class CONTENT_EXPORT PresentationDispatcher
const uint8_t* data,
size_t length,
const blink::WebPresentationConnectionProxy* connection_proxy) override;
- void closeSession(const blink::WebURL& presentationUrl,
- const blink::WebString& presentationId) override;
+ void closeSession(
+ const blink::WebURL& presentationUrl,
+ const blink::WebString& presentationId,
+ const blink::WebPresentationConnectionProxy* connection_proxy) override;
void terminateSession(const blink::WebURL& presentationUrl,
const blink::WebString& presentationId) override;
void getAvailability(
@@ -201,7 +203,7 @@ class CONTENT_EXPORT PresentationDispatcher
// Message requests are queued here and only one message at a time is sent
// over mojo channel.
- using MessageRequestQueue = std::queue<std::unique_ptr<SendMessageRequest>>;
+ using MessageRequestQueue = std::deque<std::unique_ptr<SendMessageRequest>>;
MessageRequestQueue message_request_queue_;
enum class ListeningState {

Powered by Google App Engine
This is Rietveld 408576698