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 "third_party/WebKit/Source/Platform/chromium/public/WebReferrerPolicy.h
" | 10 #include "third_party/WebKit/Source/Platform/chromium/public/WebReferrerPolicy.h
" |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
77 // Returns the associated resource type. | 77 // Returns the associated resource type. |
78 virtual ResourceType::Type GetResourceType() const = 0; | 78 virtual ResourceType::Type GetResourceType() const = 0; |
79 | 79 |
80 // Returns the associated referrer policy. | 80 // Returns the associated referrer policy. |
81 virtual WebKit::WebReferrerPolicy GetReferrerPolicy() const = 0; | 81 virtual WebKit::WebReferrerPolicy GetReferrerPolicy() const = 0; |
82 | 82 |
83 // True if the request was initiated by a user action (like a tap to follow | 83 // True if the request was initiated by a user action (like a tap to follow |
84 // a link). | 84 // a link). |
85 virtual bool HasUserGesture() const = 0; | 85 virtual bool HasUserGesture() const = 0; |
86 | 86 |
| 87 // True if ResourceController::CancelAndIgnore() was called. For example, |
| 88 // the requested URL may be being loaded by an external program. |
| 89 virtual bool WasIgnoredByHandler() const = 0; |
| 90 |
87 // Returns false if there is NOT an associated render view. | 91 // Returns false if there is NOT an associated render view. |
88 virtual bool GetAssociatedRenderView(int* render_process_id, | 92 virtual bool GetAssociatedRenderView(int* render_process_id, |
89 int* render_view_id) const = 0; | 93 int* render_view_id) const = 0; |
90 | 94 |
91 protected: | 95 protected: |
92 virtual ~ResourceRequestInfo() {} | 96 virtual ~ResourceRequestInfo() {} |
93 }; | 97 }; |
94 | 98 |
95 } // namespace content | 99 } // namespace content |
96 | 100 |
97 #endif // CONTENT_PUBLIC_BROWSER_RESOURCE_REQUEST_INFO_H_ | 101 #endif // CONTENT_PUBLIC_BROWSER_RESOURCE_REQUEST_INFO_H_ |
OLD | NEW |