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

Unified Diff: content/child/webmessageportchannel_impl.h

Issue 1110103003: Initial implementation of stashed message ports, content side (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: nicer dchecks Created 5 years, 7 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
« no previous file with comments | « content/browser/storage_partition_impl.cc ('k') | content/child/webmessageportchannel_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/child/webmessageportchannel_impl.h
diff --git a/content/child/webmessageportchannel_impl.h b/content/child/webmessageportchannel_impl.h
index 4b9c273d01dcac2267d685d82950aceaa1d85364..c6306e85f624147ef967d3fdac57eaf7d5de20e7 100644
--- a/content/child/webmessageportchannel_impl.h
+++ b/content/child/webmessageportchannel_impl.h
@@ -69,6 +69,8 @@ class WebMessagePortChannelImpl
void QueueMessages();
int message_port_id() const { return message_port_id_; }
+ void set_is_stashed() { is_stashed_ = true; }
+
private:
friend class base::RefCountedThreadSafe<WebMessagePortChannelImpl>;
~WebMessagePortChannelImpl() override;
@@ -115,6 +117,7 @@ class WebMessagePortChannelImpl
// base::Value instances as opposed to being serialized using the default
// blink::WebSerializedScriptValue.
bool send_messages_as_values_;
+ bool is_stashed_;
scoped_refptr<base::SingleThreadTaskRunner> main_thread_task_runner_;
DISALLOW_COPY_AND_ASSIGN(WebMessagePortChannelImpl);
« no previous file with comments | « content/browser/storage_partition_impl.cc ('k') | content/child/webmessageportchannel_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698