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

Side by Side Diff: third_party/WebKit/Source/core/dom/MessagePort.h

Issue 2716163002: MessagePort: don't post repeated message dispatch tasks. (Closed)
Patch Set: improve comments 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2008 Apple Inc. All Rights Reserved. 2 * Copyright (C) 2008 Apple Inc. All Rights Reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
134 bool tryGetMessage(RefPtr<SerializedScriptValue>& message, 134 bool tryGetMessage(RefPtr<SerializedScriptValue>& message,
135 MessagePortChannelArray& channels); 135 MessagePortChannelArray& channels);
136 136
137 private: 137 private:
138 // WebMessagePortChannelClient implementation. 138 // WebMessagePortChannelClient implementation.
139 void messageAvailable() override; 139 void messageAvailable() override;
140 void dispatchMessages(); 140 void dispatchMessages();
141 141
142 WebMessagePortChannelUniquePtr m_entangledChannel; 142 WebMessagePortChannelUniquePtr m_entangledChannel;
143 143
144 int m_pendingDispatchTask;
144 bool m_started; 145 bool m_started;
145 bool m_closed; 146 bool m_closed;
146 }; 147 };
147 148
148 } // namespace blink 149 } // namespace blink
149 150
150 #endif // MessagePort_h 151 #endif // MessagePort_h
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/dom/MessagePort.cpp » ('j') | third_party/WebKit/Source/core/dom/MessagePort.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698