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_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 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
88 // page is shown. If true is returned, the user will be prompted for | 88 // page is shown. If true is returned, the user will be prompted for |
89 // authentication credentials. | 89 // authentication credentials. |
90 virtual bool AcceptAuthRequest(net::URLRequest* request, | 90 virtual bool AcceptAuthRequest(net::URLRequest* request, |
91 net::AuthChallengeInfo* auth_info); | 91 net::AuthChallengeInfo* auth_info); |
92 | 92 |
93 // Creates a ResourceDispatcherHostLoginDelegate that asks the user for a | 93 // Creates a ResourceDispatcherHostLoginDelegate that asks the user for a |
94 // username and password. | 94 // username and password. |
95 virtual ResourceDispatcherHostLoginDelegate* CreateLoginDelegate( | 95 virtual ResourceDispatcherHostLoginDelegate* CreateLoginDelegate( |
96 net::AuthChallengeInfo* auth_info, net::URLRequest* request); | 96 net::AuthChallengeInfo* auth_info, net::URLRequest* request); |
97 | 97 |
98 // Launches the url for the given tab. | 98 // Launches the url for the given tab. Returns true if the request was |
99 virtual void HandleExternalProtocol(const GURL& url, | 99 // handled. |
joth
2012/10/24 18:47:55
maybe expand this to note true only implies an att
John Knottenbelt
2012/10/25 16:17:27
Done.
| |
100 virtual bool HandleExternalProtocol(const GURL& url, | |
100 int child_id, | 101 int child_id, |
101 int route_id); | 102 int route_id); |
102 | 103 |
103 // Returns true if we should force the given resource to be downloaded. | 104 // Returns true if we should force the given resource to be downloaded. |
104 // Otherwise, the content layer decides. | 105 // Otherwise, the content layer decides. |
105 virtual bool ShouldForceDownloadResource( | 106 virtual bool ShouldForceDownloadResource( |
106 const GURL& url, const std::string& mime_type); | 107 const GURL& url, const std::string& mime_type); |
107 | 108 |
108 // Informs the delegate that a response has started. | 109 // Informs the delegate that a response has started. |
109 virtual void OnResponseStarted( | 110 virtual void OnResponseStarted( |
(...skipping 10 matching lines...) Expand all Loading... | |
120 ResourceResponse* response); | 121 ResourceResponse* response); |
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 |