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_BROWSER_RENDERER_HOST_RESOURCE_DISPATCHER_HOST_DELEGATE_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RESOURCE_DISPATCHER_HOST_DELEGATE_H_ |
6 #define CONTENT_BROWSER_RENDERER_HOST_RESOURCE_DISPATCHER_HOST_DELEGATE_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_RESOURCE_DISPATCHER_HOST_DELEGATE_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
76 // Creates a ResourceDispatcherHostLoginDelegate that asks the user for a | 76 // Creates a ResourceDispatcherHostLoginDelegate that asks the user for a |
77 // username and password. | 77 // username and password. |
78 virtual ResourceDispatcherHostLoginDelegate* CreateLoginDelegate( | 78 virtual ResourceDispatcherHostLoginDelegate* CreateLoginDelegate( |
79 net::AuthChallengeInfo* auth_info, net::URLRequest* request); | 79 net::AuthChallengeInfo* auth_info, net::URLRequest* request); |
80 | 80 |
81 // Launches the url for the given tab. | 81 // Launches the url for the given tab. |
82 virtual void HandleExternalProtocol(const GURL& url, | 82 virtual void HandleExternalProtocol(const GURL& url, |
83 int child_id, | 83 int child_id, |
84 int route_id); | 84 int route_id); |
85 | 85 |
| 86 // Returns true if we should force the given resource to be downloaded. |
| 87 // Otherwise, the content layer decides. |
| 88 virtual bool ShouldForceDownloadResource( |
| 89 const GURL& url, const std::string& mime_type); |
| 90 |
86 protected: | 91 protected: |
87 ResourceDispatcherHostDelegate(); | 92 ResourceDispatcherHostDelegate(); |
88 virtual ~ResourceDispatcherHostDelegate(); | 93 virtual ~ResourceDispatcherHostDelegate(); |
89 }; | 94 }; |
90 | 95 |
91 #endif // CONTENT_BROWSER_RENDERER_HOST_RESOURCE_DISPATCHER_HOST_DELEGATE_H_ | 96 #endif // CONTENT_BROWSER_RENDERER_HOST_RESOURCE_DISPATCHER_HOST_DELEGATE_H_ |
OLD | NEW |