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

Side by Side Diff: android_webview/browser/net/aw_network_delegate.cc

Issue 10913074: Add WebView implementation for CookieManager. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Rebased Created 8 years, 3 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 unified diff | Download patch
« no previous file with comments | « android_webview/browser/net/aw_network_delegate.h ('k') | android_webview/build/install_binary » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #include "android_webview/browser/net/aw_network_delegate.h"
6
7 #include "android_webview/browser/aw_cookie_access_policy.h"
8 #include "net/base/net_errors.h"
9 #include "net/base/completion_callback.h"
10 #include "net/url_request/url_request.h"
11
12 namespace android_webview {
13
14 AwNetworkDelegate::AwNetworkDelegate() {
15 }
16
17 AwNetworkDelegate::~AwNetworkDelegate() {
18 }
19
20 int AwNetworkDelegate::OnBeforeURLRequest(
21 net::URLRequest* request,
22 const net::CompletionCallback& callback,
23 GURL* new_url) {
24 return net::OK;
25 }
26
27 int AwNetworkDelegate::OnBeforeSendHeaders(
28 net::URLRequest* request,
29 const net::CompletionCallback& callback,
30 net::HttpRequestHeaders* headers) {
31 return net::OK;
32 }
33
34 void AwNetworkDelegate::OnSendHeaders(net::URLRequest* request,
35 const net::HttpRequestHeaders& headers) {
36 }
37
38 int AwNetworkDelegate::OnHeadersReceived(
39 net::URLRequest* request,
40 const net::CompletionCallback& callback,
41 net::HttpResponseHeaders* original_response_headers,
42 scoped_refptr<net::HttpResponseHeaders>* override_response_headers) {
43 return net::OK;
44 }
45
46 void AwNetworkDelegate::OnBeforeRedirect(net::URLRequest* request,
47 const GURL& new_location) {
48 }
49
50 void AwNetworkDelegate::OnResponseStarted(net::URLRequest* request) {
51 }
52
53 void AwNetworkDelegate::OnRawBytesRead(const net::URLRequest& request,
54 int bytes_read) {
55 }
56
57 void AwNetworkDelegate::OnCompleted(net::URLRequest* request, bool started) {
58 }
59
60 void AwNetworkDelegate::OnURLRequestDestroyed(net::URLRequest* request) {
61 }
62
63 void AwNetworkDelegate::OnPACScriptError(int line_number,
64 const string16& error) {
65 }
66
67 net::NetworkDelegate::AuthRequiredResponse AwNetworkDelegate::OnAuthRequired(
68 net::URLRequest* request,
69 const net::AuthChallengeInfo& auth_info,
70 const AuthCallback& callback,
71 net::AuthCredentials* credentials) {
72 return AUTH_REQUIRED_RESPONSE_NO_ACTION;
73 }
74
75 bool AwNetworkDelegate::OnCanGetCookies(const net::URLRequest& request,
76 const net::CookieList& cookie_list) {
77 return AwCookieAccessPolicy::GetInstance()->OnCanGetCookies(request,
78 cookie_list);
79 }
80
81 bool AwNetworkDelegate::OnCanSetCookie(const net::URLRequest& request,
82 const std::string& cookie_line,
83 net::CookieOptions* options) {
84 return AwCookieAccessPolicy::GetInstance()->OnCanSetCookie(request,
85 cookie_line,
86 options);
87 }
88
89 bool AwNetworkDelegate::OnCanAccessFile(const net::URLRequest& request,
90 const FilePath& path) const {
91 return true;
92 }
93
94 bool AwNetworkDelegate::OnCanThrottleRequest(
95 const net::URLRequest& request) const {
96 return false;
97 }
98
99 int AwNetworkDelegate::OnBeforeSocketStreamConnect(
100 net::SocketStream* stream,
101 const net::CompletionCallback& callback) {
102 return net::OK;
103 }
104
105 void AwNetworkDelegate::OnRequestWaitStateChange(const net::URLRequest& request,
106 RequestWaitState state) {
107 }
108
109 } // namespace android_webview
OLDNEW
« no previous file with comments | « android_webview/browser/net/aw_network_delegate.h ('k') | android_webview/build/install_binary » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698