| 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 "base/callback_forward.h" | 8 #include "base/callback_forward.h" |
| 9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
| 10 #include "content/public/browser/download_interrupt_reasons.h" | 10 #include "content/public/browser/download_interrupt_reasons.h" |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 scoped_ptr<DownloadSaveInfo> save_info, | 60 scoped_ptr<DownloadSaveInfo> save_info, |
| 61 uint32 download_id, | 61 uint32 download_id, |
| 62 const DownloadStartedCallback& started_callback) = 0; | 62 const DownloadStartedCallback& started_callback) = 0; |
| 63 | 63 |
| 64 // Clears the ResourceDispatcherHostLoginDelegate associated with the request. | 64 // Clears the ResourceDispatcherHostLoginDelegate associated with the request. |
| 65 virtual void ClearLoginDelegateForRequest(net::URLRequest* request) = 0; | 65 virtual void ClearLoginDelegateForRequest(net::URLRequest* request) = 0; |
| 66 | 66 |
| 67 // Causes all new requests for the route identified by |child_id| and | 67 // Causes all new requests for the route identified by |child_id| and |
| 68 // |route_id| to be blocked (not being started) until | 68 // |route_id| to be blocked (not being started) until |
| 69 // ResumeBlockedRequestsForRoute is called. | 69 // ResumeBlockedRequestsForRoute is called. |
| 70 virtual void BlockRequestsForRoute(int child_id, int route_id) = 0; | 70 virtual void BlockRequestsForFrame(int child_id, int route_id) = 0; |
| 71 | 71 |
| 72 // Resumes any blocked request for the specified route id. | 72 // Resumes any blocked request for the specified route id. |
| 73 virtual void ResumeBlockedRequestsForRoute(int child_id, int route_id) = 0; | 73 virtual void ResumeBlockedRequestsForFrame(int child_id, int route_id) = 0; |
| 74 | 74 |
| 75 protected: | 75 protected: |
| 76 virtual ~ResourceDispatcherHost() {} | 76 virtual ~ResourceDispatcherHost() {} |
| 77 }; | 77 }; |
| 78 | 78 |
| 79 } // namespace content | 79 } // namespace content |
| 80 | 80 |
| 81 #endif // CONTENT_PUBLIC_BROWSER_RESOURCE_DISPATCHER_HOST_H_ | 81 #endif // CONTENT_PUBLIC_BROWSER_RESOURCE_DISPATCHER_HOST_H_ |
| OLD | NEW |