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

Unified Diff: chrome/browser/extensions/api/socket/socket.cc

Issue 10580028: Experimental support for SSL in platform apps sockets. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Rebase Created 8 years, 5 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 | « chrome/browser/extensions/api/socket/socket.h ('k') | chrome/browser/extensions/api/socket/socket_api.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/api/socket/socket.cc
diff --git a/chrome/browser/extensions/api/socket/socket.cc b/chrome/browser/extensions/api/socket/socket.cc
index 286fbbd66a93dd2a70264f63aee74ae2e35a57ff..d2b4b2dd989e21447dae2c0947ffda62fef0fddc 100644
--- a/chrome/browser/extensions/api/socket/socket.cc
+++ b/chrome/browser/extensions/api/socket/socket.cc
@@ -25,6 +25,12 @@ Socket::~Socket() {
DCHECK(!is_connected_);
}
+void Socket::PerformSSLHandshake(const std::string& ssl_hostname,
+ int ssl_port,
+ const CompletionCallback& callback) {
+ callback.Run(-1);
+}
+
void Socket::Write(scoped_refptr<net::IOBuffer> io_buffer,
int byte_count,
const CompletionCallback& callback) {
@@ -74,6 +80,10 @@ void Socket::OnWriteComplete(int result) {
WriteData();
}
+bool Socket::write_queue_empty() const {
+ return write_queue_.empty();
+}
+
bool Socket::SetKeepAlive(bool enable, int delay) {
return false;
}
« no previous file with comments | « chrome/browser/extensions/api/socket/socket.h ('k') | chrome/browser/extensions/api/socket/socket_api.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698