| 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_REQUEST_INFO_H_ | 5 #ifndef CONTENT_PUBLIC_BROWSER_RESOURCE_REQUEST_INFO_H_ |
| 6 #define CONTENT_PUBLIC_BROWSER_RESOURCE_REQUEST_INFO_H_ | 6 #define CONTENT_PUBLIC_BROWSER_RESOURCE_REQUEST_INFO_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "content/common/content_export.h" | 9 #include "content/common/content_export.h" |
| 10 #include "content/public/common/page_transition_types.h" | 10 #include "content/public/common/page_transition_types.h" |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 // or like-thing in the renderer that the request gets routed to). | 56 // or like-thing in the renderer that the request gets routed to). |
| 57 virtual int GetRouteID() const = 0; | 57 virtual int GetRouteID() const = 0; |
| 58 | 58 |
| 59 // The pid of the originating process, if the request is sent on behalf of a | 59 // The pid of the originating process, if the request is sent on behalf of a |
| 60 // another process. Otherwise it is 0. | 60 // another process. Otherwise it is 0. |
| 61 virtual int GetOriginPID() const = 0; | 61 virtual int GetOriginPID() const = 0; |
| 62 | 62 |
| 63 // Unique identifier (within the scope of the child process) for this request. | 63 // Unique identifier (within the scope of the child process) for this request. |
| 64 virtual int GetRequestID() const = 0; | 64 virtual int GetRequestID() const = 0; |
| 65 | 65 |
| 66 // The IPC route identifier of the RenderFrame. |
| 67 // TODO(jam): once all navigation and resource requests are sent between |
| 68 // frames and RenderView/RenderViewHost aren't involved we can remove this and |
| 69 // just use GetRouteID above. |
| 70 virtual int GetRenderFrameID() const = 0; |
| 71 |
| 66 // True if GetFrameID() represents a main frame in the RenderView. | 72 // True if GetFrameID() represents a main frame in the RenderView. |
| 67 virtual bool IsMainFrame() const = 0; | 73 virtual bool IsMainFrame() const = 0; |
| 68 | 74 |
| 69 // Frame ID that sent this resource request. -1 if unknown / invalid. | 75 // Frame ID that sent this resource request. -1 if unknown / invalid. |
| 70 virtual int64 GetFrameID() const = 0; | 76 virtual int64 GetFrameID() const = 0; |
| 71 | 77 |
| 72 // True if GetParentFrameID() represents a main frame in the RenderView. | 78 // True if GetParentFrameID() represents a main frame in the RenderView. |
| 73 virtual bool ParentIsMainFrame() const = 0; | 79 virtual bool ParentIsMainFrame() const = 0; |
| 74 | 80 |
| 75 // Frame ID of parent frame of frame that sent this resource request. | 81 // Frame ID of parent frame of frame that sent this resource request. |
| (...skipping 27 matching lines...) Expand all Loading... |
| 103 // Whether this is a download. | 109 // Whether this is a download. |
| 104 virtual bool IsDownload() const = 0; | 110 virtual bool IsDownload() const = 0; |
| 105 | 111 |
| 106 protected: | 112 protected: |
| 107 virtual ~ResourceRequestInfo() {} | 113 virtual ~ResourceRequestInfo() {} |
| 108 }; | 114 }; |
| 109 | 115 |
| 110 } // namespace content | 116 } // namespace content |
| 111 | 117 |
| 112 #endif // CONTENT_PUBLIC_BROWSER_RESOURCE_REQUEST_INFO_H_ | 118 #endif // CONTENT_PUBLIC_BROWSER_RESOURCE_REQUEST_INFO_H_ |
| OLD | NEW |