| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 // The ResourceRequestDetails object contains additional details about a | 5 // The ResourceRequestDetails object contains additional details about a |
| 6 // resource request. It copies many of the publicly accessible member variables | 6 // resource request. It copies many of the publicly accessible member variables |
| 7 // of net::URLRequest, but exists on the UI thread. | 7 // of net::URLRequest, but exists on the UI thread. |
| 8 | 8 |
| 9 #ifndef CHROME_BROWSER_RENDERER_HOST_RESOURCE_REQUEST_DETAILS_H_ | 9 #ifndef CHROME_BROWSER_RENDERER_HOST_RESOURCE_REQUEST_DETAILS_H_ |
| 10 #define CHROME_BROWSER_RENDERER_HOST_RESOURCE_REQUEST_DETAILS_H_ | 10 #define CHROME_BROWSER_RENDERER_HOST_RESOURCE_REQUEST_DETAILS_H_ |
| 11 #pragma once | 11 #pragma once |
| 12 | 12 |
| 13 #include <string> | 13 #include <string> |
| 14 | 14 |
| 15 #include "chrome/browser/renderer_host/resource_dispatcher_host.h" | |
| 16 #include "chrome/browser/renderer_host/resource_dispatcher_host_request_info.h" | |
| 17 #include "chrome/browser/worker_host/worker_service.h" | |
| 18 #include "googleurl/src/gurl.h" | 15 #include "googleurl/src/gurl.h" |
| 19 #include "net/url_request/url_request_status.h" | 16 #include "net/url_request/url_request_status.h" |
| 17 #include "webkit/glue/resource_type.h" |
| 20 | 18 |
| 21 namespace net { | 19 namespace net { |
| 22 class URLRequest; | 20 class URLRequest; |
| 23 } // namespace net | 21 } // namespace net |
| 24 | 22 |
| 25 // Details about a resource request notification. | 23 // Details about a resource request notification. |
| 26 class ResourceRequestDetails { | 24 class ResourceRequestDetails { |
| 27 public: | 25 public: |
| 28 ResourceRequestDetails(const net::URLRequest* request, int cert_id); | 26 ResourceRequestDetails(const net::URLRequest* request, int cert_id); |
| 29 | 27 |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 68 virtual ~ResourceRedirectDetails(); | 66 virtual ~ResourceRedirectDetails(); |
| 69 | 67 |
| 70 // The URL to which we are being redirected. | 68 // The URL to which we are being redirected. |
| 71 const GURL& new_url() const { return new_url_; } | 69 const GURL& new_url() const { return new_url_; } |
| 72 | 70 |
| 73 private: | 71 private: |
| 74 GURL new_url_; | 72 GURL new_url_; |
| 75 }; | 73 }; |
| 76 | 74 |
| 77 #endif // CHROME_BROWSER_RENDERER_HOST_RESOURCE_REQUEST_DETAILS_H_ | 75 #endif // CHROME_BROWSER_RENDERER_HOST_RESOURCE_REQUEST_DETAILS_H_ |
| OLD | NEW |