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

Unified Diff: remoting/base/protocol_decoder.h

Issue 3305001: Move decoder into separate thread, clean up API layering, and redo update protocl (Closed)
Patch Set: Fix compile error. Created 10 years, 2 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 | « remoting/base/encoder_zlib.cc ('k') | remoting/base/protocol_decoder.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/base/protocol_decoder.h
diff --git a/remoting/base/protocol_decoder.h b/remoting/base/protocol_decoder.h
index b74da64dece9deaf5d7df69890c4e7cbc9d2e3b1..392d9b3f071c99401c00b2890fbf7df09d675dbc 100644
--- a/remoting/base/protocol_decoder.h
+++ b/remoting/base/protocol_decoder.h
@@ -6,7 +6,7 @@
#define REMOTING_BASE_PROTOCOL_DECODER_H_
#include <deque>
-#include <vector>
+#include <list>
#include "base/ref_counted.h"
#include "google/protobuf/message_lite.h"
@@ -15,8 +15,8 @@
namespace remoting {
-typedef std::vector<ChromotingHostMessage*> HostMessageList;
-typedef std::vector<ChromotingClientMessage*> ClientMessageList;
+typedef std::list<ChromotingHostMessage*> HostMessageList;
+typedef std::list<ChromotingClientMessage*> ClientMessageList;
// A protocol decoder is used to decode data transmitted in the chromoting
// network.
@@ -42,7 +42,7 @@ class ProtocolDecoder {
// buffers.
template <typename T>
void ParseMessages(scoped_refptr<media::DataBuffer> data,
- std::vector<T*>* messages);
+ std::list<T*>* messages);
// Parse one message from |data_list_|. Return true if sucessful.
template <typename T>
« no previous file with comments | « remoting/base/encoder_zlib.cc ('k') | remoting/base/protocol_decoder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698