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

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: Addressed comments 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
« no previous file with comments | « content/shell/shell_network_delegate.cc ('k') | net/base/network_delegate.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/base/network_delegate.h
diff --git a/net/base/network_delegate.h b/net/base/network_delegate.h
index 4d56e3f6cfcd4750a8a703c2a655e2520b6d222c..ed6a7faa0a0198cf35ca32d7f7bf1799097ef1cf 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 {
@@ -87,6 +88,9 @@ class NetworkDelegate : public base::NonThreadSafe {
const FilePath& path) const;
bool CanThrottleRequest(const URLRequest& request) 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
@@ -207,6 +211,10 @@ class NetworkDelegate : public base::NonThreadSafe {
// URLRequestThrottlerManager believes the server servicing the
// request is overloaded or down.
virtual bool OnCanThrottleRequest(const URLRequest& request) const = 0;
+
+ // Called before a SocketStream tries to connect.
+ virtual int OnBeforeSocketStreamConnect(
+ SocketStream* socket, const CompletionCallback& callback) = 0;
};
} // namespace net
« no previous file with comments | « content/shell/shell_network_delegate.cc ('k') | net/base/network_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698