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

Unified Diff: net/base/network_delegate.h

Issue 10541046: Adds NetworkDelegate::NotifyBeforeSocketStreamConnect() (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Fix compile error Created 8 years, 6 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
Index: net/base/network_delegate.h
diff --git a/net/base/network_delegate.h b/net/base/network_delegate.h
index 2886d486d91ddf7797c914b0ea68fc1e7a27711d..e6a11b77cf63de1e7981a020f3147dff3821d1f3 100644
--- a/net/base/network_delegate.h
+++ b/net/base/network_delegate.h
@@ -33,6 +33,7 @@ class CookieList;
class CookieOptions;
class HttpRequestHeaders;
class HttpResponseHeaders;
+class SocketStream;
class URLRequest;
class NetworkDelegate : public base::NonThreadSafe {
@@ -86,6 +87,9 @@ class NetworkDelegate : public base::NonThreadSafe {
bool CanAccessFile(const URLRequest& request,
const FilePath& path) const;
+ int NotifyBeforeSocketStreamConnect(SocketStream* socket,
+ const CompletionCallback& callback);
+
private:
// This is the interface for subclasses of NetworkDelegate to implement. These
// member functions will be called by the respective public notification
@@ -202,6 +206,9 @@ class NetworkDelegate : public base::NonThreadSafe {
virtual bool OnCanAccessFile(const URLRequest& request,
const FilePath& path) const = 0;
+ // Called before a SocketStream tries to connect.
+ virtual int OnBeforeSocketStreamConnect(
+ SocketStream* socket, const CompletionCallback& callback) = 0;
};
} // namespace net

Powered by Google App Engine
This is Rietveld 408576698