| Index: net/base/network_delegate.h
|
| diff --git a/net/base/network_delegate.h b/net/base/network_delegate.h
|
| index 81d81902412f89f952976e569132b9949d08e1fb..d4c0f97b02317884513d90e1a6130ccd55bb933a 100644
|
| --- a/net/base/network_delegate.h
|
| +++ b/net/base/network_delegate.h
|
| @@ -53,6 +53,15 @@ class NET_EXPORT NetworkDelegate : public base::NonThreadSafe {
|
| };
|
| typedef base::Callback<void(AuthRequiredResponse)> AuthCallback;
|
|
|
| + // Indicates if the URL matches a pattern defined in blacklist, in whitelist
|
| + // or doesn't match anything in either lists as defined in URLBlacklist and
|
| + // URLWhitelist policies.
|
| + enum URLBlacklistState {
|
| + URL_IN_WHITELIST,
|
| + URL_IN_BLACKLIST,
|
| + URL_NEUTRAL_STATE,
|
| + };
|
| +
|
| virtual ~NetworkDelegate() {}
|
|
|
| // Notification interface called by the network stack. Note that these
|
| @@ -109,6 +118,10 @@ class NET_EXPORT NetworkDelegate : public base::NonThreadSafe {
|
| const GURL& target_url,
|
| const GURL& referrer_url) const;
|
|
|
| + // This function is to be used to check if the |url| is defined in
|
| + // blacklist or whitelist policy.
|
| + virtual URLBlacklistState GetURLBlacklistState(const GURL& url) const;
|
| +
|
| private:
|
| // This is the interface for subclasses of NetworkDelegate to implement. These
|
| // member functions will be called by the respective public notification
|
|
|