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

Side by Side Diff: ios/web_view/internal/cwv_network_delegate.cc

Issue 2715603002: Rename CRIWVNetworkDelegate to CWVNetworkDelegate. (Closed)
Patch Set: Created 3 years, 9 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 | « ios/web_view/internal/cwv_network_delegate.h ('k') | no next file » | 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 2014 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 "ios/web_view/internal/cwv_network_delegate.h"
6
7 #include "net/base/net_errors.h"
8
9 namespace ios_web_view {
10
11 CWVNetworkDelegate::CWVNetworkDelegate() {}
12
13 CWVNetworkDelegate::~CWVNetworkDelegate() {}
14
15 int CWVNetworkDelegate::OnBeforeURLRequest(
16 net::URLRequest* request,
17 const net::CompletionCallback& callback,
18 GURL* new_url) {
19 return net::OK;
20 }
21
22 int CWVNetworkDelegate::OnBeforeStartTransaction(
23 net::URLRequest* request,
24 const net::CompletionCallback& callback,
25 net::HttpRequestHeaders* headers) {
26 return net::OK;
27 }
28
29 void CWVNetworkDelegate::OnStartTransaction(
30 net::URLRequest* request,
31 const net::HttpRequestHeaders& headers) {}
32
33 int CWVNetworkDelegate::OnHeadersReceived(
34 net::URLRequest* request,
35 const net::CompletionCallback& callback,
36 const net::HttpResponseHeaders* original_response_headers,
37 scoped_refptr<net::HttpResponseHeaders>* override_response_headers,
38 GURL* allowed_unsafe_redirect_url) {
39 return net::OK;
40 }
41
42 void CWVNetworkDelegate::OnBeforeRedirect(net::URLRequest* request,
43 const GURL& new_location) {}
44
45 void CWVNetworkDelegate::OnResponseStarted(net::URLRequest* request) {}
46
47 void CWVNetworkDelegate::OnNetworkBytesReceived(net::URLRequest* request,
48 int64_t bytes_received) {}
49
50 void CWVNetworkDelegate::OnCompleted(net::URLRequest* request, bool started) {}
51
52 void CWVNetworkDelegate::OnURLRequestDestroyed(net::URLRequest* request) {}
53
54 void CWVNetworkDelegate::OnPACScriptError(int line_number,
55 const base::string16& error) {}
56
57 CWVNetworkDelegate::AuthRequiredResponse CWVNetworkDelegate::OnAuthRequired(
58 net::URLRequest* request,
59 const net::AuthChallengeInfo& auth_info,
60 const AuthCallback& callback,
61 net::AuthCredentials* credentials) {
62 return AUTH_REQUIRED_RESPONSE_NO_ACTION;
63 }
64
65 bool CWVNetworkDelegate::OnCanGetCookies(const net::URLRequest& request,
66 const net::CookieList& cookie_list) {
67 return true;
68 }
69
70 bool CWVNetworkDelegate::OnCanSetCookie(const net::URLRequest& request,
71 const std::string& cookie_line,
72 net::CookieOptions* options) {
73 return true;
74 }
75
76 bool CWVNetworkDelegate::OnCanAccessFile(const net::URLRequest& request,
77 const base::FilePath& path) const {
78 return true;
79 }
80
81 } // namespace ios_web_view
OLDNEW
« no previous file with comments | « ios/web_view/internal/cwv_network_delegate.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698