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 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
79 // True if GetParentFrameID() represents a main frame in the RenderView. | 79 // True if GetParentFrameID() represents a main frame in the RenderView. |
80 virtual bool ParentIsMainFrame() const = 0; | 80 virtual bool ParentIsMainFrame() const = 0; |
81 | 81 |
82 // Frame ID of parent frame of frame that sent this resource request. | 82 // Frame ID of parent frame of frame that sent this resource request. |
83 // -1 if unknown / invalid. | 83 // -1 if unknown / invalid. |
84 virtual int64 GetParentFrameID() const = 0; | 84 virtual int64 GetParentFrameID() const = 0; |
85 | 85 |
86 // Returns the associated resource type. | 86 // Returns the associated resource type. |
87 virtual ResourceType::Type GetResourceType() const = 0; | 87 virtual ResourceType::Type GetResourceType() const = 0; |
88 | 88 |
| 89 // Returns the process type that initiated this request. |
| 90 virtual int GetProcessType() const = 0; |
| 91 |
89 // Returns the associated referrer policy. | 92 // Returns the associated referrer policy. |
90 virtual blink::WebReferrerPolicy GetReferrerPolicy() const = 0; | 93 virtual blink::WebReferrerPolicy GetReferrerPolicy() const = 0; |
91 | 94 |
92 // Returns the associated page transition type. | 95 // Returns the associated page transition type. |
93 virtual PageTransition GetPageTransition() const = 0; | 96 virtual PageTransition GetPageTransition() const = 0; |
94 | 97 |
95 // True if the request was initiated by a user action (like a tap to follow | 98 // True if the request was initiated by a user action (like a tap to follow |
96 // a link). | 99 // a link). |
97 virtual bool HasUserGesture() const = 0; | 100 virtual bool HasUserGesture() const = 0; |
98 | 101 |
(...skipping 11 matching lines...) Expand all Loading... |
110 // Whether this is a download. | 113 // Whether this is a download. |
111 virtual bool IsDownload() const = 0; | 114 virtual bool IsDownload() const = 0; |
112 | 115 |
113 protected: | 116 protected: |
114 virtual ~ResourceRequestInfo() {} | 117 virtual ~ResourceRequestInfo() {} |
115 }; | 118 }; |
116 | 119 |
117 } // namespace content | 120 } // namespace content |
118 | 121 |
119 #endif // CONTENT_PUBLIC_BROWSER_RESOURCE_REQUEST_INFO_H_ | 122 #endif // CONTENT_PUBLIC_BROWSER_RESOURCE_REQUEST_INFO_H_ |
OLD | NEW |