Chromium Code Reviews| 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_ | |
| 7 | |
| 8 #include "base/memory/ref_counted.h" | |
| 9 | |
| 10 namespace content { | |
| 11 | |
| 12 class SiteInstance; | |
| 13 class ResourceRequestBodyImpl; | |
| 14 | |
| 15 // Checks if |site_instance| can read all elements of |body|. | |
|
alexmos
2017/05/25 23:44:06
nit: Maybe elaborate a little bit? I.e., validate
Łukasz Anforowicz
2017/05/26 00:05:14
Done.
| |
| 16 // TODO(lukasza): Remove code duplication - the function below should be reused | |
| 17 // by RenderFrameHostImpl::OnBeginNavigation and | |
| 18 // ResourceDispatcherHostImpl::ShouldServiceRequest. | |
| 19 bool CanReadRequestBody(SiteInstance* site_instance, | |
| 20 const scoped_refptr<ResourceRequestBodyImpl>& body); | |
|
Łukasz Anforowicz
2017/05/25 19:56:01
Does this look okay?
I had some comments about th
alexmos
2017/05/25 23:44:06
Hmm, this might be ok. A static-only class might
Łukasz Anforowicz
2017/05/26 00:05:14
Ok - see https://codereview.chromium.org/290843300
| |
| 21 | |
| 22 } // namespace content | |
| 23 | |
| 24 #endif // CONTENT_BROWSER_RESOURCE_REQUEST_BODY_BROWSER_UTILS_H_ | |
| OLD | NEW |