Miscellaneous fixes for virtual/override/final specifiers to match style guide.
[chromium-blink-merge.git] / content / child / web_url_request_util.h
blob70c56e17b08c71b0f966cd694bb96acdf98d9a1d
1 // Copyright 2014 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.
5 #ifndef CONTENT_CHILD_TARGET_TYPE_CONVERSION_H_
6 #define CONTENT_CHILD_TARGET_TYPE_CONVERSION_H_
8 #include <string>
10 #include "content/common/content_export.h"
11 #include "content/common/resource_request_body.h"
12 #include "content/public/common/resource_type.h"
14 namespace blink {
15 class WebURLRequest;
18 namespace content {
20 CONTENT_EXPORT ResourceType WebURLRequestToResourceType(
21 const blink::WebURLRequest& request);
23 std::string GetWebURLRequestHeaders(const blink::WebURLRequest& request);
25 int GetLoadFlagsForWebURLRequest(const blink::WebURLRequest& request);
27 // Takes a WebURLRequest and sets the appropriate information
28 // in a ResourceRequestBody structure. Returns an empty scoped_refptr
29 // if the request body is not present.
30 scoped_refptr<ResourceRequestBody> GetRequestBodyForWebURLRequest(
31 const blink::WebURLRequest& request);
33 } // namespace content
35 #endif // CONTENT_CHILD_TARGET_TYPE_CONVERSION_H_