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

Side by Side Diff: content/renderer/p2p/socket_client.cc

Issue 6673090: Move core renderer subdirectories to content. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 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 | Annotate | Revision Log
« no previous file with comments | « content/renderer/p2p/socket_client.h ('k') | content/renderer/p2p/socket_dispatcher.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 "chrome/renderer/p2p/socket_client.h" 5 #include "content/renderer/p2p/socket_client.h"
6 6
7 #include "base/message_loop_proxy.h" 7 #include "base/message_loop_proxy.h"
8 #include "chrome/renderer/p2p/socket_dispatcher.h"
9 #include "content/common/p2p_messages.h" 8 #include "content/common/p2p_messages.h"
9 #include "content/renderer/p2p/socket_dispatcher.h"
10 10
11 P2PSocketClient::P2PSocketClient(P2PSocketDispatcher* dispatcher) 11 P2PSocketClient::P2PSocketClient(P2PSocketDispatcher* dispatcher)
12 : dispatcher_(dispatcher), 12 : dispatcher_(dispatcher),
13 ipc_message_loop_(dispatcher->message_loop()), 13 ipc_message_loop_(dispatcher->message_loop()),
14 delegate_message_loop_(NULL), 14 delegate_message_loop_(NULL),
15 socket_id_(0), delegate_(NULL), 15 socket_id_(0), delegate_(NULL),
16 state_(STATE_UNINITIALIZED) { 16 state_(STATE_UNINITIALIZED) {
17 } 17 }
18 18
19 P2PSocketClient::~P2PSocketClient() { 19 P2PSocketClient::~P2PSocketClient() {
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 const std::vector<char>& data) { 115 const std::vector<char>& data) {
116 if (delegate_) 116 if (delegate_)
117 delegate_->OnDataReceived(address, data); 117 delegate_->OnDataReceived(address, data);
118 } 118 }
119 119
120 void P2PSocketClient::Detach() { 120 void P2PSocketClient::Detach() {
121 DCHECK(ipc_message_loop_->BelongsToCurrentThread()); 121 DCHECK(ipc_message_loop_->BelongsToCurrentThread());
122 dispatcher_ = NULL; 122 dispatcher_ = NULL;
123 OnError(); 123 OnError();
124 } 124 }
OLDNEW
« no previous file with comments | « content/renderer/p2p/socket_client.h ('k') | content/renderer/p2p/socket_dispatcher.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698