Lines Matching refs:net

7 #include "net/base/net_errors.h"
8 #include "net/base/static_cookie_policy.h"
9 #include "net/url_request/url_request.h"
28 net::URLRequest* request,
29 const net::CompletionCallback& callback,
31 return net::OK;
35 net::URLRequest* request,
36 const net::CompletionCallback& callback,
37 net::HttpRequestHeaders* headers) {
38 return net::OK;
42 net::URLRequest* request,
43 const net::HttpRequestHeaders& headers) {
47 net::URLRequest* request,
48 const net::CompletionCallback& callback,
49 const net::HttpResponseHeaders* original_response_headers,
50 scoped_refptr<net::HttpResponseHeaders>* override_response_headers,
52 return net::OK;
55 void ShellNetworkDelegate::OnBeforeRedirect(net::URLRequest* request,
59 void ShellNetworkDelegate::OnResponseStarted(net::URLRequest* request) {
62 void ShellNetworkDelegate::OnRawBytesRead(const net::URLRequest& request,
66 void ShellNetworkDelegate::OnCompleted(net::URLRequest* request, bool started) {
69 void ShellNetworkDelegate::OnURLRequestDestroyed(net::URLRequest* request) {
77 net::URLRequest* request,
78 const net::AuthChallengeInfo& auth_info,
80 net::AuthCredentials* credentials) {
84 bool ShellNetworkDelegate::OnCanGetCookies(const net::URLRequest& request,
85 const net::CookieList& cookie_list) {
86 net::StaticCookiePolicy::Type policy_type = g_accept_all_cookies ?
87 net::StaticCookiePolicy::ALLOW_ALL_COOKIES :
88 net::StaticCookiePolicy::BLOCK_ALL_THIRD_PARTY_COOKIES;
89 net::StaticCookiePolicy policy(policy_type);
92 return rv == net::OK;
95 bool ShellNetworkDelegate::OnCanSetCookie(const net::URLRequest& request,
97 net::CookieOptions* options) {
98 net::StaticCookiePolicy::Type policy_type = g_accept_all_cookies ?
99 net::StaticCookiePolicy::ALLOW_ALL_COOKIES :
100 net::StaticCookiePolicy::BLOCK_ALL_THIRD_PARTY_COOKIES;
101 net::StaticCookiePolicy policy(policy_type);
104 return rv == net::OK;
107 bool ShellNetworkDelegate::OnCanAccessFile(const net::URLRequest& request,
113 const net::URLRequest& request) const {
118 net::SocketStream* socket,
119 const net::CompletionCallback& callback) {
120 return net::OK;