OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_PUBLIC_BROWSER_RESOURCE_DISPATCHER_HOST_DELEGATE_H_ | 5 #ifndef CONTENT_PUBLIC_BROWSER_RESOURCE_DISPATCHER_HOST_DELEGATE_H_ |
6 #define CONTENT_PUBLIC_BROWSER_RESOURCE_DISPATCHER_HOST_DELEGATE_H_ | 6 #define CONTENT_PUBLIC_BROWSER_RESOURCE_DISPATCHER_HOST_DELEGATE_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
46 // Called after ShouldBeginRequest when all the resource handlers from the | 46 // Called after ShouldBeginRequest when all the resource handlers from the |
47 // content layer have been added. To add new handlers to the front, return | 47 // content layer have been added. To add new handlers to the front, return |
48 // a new handler that is chained to the given one, otherwise just reutrn the | 48 // a new handler that is chained to the given one, otherwise just reutrn the |
49 // given handler. | 49 // given handler. |
50 virtual ResourceHandler* RequestBeginning( | 50 virtual ResourceHandler* RequestBeginning( |
51 ResourceHandler* handler, | 51 ResourceHandler* handler, |
52 net::URLRequest* request, | 52 net::URLRequest* request, |
53 const content::ResourceContext& resource_context, | 53 const content::ResourceContext& resource_context, |
54 bool is_subresource, | 54 bool is_subresource, |
55 int child_id, | 55 int child_id, |
56 int route_id) = 0; | 56 int route_id, |
| 57 bool is_continuation_of_transferred_request) = 0; |
57 | 58 |
58 // Allows an embedder to add additional resource handlers for a download. | 59 // Allows an embedder to add additional resource handlers for a download. |
59 // |is_new_request| is true if this is a request that is just starting, i.e. | 60 // |is_new_request| is true if this is a request that is just starting, i.e. |
60 // the content layer has just added its own resource handlers; it's false if | 61 // the content layer has just added its own resource handlers; it's false if |
61 // this was originally a non-download request that had some resource handlers | 62 // this was originally a non-download request that had some resource handlers |
62 // applied already and now we found out it's a download. | 63 // applied already and now we found out it's a download. |
63 // |in_complete| is true if this is invoked from |OnResponseCompleted|. | 64 // |in_complete| is true if this is invoked from |OnResponseCompleted|. |
64 virtual ResourceHandler* DownloadStarting( | 65 virtual ResourceHandler* DownloadStarting( |
65 ResourceHandler* handler, | 66 ResourceHandler* handler, |
66 const content::ResourceContext& resource_context, | 67 const content::ResourceContext& resource_context, |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
120 ResourceMessageFilter* filter) = 0; | 121 ResourceMessageFilter* filter) = 0; |
121 | 122 |
122 protected: | 123 protected: |
123 ResourceDispatcherHostDelegate() {} | 124 ResourceDispatcherHostDelegate() {} |
124 virtual ~ResourceDispatcherHostDelegate() {} | 125 virtual ~ResourceDispatcherHostDelegate() {} |
125 }; | 126 }; |
126 | 127 |
127 } // namespace content | 128 } // namespace content |
128 | 129 |
129 #endif // CONTENT_PUBLIC_BROWSER_RESOURCE_DISPATCHER_HOST_DELEGATE_H_ | 130 #endif // CONTENT_PUBLIC_BROWSER_RESOURCE_DISPATCHER_HOST_DELEGATE_H_ |
OLD | NEW |