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

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

Issue 10381122: Add flag to specify if explicitly requested download is from web. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Sync'd to LKGR and integrated into DownloadUrlParams. Created 8 years, 7 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 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 // the content layer has just added its own resource handlers; it's false if 65 // the content layer has just added its own resource handlers; it's false if
66 // this was originally a non-download request that had some resource handlers 66 // this was originally a non-download request that had some resource handlers
67 // applied already and now we found out it's a download. 67 // applied already and now we found out it's a download.
68 // |in_complete| is true if this is invoked from |OnResponseCompleted|. 68 // |in_complete| is true if this is invoked from |OnResponseCompleted|.
69 virtual void DownloadStarting( 69 virtual void DownloadStarting(
70 net::URLRequest* request, 70 net::URLRequest* request,
71 ResourceContext* resource_context, 71 ResourceContext* resource_context,
72 int child_id, 72 int child_id,
73 int route_id, 73 int route_id,
74 int request_id, 74 int request_id,
75 bool is_new_request, 75 bool is_content_initiated,
76 ScopedVector<ResourceThrottle>* throttles); 76 ScopedVector<ResourceThrottle>* throttles);
77 77
78 // Called when an SSL Client Certificate is requested. If false is returned, 78 // Called when an SSL Client Certificate is requested. If false is returned,
79 // the request is canceled. Otherwise, the certificate is chosen. 79 // the request is canceled. Otherwise, the certificate is chosen.
80 virtual bool AcceptSSLClientCertificateRequest( 80 virtual bool AcceptSSLClientCertificateRequest(
81 net::URLRequest* request, 81 net::URLRequest* request,
82 net::SSLCertRequestInfo* cert_request_info); 82 net::SSLCertRequestInfo* cert_request_info);
83 83
84 // Called when authentication is required and credentials are needed. If 84 // Called when authentication is required and credentials are needed. If
85 // false is returned, CancelAuth() is called on the URLRequest and the error 85 // false is returned, CancelAuth() is called on the URLRequest and the error
(...skipping 29 matching lines...) Expand all
115 ResourceResponse* response); 115 ResourceResponse* response);
116 116
117 protected: 117 protected:
118 ResourceDispatcherHostDelegate(); 118 ResourceDispatcherHostDelegate();
119 virtual ~ResourceDispatcherHostDelegate(); 119 virtual ~ResourceDispatcherHostDelegate();
120 }; 120 };
121 121
122 } // namespace content 122 } // namespace content
123 123
124 #endif // CONTENT_PUBLIC_BROWSER_RESOURCE_DISPATCHER_HOST_DELEGATE_H_ 124 #endif // CONTENT_PUBLIC_BROWSER_RESOURCE_DISPATCHER_HOST_DELEGATE_H_
OLDNEW
« no previous file with comments | « content/public/browser/resource_dispatcher_host.h ('k') | content/public/browser/resource_dispatcher_host_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698