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

Side by Side Diff: content/browser/resource_request_body_browser_utils.h

Issue 2908433003: RenderFrameProxyHost::OnOpenURL needs to validate resource request body. (Closed)
Patch Set: Covering RenderFrameHostImpl as well and rearranging the test to pass on Android. Created 3 years, 6 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 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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698