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

Side by Side Diff: android_webview/browser/net/aw_web_resource_request.h

Issue 2558223002: Move onReceivedError and onReceivedHttpError out of AwContentsIoThreadClientImpl (Closed)
Patch Set: remove stale code Created 4 years 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 2016 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 ANDROID_WEBVIEW_BROWSER_NET_AW_WEB_RESOURCE_REQUEST_H_
6 #define ANDROID_WEBVIEW_BROWSER_NET_AW_WEB_RESOURCE_REQUEST_H_
7
8 #include <string>
9 #include <vector>
10
11 namespace net {
12 class URLRequest;
13 }
14
15 namespace android_webview {
16
17 // A passive data structure only used to carry request information.
18 struct AwWebResourceRequest {
19 AwWebResourceRequest(const net::URLRequest* request);
boliu 2016/12/08 05:48:38 const&, to avoid confusion that it's taking owners
sgurun-gerrit only 2016/12/08 21:56:46 Done.
20 virtual ~AwWebResourceRequest() {}
boliu 2016/12/08 05:48:38 why virtual?
sgurun-gerrit only 2016/12/08 21:56:46 just getting used to I guess. Here in a struct it
boliu 2016/12/08 22:11:55 having an virtual destructor implies it's ok to su
sgurun-gerrit only 2016/12/08 22:43:18 did not know final. it works best.
21
22 std::string url;
23 std::string method;
24 bool is_main_frame;
25 bool has_user_gesture;
26 std::vector<std::string> header_names;
27 std::vector<std::string> header_values;
28 };
29
30 } // namespace android_webview
31
32 #endif // ANDROID_WEBVIEW_BROWSER_NET_AW_WEB_RESOURCE_REQUEST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698