| 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/callback_forward.h" | 8 #include "base/callback_forward.h" |
| 9 #include "content/common/content_export.h" | 9 #include "content/common/content_export.h" |
| 10 #include "content/public/browser/global_request_id.h" | |
| 11 #include "content/public/common/resource_type.h" | 10 #include "content/public/common/resource_type.h" |
| 12 #include "third_party/WebKit/public/platform/WebPageVisibilityState.h" | 11 #include "third_party/WebKit/public/platform/WebPageVisibilityState.h" |
| 13 #include "third_party/WebKit/public/platform/WebReferrerPolicy.h" | 12 #include "third_party/WebKit/public/platform/WebReferrerPolicy.h" |
| 14 #include "ui/base/page_transition_types.h" | 13 #include "ui/base/page_transition_types.h" |
| 15 | 14 |
| 16 namespace net { | 15 namespace net { |
| 17 class URLRequest; | 16 class URLRequest; |
| 18 } | 17 } |
| 19 | 18 |
| 20 namespace content { | 19 namespace content { |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 86 // The child process unique ID of the requestor. | 85 // The child process unique ID of the requestor. |
| 87 // To get a WebContents, use GetWebContentsGetterForRequest instead. | 86 // To get a WebContents, use GetWebContentsGetterForRequest instead. |
| 88 virtual int GetChildID() const = 0; | 87 virtual int GetChildID() const = 0; |
| 89 | 88 |
| 90 // The IPC route identifier for this request (this identifies the RenderView | 89 // The IPC route identifier for this request (this identifies the RenderView |
| 91 // or like-thing in the renderer that the request gets routed to). | 90 // or like-thing in the renderer that the request gets routed to). |
| 92 // To get a WebContents, use GetWebContentsGetterForRequest instead. | 91 // To get a WebContents, use GetWebContentsGetterForRequest instead. |
| 93 // Don't use this method for new code, as RenderViews are going away. | 92 // Don't use this method for new code, as RenderViews are going away. |
| 94 virtual int GetRouteID() const = 0; | 93 virtual int GetRouteID() const = 0; |
| 95 | 94 |
| 96 // The globally unique identifier for this request. | |
| 97 virtual GlobalRequestID GetGlobalRequestID() const = 0; | |
| 98 | |
| 99 // The pid of the originating process, if the request is sent on behalf of a | 95 // The pid of the originating process, if the request is sent on behalf of a |
| 100 // another process. Otherwise it is 0. | 96 // another process. Otherwise it is 0. |
| 101 virtual int GetOriginPID() const = 0; | 97 virtual int GetOriginPID() const = 0; |
| 102 | 98 |
| 103 // Returns the FrameTreeNode ID for this frame. This ID is browser-global and | 99 // Returns the FrameTreeNode ID for this frame. This ID is browser-global and |
| 104 // uniquely identifies a frame that hosts content. | 100 // uniquely identifies a frame that hosts content. |
| 105 virtual int GetFrameTreeNodeId() const = 0; | 101 virtual int GetFrameTreeNodeId() const = 0; |
| 106 | 102 |
| 107 // The IPC route identifier of the RenderFrame. | 103 // The IPC route identifier of the RenderFrame. |
| 108 // To get a WebContents, use GetWebContentsGetterForRequest instead. | 104 // To get a WebContents, use GetWebContentsGetterForRequest instead. |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 166 // UI thread at the beginning of navigation. | 162 // UI thread at the beginning of navigation. |
| 167 virtual NavigationUIData* GetNavigationUIData() const = 0; | 163 virtual NavigationUIData* GetNavigationUIData() const = 0; |
| 168 | 164 |
| 169 protected: | 165 protected: |
| 170 virtual ~ResourceRequestInfo() {} | 166 virtual ~ResourceRequestInfo() {} |
| 171 }; | 167 }; |
| 172 | 168 |
| 173 } // namespace content | 169 } // namespace content |
| 174 | 170 |
| 175 #endif // CONTENT_PUBLIC_BROWSER_RESOURCE_REQUEST_INFO_H_ | 171 #endif // CONTENT_PUBLIC_BROWSER_RESOURCE_REQUEST_INFO_H_ |
| OLD | NEW |