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

Side by Side Diff: content/child/web_url_request_util.h

Issue 1155713005: Use a resource throttle to implement shouldOverrideUrlLoading. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add flag showing that shouldOverrideUrl cancelled the navigation Created 5 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
1 // Copyright 2014 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_CHILD_WEB_URL_REQUEST_UTIL_H_ 5 #ifndef CONTENT_CHILD_WEB_URL_REQUEST_UTIL_H_
6 #define CONTENT_CHILD_WEB_URL_REQUEST_UTIL_H_ 6 #define CONTENT_CHILD_WEB_URL_REQUEST_UTIL_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "content/common/content_export.h" 10 #include "content/common/content_export.h"
(...skipping 19 matching lines...) Expand all
30 // in a ResourceRequestBody structure. Returns an empty scoped_refptr 30 // in a ResourceRequestBody structure. Returns an empty scoped_refptr
31 // if the request body is not present. 31 // if the request body is not present.
32 scoped_refptr<ResourceRequestBody> GetRequestBodyForWebURLRequest( 32 scoped_refptr<ResourceRequestBody> GetRequestBodyForWebURLRequest(
33 const blink::WebURLRequest& request); 33 const blink::WebURLRequest& request);
34 34
35 // Generates a WebURLError based on |reason|. 35 // Generates a WebURLError based on |reason|.
36 blink::WebURLError CreateWebURLError(const blink::WebURL& unreachable_url, 36 blink::WebURLError CreateWebURLError(const blink::WebURL& unreachable_url,
37 bool stale_copy_in_cache, 37 bool stale_copy_in_cache,
38 int reason); 38 int reason);
39 39
40 // Generates a WebURLError based on |reason|.
41 blink::WebURLError CreateWebURLError(const blink::WebURL& unreachable_url,
42 bool stale_copy_in_cache,
43 int reason,
44 bool was_ignored_by_handler);
45
40 } // namespace content 46 } // namespace content
41 47
42 #endif // CONTENT_CHILD_WEB_URL_REQUEST_UTIL_H_ 48 #endif // CONTENT_CHILD_WEB_URL_REQUEST_UTIL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698