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

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

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 | « no previous file | chrome/browser/extensions/api/socket/socket.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/api/socket/socket.h
diff --git a/chrome/browser/extensions/api/socket/socket.h b/chrome/browser/extensions/api/socket/socket.h
index 60feeebb76ec72efde496620cbe6af8ad5aa7041..4c9692e758778c416d2924c29c2106378ce53383 100644
--- a/chrome/browser/extensions/api/socket/socket.h
+++ b/chrome/browser/extensions/api/socket/socket.h
@@ -39,6 +39,9 @@ class Socket : public APIResource {
virtual void Connect(const std::string& address,
int port,
const CompletionCallback& callback) = 0;
+ virtual void PerformSSLHandshake(const std::string& ssl_hostname,
+ int ssl_port,
+ const CompletionCallback& callback);
virtual void Disconnect() = 0;
virtual int Bind(const std::string& address, int port) = 0;
@@ -77,6 +80,7 @@ class Socket : public APIResource {
protected:
explicit Socket(APIResourceEventNotifier* event_notifier);
+ bool write_queue_empty() const;
void WriteData();
virtual int WriteImpl(net::IOBuffer* io_buffer,
int io_buffer_size,
« no previous file with comments | « no previous file | chrome/browser/extensions/api/socket/socket.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698