OLD | NEW |
---|---|
(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_ | |
OLD | NEW |