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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
73 virtual bool ParentIsMainFrame() const = 0; | 73 virtual bool ParentIsMainFrame() const = 0; |
74 | 74 |
75 // Frame ID of parent frame of frame that sent this resource request. | 75 // Frame ID of parent frame of frame that sent this resource request. |
76 // -1 if unknown / invalid. | 76 // -1 if unknown / invalid. |
77 virtual int64 GetParentFrameID() const = 0; | 77 virtual int64 GetParentFrameID() const = 0; |
78 | 78 |
79 // Returns the associated resource type. | 79 // Returns the associated resource type. |
80 virtual ResourceType::Type GetResourceType() const = 0; | 80 virtual ResourceType::Type GetResourceType() const = 0; |
81 | 81 |
82 // Returns the associated referrer policy. | 82 // Returns the associated referrer policy. |
83 virtual WebKit::WebReferrerPolicy GetReferrerPolicy() const = 0; | 83 virtual blink::WebReferrerPolicy GetReferrerPolicy() const = 0; |
84 | 84 |
85 // Returns the associated page transition type. | 85 // Returns the associated page transition type. |
86 virtual PageTransition GetPageTransition() const = 0; | 86 virtual PageTransition GetPageTransition() const = 0; |
87 | 87 |
88 // True if the request was initiated by a user action (like a tap to follow | 88 // True if the request was initiated by a user action (like a tap to follow |
89 // a link). | 89 // a link). |
90 virtual bool HasUserGesture() const = 0; | 90 virtual bool HasUserGesture() const = 0; |
91 | 91 |
92 // True if ResourceController::CancelAndIgnore() was called. For example, | 92 // True if ResourceController::CancelAndIgnore() was called. For example, |
93 // the requested URL may be being loaded by an external program. | 93 // the requested URL may be being loaded by an external program. |
94 virtual bool WasIgnoredByHandler() const = 0; | 94 virtual bool WasIgnoredByHandler() const = 0; |
95 | 95 |
96 // Returns false if there is NOT an associated render view. | 96 // Returns false if there is NOT an associated render view. |
97 virtual bool GetAssociatedRenderView(int* render_process_id, | 97 virtual bool GetAssociatedRenderView(int* render_process_id, |
98 int* render_view_id) const = 0; | 98 int* render_view_id) const = 0; |
99 | 99 |
100 // Returns true if this is associated with an asynchronous request. | 100 // Returns true if this is associated with an asynchronous request. |
101 virtual bool IsAsync() const = 0; | 101 virtual bool IsAsync() const = 0; |
102 | 102 |
103 protected: | 103 protected: |
104 virtual ~ResourceRequestInfo() {} | 104 virtual ~ResourceRequestInfo() {} |
105 }; | 105 }; |
106 | 106 |
107 } // namespace content | 107 } // namespace content |
108 | 108 |
109 #endif // CONTENT_PUBLIC_BROWSER_RESOURCE_REQUEST_INFO_H_ | 109 #endif // CONTENT_PUBLIC_BROWSER_RESOURCE_REQUEST_INFO_H_ |
OLD | NEW |