| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_H_ | 5 #ifndef CONTENT_PUBLIC_BROWSER_RESOURCE_DISPATCHER_HOST_H_ |
| 6 #define CONTENT_PUBLIC_BROWSER_RESOURCE_DISPATCHER_HOST_H_ | 6 #define CONTENT_PUBLIC_BROWSER_RESOURCE_DISPATCHER_HOST_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include "base/callback_forward.h" | 10 #include "base/callback_forward.h" |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 int render_frame_route_id, | 59 int render_frame_route_id, |
| 60 bool prefer_cache, | 60 bool prefer_cache, |
| 61 bool do_not_prompt_for_login, | 61 bool do_not_prompt_for_login, |
| 62 scoped_ptr<DownloadSaveInfo> save_info, | 62 scoped_ptr<DownloadSaveInfo> save_info, |
| 63 uint32_t download_id, | 63 uint32_t download_id, |
| 64 const DownloadStartedCallback& started_callback) = 0; | 64 const DownloadStartedCallback& started_callback) = 0; |
| 65 | 65 |
| 66 // Clears the ResourceDispatcherHostLoginDelegate associated with the request. | 66 // Clears the ResourceDispatcherHostLoginDelegate associated with the request. |
| 67 virtual void ClearLoginDelegateForRequest(net::URLRequest* request) = 0; | 67 virtual void ClearLoginDelegateForRequest(net::URLRequest* request) = 0; |
| 68 | 68 |
| 69 // Causes all new requests for the route identified by |child_id| and | |
| 70 // |route_id| to be blocked (not being started) until | |
| 71 // ResumeBlockedRequestsForRoute is called. | |
| 72 virtual void BlockRequestsForRoute(int child_id, int route_id) = 0; | |
| 73 | |
| 74 // Resumes any blocked request for the specified route id. | |
| 75 virtual void ResumeBlockedRequestsForRoute(int child_id, int route_id) = 0; | |
| 76 | |
| 77 protected: | 69 protected: |
| 78 virtual ~ResourceDispatcherHost() {} | 70 virtual ~ResourceDispatcherHost() {} |
| 79 }; | 71 }; |
| 80 | 72 |
| 81 } // namespace content | 73 } // namespace content |
| 82 | 74 |
| 83 #endif // CONTENT_PUBLIC_BROWSER_RESOURCE_DISPATCHER_HOST_H_ | 75 #endif // CONTENT_PUBLIC_BROWSER_RESOURCE_DISPATCHER_HOST_H_ |
| OLD | NEW |