| 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_REQUEST_INFO_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RESOURCE_DISPATCHER_HOST_REQUEST_INFO_H_ |
| 6 #define CONTENT_BROWSER_RENDERER_HOST_RESOURCE_DISPATCHER_HOST_REQUEST_INFO_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_RESOURCE_DISPATCHER_HOST_REQUEST_INFO_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| 11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
| 12 #include "base/time.h" | 12 #include "base/time.h" |
| 13 #include "content/common/child_process_info.h" | 13 #include "content/common/child_process_info.h" |
| 14 #include "content/common/content_export.h" |
| 14 #include "content/common/page_transition_types.h" | 15 #include "content/common/page_transition_types.h" |
| 15 #include "net/base/load_states.h" | 16 #include "net/base/load_states.h" |
| 16 #include "net/url_request/url_request.h" | 17 #include "net/url_request/url_request.h" |
| 17 #include "webkit/glue/resource_type.h" | 18 #include "webkit/glue/resource_type.h" |
| 18 | 19 |
| 19 class CrossSiteResourceHandler; | 20 class CrossSiteResourceHandler; |
| 20 class LoginHandler; | 21 class LoginHandler; |
| 21 class ResourceDispatcherHost; | 22 class ResourceDispatcherHost; |
| 22 class ResourceDispatcherHostLoginDelegate; | 23 class ResourceDispatcherHostLoginDelegate; |
| 23 class ResourceHandler; | 24 class ResourceHandler; |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 return cross_site_handler_; | 65 return cross_site_handler_; |
| 65 } | 66 } |
| 66 void set_cross_site_handler(CrossSiteResourceHandler* h) { | 67 void set_cross_site_handler(CrossSiteResourceHandler* h) { |
| 67 cross_site_handler_ = h; | 68 cross_site_handler_ = h; |
| 68 } | 69 } |
| 69 | 70 |
| 70 // Pointer to the login delegate, or NULL if there is none for this request. | 71 // Pointer to the login delegate, or NULL if there is none for this request. |
| 71 ResourceDispatcherHostLoginDelegate* login_delegate() const { | 72 ResourceDispatcherHostLoginDelegate* login_delegate() const { |
| 72 return login_delegate_.get(); | 73 return login_delegate_.get(); |
| 73 } | 74 } |
| 74 void set_login_delegate(ResourceDispatcherHostLoginDelegate* ld); | 75 CONTENT_EXPORT void set_login_delegate( |
| 76 ResourceDispatcherHostLoginDelegate* ld); |
| 75 | 77 |
| 76 // Pointer to the SSL auth, or NULL if there is none for this request. | 78 // Pointer to the SSL auth, or NULL if there is none for this request. |
| 77 SSLClientAuthHandler* ssl_client_auth_handler() const { | 79 SSLClientAuthHandler* ssl_client_auth_handler() const { |
| 78 return ssl_client_auth_handler_.get(); | 80 return ssl_client_auth_handler_.get(); |
| 79 } | 81 } |
| 80 void set_ssl_client_auth_handler(SSLClientAuthHandler* s); | 82 void set_ssl_client_auth_handler(SSLClientAuthHandler* s); |
| 81 | 83 |
| 82 // Identifies the type of process (renderer, plugin, etc.) making the request. | 84 // Identifies the type of process (renderer, plugin, etc.) making the request. |
| 83 ChildProcessInfo::ProcessType process_type() const { | 85 ChildProcessInfo::ProcessType process_type() const { |
| 84 return process_type_; | 86 return process_type_; |
| (...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 237 // accessors above for consistency). | 239 // accessors above for consistency). |
| 238 bool is_paused_; | 240 bool is_paused_; |
| 239 bool called_on_response_started_; | 241 bool called_on_response_started_; |
| 240 bool has_started_reading_; | 242 bool has_started_reading_; |
| 241 int paused_read_bytes_; | 243 int paused_read_bytes_; |
| 242 | 244 |
| 243 DISALLOW_COPY_AND_ASSIGN(ResourceDispatcherHostRequestInfo); | 245 DISALLOW_COPY_AND_ASSIGN(ResourceDispatcherHostRequestInfo); |
| 244 }; | 246 }; |
| 245 | 247 |
| 246 #endif // CONTENT_BROWSER_RENDERER_HOST_RESOURCE_DISPATCHER_HOST_REQUEST_INFO_H
_ | 248 #endif // CONTENT_BROWSER_RENDERER_HOST_RESOURCE_DISPATCHER_HOST_REQUEST_INFO_H
_ |
| OLD | NEW |