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

Side by Side Diff: remoting/protocol/stream_reader.cc

Issue 3814013: FBTF: Monster ctor patch after changing heuristics in clang plugin. (Closed) Base URL: http://git.chromium.org/git/chromium.git
Patch Set: More add file fail 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "remoting/protocol/stream_reader.h" 5 #include "remoting/protocol/stream_reader.h"
6 6
7 #include "base/message_loop.h" 7 #include "base/message_loop.h"
8 #include "net/base/io_buffer.h"
8 #include "net/base/net_errors.h" 9 #include "net/base/net_errors.h"
9 #include "net/socket/socket.h" 10 #include "net/socket/socket.h"
10 #include "remoting/protocol/chromoting_connection.h" 11 #include "remoting/protocol/chromoting_connection.h"
11 12
12 namespace remoting { 13 namespace remoting {
13 14
14 namespace { 15 namespace {
15 int kReadBufferSize = 4096; 16 int kReadBufferSize = 4096;
16 } // namespace 17 } // namespace
17 18
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 void VideoStreamReader::OnDataReceived(net::IOBuffer* buffer, int data_size) { 94 void VideoStreamReader::OnDataReceived(net::IOBuffer* buffer, int data_size) {
94 HostMessageList messages_list; 95 HostMessageList messages_list;
95 messages_decoder_.ParseHostMessages(buffer, data_size, &messages_list); 96 messages_decoder_.ParseHostMessages(buffer, data_size, &messages_list);
96 for (HostMessageList::iterator it = messages_list.begin(); 97 for (HostMessageList::iterator it = messages_list.begin();
97 it != messages_list.end(); ++it) { 98 it != messages_list.end(); ++it) {
98 on_message_callback_->Run(*it); 99 on_message_callback_->Run(*it);
99 } 100 }
100 } 101 }
101 102
102 } // namespace remoting 103 } // namespace remoting
OLDNEW
« no previous file with comments | « remoting/protocol/messages_decoder.cc ('k') | webkit/glue/media/media_resource_loader_bridge_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698