| 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 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 93 virtual PageTransition GetPageTransition() const = 0; | 93 virtual PageTransition GetPageTransition() const = 0; |
| 94 | 94 |
| 95 // True if the request was initiated by a user action (like a tap to follow | 95 // True if the request was initiated by a user action (like a tap to follow |
| 96 // a link). | 96 // a link). |
| 97 virtual bool HasUserGesture() const = 0; | 97 virtual bool HasUserGesture() const = 0; |
| 98 | 98 |
| 99 // True if ResourceController::CancelAndIgnore() was called. For example, | 99 // True if ResourceController::CancelAndIgnore() was called. For example, |
| 100 // the requested URL may be being loaded by an external program. | 100 // the requested URL may be being loaded by an external program. |
| 101 virtual bool WasIgnoredByHandler() const = 0; | 101 virtual bool WasIgnoredByHandler() const = 0; |
| 102 | 102 |
| 103 // Returns false if there is NOT an associated render view. | |
| 104 // TODO(jam): remove this. http://crbug.com/304341 | |
| 105 virtual bool GetAssociatedRenderView(int* render_process_id, | |
| 106 int* render_view_id) const = 0; | |
| 107 | |
| 108 // Returns false if there is NOT an associated render frame. | 103 // Returns false if there is NOT an associated render frame. |
| 109 virtual bool GetAssociatedRenderFrame(int* render_process_id, | 104 virtual bool GetAssociatedRenderFrame(int* render_process_id, |
| 110 int* render_frame_id) const = 0; | 105 int* render_frame_id) const = 0; |
| 111 | 106 |
| 112 // Returns true if this is associated with an asynchronous request. | 107 // Returns true if this is associated with an asynchronous request. |
| 113 virtual bool IsAsync() const = 0; | 108 virtual bool IsAsync() const = 0; |
| 114 | 109 |
| 115 // Whether this is a download. | 110 // Whether this is a download. |
| 116 virtual bool IsDownload() const = 0; | 111 virtual bool IsDownload() const = 0; |
| 117 | 112 |
| 118 protected: | 113 protected: |
| 119 virtual ~ResourceRequestInfo() {} | 114 virtual ~ResourceRequestInfo() {} |
| 120 }; | 115 }; |
| 121 | 116 |
| 122 } // namespace content | 117 } // namespace content |
| 123 | 118 |
| 124 #endif // CONTENT_PUBLIC_BROWSER_RESOURCE_REQUEST_INFO_H_ | 119 #endif // CONTENT_PUBLIC_BROWSER_RESOURCE_REQUEST_INFO_H_ |
| OLD | NEW |