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

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

Issue 2905763002: Deduplicating CanReadRequestBody code. (Closed)
Patch Set: Tweaking content/browser/loader/DEPS Created 3 years, 7 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_
Ł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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698