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/resource_type.h" | 10 #include "content/public/common/resource_type.h" |
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
117 // Returns false if there is NOT an associated render frame. | 117 // Returns false if there is NOT an associated render frame. |
118 virtual bool GetAssociatedRenderFrame(int* render_process_id, | 118 virtual bool GetAssociatedRenderFrame(int* render_process_id, |
119 int* render_frame_id) const = 0; | 119 int* render_frame_id) const = 0; |
120 | 120 |
121 // Returns true if this is associated with an asynchronous request. | 121 // Returns true if this is associated with an asynchronous request. |
122 virtual bool IsAsync() const = 0; | 122 virtual bool IsAsync() const = 0; |
123 | 123 |
124 // Whether this is a download. | 124 // Whether this is a download. |
125 virtual bool IsDownload() const = 0; | 125 virtual bool IsDownload() const = 0; |
126 | 126 |
| 127 // Whether this is an async revalidation. |
| 128 virtual bool IsAsyncRevalidation() const = 0; |
| 129 |
127 protected: | 130 protected: |
128 virtual ~ResourceRequestInfo() {} | 131 virtual ~ResourceRequestInfo() {} |
129 }; | 132 }; |
130 | 133 |
131 } // namespace content | 134 } // namespace content |
132 | 135 |
133 #endif // CONTENT_PUBLIC_BROWSER_RESOURCE_REQUEST_INFO_H_ | 136 #endif // CONTENT_PUBLIC_BROWSER_RESOURCE_REQUEST_INFO_H_ |
OLD | NEW |