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 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
81 virtual WebKit::WebReferrerPolicy GetReferrerPolicy() const = 0; | 81 virtual WebKit::WebReferrerPolicy GetReferrerPolicy() const = 0; |
82 | 82 |
83 // When there is upload data, this is the byte count of that data. When there | 83 // When there is upload data, this is the byte count of that data. When there |
84 // is no upload, this will be 0. | 84 // is no upload, this will be 0. |
85 virtual uint64 GetUploadSize() const = 0; | 85 virtual uint64 GetUploadSize() const = 0; |
86 | 86 |
87 // True if the request was initiated by a user action (like a tap to follow | 87 // True if the request was initiated by a user action (like a tap to follow |
88 // a link). | 88 // a link). |
89 virtual bool HasUserGesture() const = 0; | 89 virtual bool HasUserGesture() const = 0; |
90 | 90 |
| 91 // True if the request was canceled due to it being handled by an external |
| 92 // handler. |
| 93 virtual bool HandledExternally() const = 0; |
| 94 |
91 // Returns false if there is NOT an associated render view. | 95 // Returns false if there is NOT an associated render view. |
92 virtual bool GetAssociatedRenderView(int* render_process_id, | 96 virtual bool GetAssociatedRenderView(int* render_process_id, |
93 int* render_view_id) const = 0; | 97 int* render_view_id) const = 0; |
94 | 98 |
95 protected: | 99 protected: |
96 virtual ~ResourceRequestInfo() {} | 100 virtual ~ResourceRequestInfo() {} |
97 }; | 101 }; |
98 | 102 |
99 } // namespace content | 103 } // namespace content |
100 | 104 |
101 #endif // CONTENT_PUBLIC_BROWSER_RESOURCE_REQUEST_INFO_H_ | 105 #endif // CONTENT_PUBLIC_BROWSER_RESOURCE_REQUEST_INFO_H_ |
OLD | NEW |