OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CHROME_BROWSER_NET_CHROME_NETWORK_DELEGATE_H_ | 5 #ifndef CHROME_BROWSER_NET_CHROME_NETWORK_DELEGATE_H_ |
6 #define CHROME_BROWSER_NET_CHROME_NETWORK_DELEGATE_H_ | 6 #define CHROME_BROWSER_NET_CHROME_NETWORK_DELEGATE_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
86 net::AuthCredentials* credentials) OVERRIDE; | 86 net::AuthCredentials* credentials) OVERRIDE; |
87 virtual bool OnCanGetCookies(const net::URLRequest& request, | 87 virtual bool OnCanGetCookies(const net::URLRequest& request, |
88 const net::CookieList& cookie_list) OVERRIDE; | 88 const net::CookieList& cookie_list) OVERRIDE; |
89 virtual bool OnCanSetCookie(const net::URLRequest& request, | 89 virtual bool OnCanSetCookie(const net::URLRequest& request, |
90 const std::string& cookie_line, | 90 const std::string& cookie_line, |
91 net::CookieOptions* options) OVERRIDE; | 91 net::CookieOptions* options) OVERRIDE; |
92 virtual bool OnCanAccessFile(const net::URLRequest& request, | 92 virtual bool OnCanAccessFile(const net::URLRequest& request, |
93 const FilePath& path) const OVERRIDE; | 93 const FilePath& path) const OVERRIDE; |
94 virtual bool OnCanThrottleRequest( | 94 virtual bool OnCanThrottleRequest( |
95 const net::URLRequest& request) const OVERRIDE; | 95 const net::URLRequest& request) const OVERRIDE; |
| 96 virtual int OnBeforeSocketStreamConnect( |
| 97 net::SocketStream* stream, |
| 98 const net::CompletionCallback& callback) OVERRIDE; |
96 | 99 |
97 scoped_refptr<ExtensionEventRouterForwarder> event_router_; | 100 scoped_refptr<ExtensionEventRouterForwarder> event_router_; |
98 void* profile_; | 101 void* profile_; |
99 scoped_refptr<CookieSettings> cookie_settings_; | 102 scoped_refptr<CookieSettings> cookie_settings_; |
100 | 103 |
101 scoped_refptr<ExtensionInfoMap> extension_info_map_; | 104 scoped_refptr<ExtensionInfoMap> extension_info_map_; |
102 | 105 |
103 // Weak, owned by our owner. | 106 // Weak, owned by our owner. |
104 BooleanPrefMember* enable_referrers_; | 107 BooleanPrefMember* enable_referrers_; |
105 | 108 |
106 // True if OnCanThrottleRequest should always return false. | 109 // True if OnCanThrottleRequest should always return false. |
107 bool never_throttle_requests_; | 110 bool never_throttle_requests_; |
108 | 111 |
109 // Weak, owned by our owner. | 112 // Weak, owned by our owner. |
110 const policy::URLBlacklistManager* url_blacklist_manager_; | 113 const policy::URLBlacklistManager* url_blacklist_manager_; |
111 | 114 |
112 // When true, allow access to all file:// URLs. | 115 // When true, allow access to all file:// URLs. |
113 static bool g_allow_file_access_; | 116 static bool g_allow_file_access_; |
114 | 117 |
115 DISALLOW_COPY_AND_ASSIGN(ChromeNetworkDelegate); | 118 DISALLOW_COPY_AND_ASSIGN(ChromeNetworkDelegate); |
116 }; | 119 }; |
117 | 120 |
118 #endif // CHROME_BROWSER_NET_CHROME_NETWORK_DELEGATE_H_ | 121 #endif // CHROME_BROWSER_NET_CHROME_NETWORK_DELEGATE_H_ |
OLD | NEW |