Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(212)

Side by Side Diff: content/public/browser/resource_dispatcher_host_delegate.h

Issue 124113003: Remove calls of PrerenderTracker::TryCancel and TryCancelOnIOThread in ChromeResourceDispatcherHost… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: simplify Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 15 matching lines...) Expand all
26 struct Referrer; 26 struct Referrer;
27 struct ResourceResponse; 27 struct ResourceResponse;
28 } 28 }
29 29
30 namespace IPC { 30 namespace IPC {
31 class Sender; 31 class Sender;
32 } 32 }
33 33
34 namespace net { 34 namespace net {
35 class AuthChallengeInfo; 35 class AuthChallengeInfo;
36 class SSLCertRequestInfo;
37 class URLRequest; 36 class URLRequest;
38 } 37 }
39 38
40 namespace content { 39 namespace content {
41 40
42 class ResourceDispatcherHostLoginDelegate; 41 class ResourceDispatcherHostLoginDelegate;
43 42
44 // Interface that the embedder provides to ResourceDispatcherHost to allow 43 // Interface that the embedder provides to ResourceDispatcherHost to allow
45 // observing and modifying requests. 44 // observing and modifying requests.
46 class CONTENT_EXPORT ResourceDispatcherHostDelegate { 45 class CONTENT_EXPORT ResourceDispatcherHostDelegate {
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 virtual void DownloadStarting( 78 virtual void DownloadStarting(
80 net::URLRequest* request, 79 net::URLRequest* request,
81 ResourceContext* resource_context, 80 ResourceContext* resource_context,
82 int child_id, 81 int child_id,
83 int route_id, 82 int route_id,
84 int request_id, 83 int request_id,
85 bool is_content_initiated, 84 bool is_content_initiated,
86 bool must_download, 85 bool must_download,
87 ScopedVector<ResourceThrottle>* throttles); 86 ScopedVector<ResourceThrottle>* throttles);
88 87
89 // Called when an SSL Client Certificate is requested. If false is returned,
90 // the request is canceled. Otherwise, the certificate is chosen.
91 virtual bool AcceptSSLClientCertificateRequest(
92 net::URLRequest* request,
93 net::SSLCertRequestInfo* cert_request_info);
94
95 // Called when authentication is required and credentials are needed. If
96 // false is returned, CancelAuth() is called on the URLRequest and the error
97 // page is shown. If true is returned, the user will be prompted for
98 // authentication credentials.
99 virtual bool AcceptAuthRequest(net::URLRequest* request,
100 net::AuthChallengeInfo* auth_info);
101
102 // Creates a ResourceDispatcherHostLoginDelegate that asks the user for a 88 // Creates a ResourceDispatcherHostLoginDelegate that asks the user for a
103 // username and password. 89 // username and password.
104 virtual ResourceDispatcherHostLoginDelegate* CreateLoginDelegate( 90 virtual ResourceDispatcherHostLoginDelegate* CreateLoginDelegate(
105 net::AuthChallengeInfo* auth_info, net::URLRequest* request); 91 net::AuthChallengeInfo* auth_info, net::URLRequest* request);
106 92
107 // Launches the url for the given tab. Returns true if an attempt to handle 93 // Launches the url for the given tab. Returns true if an attempt to handle
108 // the url was made, e.g. by launching an app. Note that this does not 94 // the url was made, e.g. by launching an app. Note that this does not
109 // guarantee that the app successfully handled it. 95 // guarantee that the app successfully handled it.
110 virtual bool HandleExternalProtocol(const GURL& url, 96 virtual bool HandleExternalProtocol(const GURL& url,
111 int child_id, 97 int child_id,
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
158 ResourceResponse* response); 144 ResourceResponse* response);
159 145
160 protected: 146 protected:
161 ResourceDispatcherHostDelegate(); 147 ResourceDispatcherHostDelegate();
162 virtual ~ResourceDispatcherHostDelegate(); 148 virtual ~ResourceDispatcherHostDelegate();
163 }; 149 };
164 150
165 } // namespace content 151 } // namespace content
166 152
167 #endif // CONTENT_PUBLIC_BROWSER_RESOURCE_DISPATCHER_HOST_DELEGATE_H_ 153 #endif // CONTENT_PUBLIC_BROWSER_RESOURCE_DISPATCHER_HOST_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698