OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2017 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 CONTENT_BROWSER_RESOURCE_REQUEST_BODY_BROWSER_UTILS_H_ | |
6 #define CONTENT_BROWSER_RESOURCE_REQUEST_BODY_BROWSER_UTILS_H_ | |
Łukasz Anforowicz
2017/05/25 16:11:37
I don't see another good place for the new helper
| |
7 | |
8 #include "base/memory/ref_counted.h" | |
9 | |
10 namespace storage { | |
11 class FileSystemContext; | |
12 } // namespace storage | |
13 | |
14 namespace content { | |
15 | |
16 class SiteInstance; | |
17 class ResourceRequestBodyImpl; | |
18 | |
19 // Checks if |child_id| and |file_system_context| can read all elements of | |
20 // |body|. | |
21 bool CanReadRequestBody(int child_id, | |
22 const storage::FileSystemContext* file_system_context, | |
23 const scoped_refptr<ResourceRequestBodyImpl>& body); | |
Łukasz Anforowicz
2017/05/25 16:11:37
This overload is used from ResourceDispatcherHostI
mmenke
2017/05/25 17:20:25
Overloads are generally discouraged. Also it migh
| |
24 | |
25 // Checks if |site_instance| can read all elements of |body|. | |
26 bool CanReadRequestBody(SiteInstance* site_instance, | |
27 const scoped_refptr<ResourceRequestBodyImpl>& body); | |
Łukasz Anforowicz
2017/05/25 16:11:37
This overload is used from RenderFrameHostImpl::On
| |
28 | |
29 } // namespace content | |
30 | |
31 #endif // CONTENT_BROWSER_RESOURCE_REQUEST_BODY_BROWSER_UTILS_H_ | |
OLD | NEW |