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

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

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

Powered by Google App Engine
This is Rietveld 408576698