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 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
81 const net::AuthChallengeInfo& auth_info, | 81 const net::AuthChallengeInfo& auth_info, |
82 const AuthCallback& callback, | 82 const AuthCallback& callback, |
83 net::AuthCredentials* credentials) OVERRIDE; | 83 net::AuthCredentials* credentials) OVERRIDE; |
84 virtual bool OnCanGetCookies(const net::URLRequest& request, | 84 virtual bool OnCanGetCookies(const net::URLRequest& request, |
85 const net::CookieList& cookie_list) OVERRIDE; | 85 const net::CookieList& cookie_list) OVERRIDE; |
86 virtual bool OnCanSetCookie(const net::URLRequest& request, | 86 virtual bool OnCanSetCookie(const net::URLRequest& request, |
87 const std::string& cookie_line, | 87 const std::string& cookie_line, |
88 net::CookieOptions* options) OVERRIDE; | 88 net::CookieOptions* options) OVERRIDE; |
89 virtual bool OnCanAccessFile(const net::URLRequest& request, | 89 virtual bool OnCanAccessFile(const net::URLRequest& request, |
90 const FilePath& path) const OVERRIDE; | 90 const FilePath& path) const OVERRIDE; |
| 91 virtual int OnBeforeSocketStreamConnect( |
| 92 net::SocketStream* stream, |
| 93 const net::CompletionCallback& callback) OVERRIDE; |
91 | 94 |
92 scoped_refptr<ExtensionEventRouterForwarder> event_router_; | 95 scoped_refptr<ExtensionEventRouterForwarder> event_router_; |
93 void* profile_; | 96 void* profile_; |
94 scoped_refptr<CookieSettings> cookie_settings_; | 97 scoped_refptr<CookieSettings> cookie_settings_; |
95 | 98 |
96 scoped_refptr<ExtensionInfoMap> extension_info_map_; | 99 scoped_refptr<ExtensionInfoMap> extension_info_map_; |
97 | 100 |
98 // Weak, owned by our owner. | 101 // Weak, owned by our owner. |
99 BooleanPrefMember* enable_referrers_; | 102 BooleanPrefMember* enable_referrers_; |
100 | 103 |
101 // Weak, owned by our owner. | 104 // Weak, owned by our owner. |
102 const policy::URLBlacklistManager* url_blacklist_manager_; | 105 const policy::URLBlacklistManager* url_blacklist_manager_; |
103 | 106 |
104 // When true, allow access to all file:// URLs. | 107 // When true, allow access to all file:// URLs. |
105 static bool g_allow_file_access_; | 108 static bool g_allow_file_access_; |
106 | 109 |
107 DISALLOW_COPY_AND_ASSIGN(ChromeNetworkDelegate); | 110 DISALLOW_COPY_AND_ASSIGN(ChromeNetworkDelegate); |
108 }; | 111 }; |
109 | 112 |
110 #endif // CHROME_BROWSER_NET_CHROME_NETWORK_DELEGATE_H_ | 113 #endif // CHROME_BROWSER_NET_CHROME_NETWORK_DELEGATE_H_ |
OLD | NEW |