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 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
10 #include "content/common/content_export.h" | 10 #include "content/common/content_export.h" |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
76 // Returns the associated resource type. | 76 // Returns the associated resource type. |
77 virtual ResourceType::Type GetResourceType() const = 0; | 77 virtual ResourceType::Type GetResourceType() const = 0; |
78 | 78 |
79 // Returns the associated referrer policy. | 79 // Returns the associated referrer policy. |
80 virtual WebKit::WebReferrerPolicy GetReferrerPolicy() const = 0; | 80 virtual WebKit::WebReferrerPolicy GetReferrerPolicy() const = 0; |
81 | 81 |
82 // When there is upload data, this is the byte count of that data. When there | 82 // When there is upload data, this is the byte count of that data. When there |
83 // is no upload, this will be 0. | 83 // is no upload, this will be 0. |
84 virtual uint64 GetUploadSize() const = 0; | 84 virtual uint64 GetUploadSize() const = 0; |
85 | 85 |
| 86 // True if the request was initiated by a user action (like a tap to follow |
| 87 // a link). |
| 88 virtual bool HasUserGesture() const = 0; |
| 89 |
86 // Returns false if there is NOT an associated render view. | 90 // Returns false if there is NOT an associated render view. |
87 virtual bool GetAssociatedRenderView(int* render_process_id, | 91 virtual bool GetAssociatedRenderView(int* render_process_id, |
88 int* render_view_id) const = 0; | 92 int* render_view_id) const = 0; |
89 | 93 |
90 protected: | 94 protected: |
91 virtual ~ResourceRequestInfo() {} | 95 virtual ~ResourceRequestInfo() {} |
92 }; | 96 }; |
93 | 97 |
94 } // namespace content | 98 } // namespace content |
95 | 99 |
96 #endif // CONTENT_PUBLIC_BROWSER_RESOURCE_REQUEST_INFO_H_ | 100 #endif // CONTENT_PUBLIC_BROWSER_RESOURCE_REQUEST_INFO_H_ |
OLD | NEW |