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

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

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 #ifndef IOS_WEB_VIEW_INTERNAL_CRIWV_NETWORK_DELEGATE_H_
6 #define IOS_WEB_VIEW_INTERNAL_CRIWV_NETWORK_DELEGATE_H_
7
8 #include "base/macros.h"
9 #include "net/base/network_delegate_impl.h"
10
11 namespace ios_web_view {
12
13 // CWV-specific implementation of NetworkDelegate.
14 class CRIWVNetworkDelegate : public net::NetworkDelegateImpl {
15 public:
16 CRIWVNetworkDelegate();
17 ~CRIWVNetworkDelegate() override;
18
19 private:
20 // net::NetworkDelegate implementation.
21 int OnBeforeURLRequest(net::URLRequest* request,
22 const net::CompletionCallback& callback,
23 GURL* new_url) override;
24 int OnBeforeStartTransaction(net::URLRequest* request,
25 const net::CompletionCallback& callback,
26 net::HttpRequestHeaders* headers) override;
27 void OnStartTransaction(net::URLRequest* request,
28 const net::HttpRequestHeaders& headers) override;
29 int OnHeadersReceived(
30 net::URLRequest* request,
31 const net::CompletionCallback& callback,
32 const net::HttpResponseHeaders* original_response_headers,
33 scoped_refptr<net::HttpResponseHeaders>* override_response_headers,
34 GURL* allowed_unsafe_redirect_url) override;
35 void OnBeforeRedirect(net::URLRequest* request,
36 const GURL& new_location) override;
37 void OnResponseStarted(net::URLRequest* request) override;
38 void OnNetworkBytesReceived(net::URLRequest* request,
39 int64_t bytes_received) override;
40 void OnCompleted(net::URLRequest* request, bool started) override;
41 void OnURLRequestDestroyed(net::URLRequest* request) override;
42 void OnPACScriptError(int line_number, const base::string16& error) override;
43 AuthRequiredResponse OnAuthRequired(
44 net::URLRequest* request,
45 const net::AuthChallengeInfo& auth_info,
46 const AuthCallback& callback,
47 net::AuthCredentials* credentials) override;
48 bool OnCanGetCookies(const net::URLRequest& request,
49 const net::CookieList& cookie_list) override;
50 bool OnCanSetCookie(const net::URLRequest& request,
51 const std::string& cookie_line,
52 net::CookieOptions* options) override;
53 bool OnCanAccessFile(const net::URLRequest& request,
54 const base::FilePath& path) const override;
55
56 DISALLOW_COPY_AND_ASSIGN(CRIWVNetworkDelegate);
57 };
58
59 } // namespace ios_web_view
60
61 #endif // IOS_WEB_VIEW_INTERNAL_CRIWV_NETWORK_DELEGATE_H_
OLDNEW
« no previous file with comments | « ios/web_view/internal/criwv_browser_state.mm ('k') | ios/web_view/internal/criwv_network_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698