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

Side by Side Diff: content/browser/renderer_host/socket_stream_host.cc

Issue 6532073: Move core pieces of browser\renderer_host to src\content. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 10 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) 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/browser/renderer_host/socket_stream_host.h" 5 #include "content/browser/renderer_host/socket_stream_host.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "chrome/common/net/socket_stream.h" 8 #include "chrome/common/net/socket_stream.h"
9 #include "net/socket_stream/socket_stream_job.h" 9 #include "net/socket_stream/socket_stream_job.h"
10 10
11 static const char* kSocketIdKey = "socketId"; 11 static const char* kSocketIdKey = "socketId";
12 12
13 class SocketStreamId : public net::SocketStream::UserData { 13 class SocketStreamId : public net::SocketStream::UserData {
14 public: 14 public:
15 explicit SocketStreamId(int socket_id) : socket_id_(socket_id) {} 15 explicit SocketStreamId(int socket_id) : socket_id_(socket_id) {}
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 VLOG(1) << "SocketStreamHost::SendData"; 57 VLOG(1) << "SocketStreamHost::SendData";
58 return socket_ && socket_->SendData(&data[0], data.size()); 58 return socket_ && socket_->SendData(&data[0], data.size());
59 } 59 }
60 60
61 void SocketStreamHost::Close() { 61 void SocketStreamHost::Close() {
62 VLOG(1) << "SocketStreamHost::Close"; 62 VLOG(1) << "SocketStreamHost::Close";
63 if (!socket_) 63 if (!socket_)
64 return; 64 return;
65 socket_->Close(); 65 socket_->Close();
66 } 66 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698