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 <memory> | 8 #include <memory> |
9 #include <string> | 9 #include <string> |
10 | 10 |
11 #include "base/files/file_path.h" | 11 #include "base/files/file_path.h" |
12 #include "content/common/content_export.h" | 12 #include "content/common/content_export.h" |
13 #include "content/public/browser/resource_request_info.h" | 13 #include "content/public/browser/resource_request_info.h" |
14 #include "content/public/common/resource_type.h" | 14 #include "content/public/common/resource_type.h" |
15 #include "ui/base/page_transition_types.h" | 15 #include "ui/base/page_transition_types.h" |
16 | 16 |
17 class GURL; | 17 class GURL; |
18 template <class T> class ScopedVector; | 18 template <class T> class ScopedVector; |
19 | 19 |
20 namespace IPC { | |
21 class Sender; | |
22 } | |
23 | |
24 namespace net { | 20 namespace net { |
25 class AuthChallengeInfo; | 21 class AuthChallengeInfo; |
26 class ClientCertStore; | 22 class ClientCertStore; |
27 class URLRequest; | 23 class URLRequest; |
28 } | 24 } |
29 | 25 |
30 namespace content { | 26 namespace content { |
31 | 27 |
32 class AppCacheService; | 28 class AppCacheService; |
33 class NavigationData; | 29 class NavigationData; |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
108 std::string* payload); | 104 std::string* payload); |
109 | 105 |
110 // Informs the delegate that a Stream was created. The Stream can be read from | 106 // Informs the delegate that a Stream was created. The Stream can be read from |
111 // the blob URL of the Stream, but can only be read once. | 107 // the blob URL of the Stream, but can only be read once. |
112 virtual void OnStreamCreated(net::URLRequest* request, | 108 virtual void OnStreamCreated(net::URLRequest* request, |
113 std::unique_ptr<content::StreamInfo> stream); | 109 std::unique_ptr<content::StreamInfo> stream); |
114 | 110 |
115 // Informs the delegate that a response has started. | 111 // Informs the delegate that a response has started. |
116 virtual void OnResponseStarted(net::URLRequest* request, | 112 virtual void OnResponseStarted(net::URLRequest* request, |
117 ResourceContext* resource_context, | 113 ResourceContext* resource_context, |
118 ResourceResponse* response, | 114 ResourceResponse* response); |
119 IPC::Sender* sender); | |
120 | 115 |
121 // Informs the delegate that a request has been redirected. | 116 // Informs the delegate that a request has been redirected. |
122 virtual void OnRequestRedirected(const GURL& redirect_url, | 117 virtual void OnRequestRedirected(const GURL& redirect_url, |
123 net::URLRequest* request, | 118 net::URLRequest* request, |
124 ResourceContext* resource_context, | 119 ResourceContext* resource_context, |
125 ResourceResponse* response); | 120 ResourceResponse* response); |
126 | 121 |
127 // Notification that a request has completed. | 122 // Notification that a request has completed. |
128 virtual void RequestComplete(net::URLRequest* url_request); | 123 virtual void RequestComplete(net::URLRequest* url_request); |
129 | 124 |
(...skipping 10 matching lines...) Expand all Loading... |
140 virtual std::unique_ptr<net::ClientCertStore> CreateClientCertStore( | 135 virtual std::unique_ptr<net::ClientCertStore> CreateClientCertStore( |
141 ResourceContext* resource_context); | 136 ResourceContext* resource_context); |
142 | 137 |
143 protected: | 138 protected: |
144 virtual ~ResourceDispatcherHostDelegate(); | 139 virtual ~ResourceDispatcherHostDelegate(); |
145 }; | 140 }; |
146 | 141 |
147 } // namespace content | 142 } // namespace content |
148 | 143 |
149 #endif // CONTENT_PUBLIC_BROWSER_RESOURCE_DISPATCHER_HOST_DELEGATE_H_ | 144 #endif // CONTENT_PUBLIC_BROWSER_RESOURCE_DISPATCHER_HOST_DELEGATE_H_ |
OLD | NEW |