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