Chromium Code Reviews| 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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 56 // or like-thing in the renderer that the request gets routed to). | 56 // or like-thing in the renderer that the request gets routed to). |
| 57 virtual int GetRouteID() const = 0; | 57 virtual int GetRouteID() const = 0; |
| 58 | 58 |
| 59 // The pid of the originating process, if the request is sent on behalf of a | 59 // The pid of the originating process, if the request is sent on behalf of a |
| 60 // another process. Otherwise it is 0. | 60 // another process. Otherwise it is 0. |
| 61 virtual int GetOriginPID() const = 0; | 61 virtual int GetOriginPID() const = 0; |
| 62 | 62 |
| 63 // Unique identifier (within the scope of the child process) for this request. | 63 // Unique identifier (within the scope of the child process) for this request. |
| 64 virtual int GetRequestID() const = 0; | 64 virtual int GetRequestID() const = 0; |
| 65 | 65 |
| 66 // The IPC route identifier of the RenderFrame. | |
| 67 // TODO(jam): once we remove RenderView, we can remove this and just use | |
| 68 // GetRouteID above. | |
|
nasko
2013/12/05 22:43:45
Do we need to get rid of all RenderView or do we j
jam
2013/12/05 23:14:07
you're right, that's more specific and sooner. I'v
| |
| 69 virtual int GetRenderFrameID() const = 0; | |
| 70 | |
| 66 // True if GetFrameID() represents a main frame in the RenderView. | 71 // True if GetFrameID() represents a main frame in the RenderView. |
| 67 virtual bool IsMainFrame() const = 0; | 72 virtual bool IsMainFrame() const = 0; |
| 68 | 73 |
| 69 // Frame ID that sent this resource request. -1 if unknown / invalid. | 74 // Frame ID that sent this resource request. -1 if unknown / invalid. |
| 70 virtual int64 GetFrameID() const = 0; | 75 virtual int64 GetFrameID() const = 0; |
| 71 | 76 |
| 72 // True if GetParentFrameID() represents a main frame in the RenderView. | 77 // True if GetParentFrameID() represents a main frame in the RenderView. |
| 73 virtual bool ParentIsMainFrame() const = 0; | 78 virtual bool ParentIsMainFrame() const = 0; |
| 74 | 79 |
| 75 // Frame ID of parent frame of frame that sent this resource request. | 80 // Frame ID of parent frame of frame that sent this resource request. |
| (...skipping 27 matching lines...) Expand all Loading... | |
| 103 // Whether this is a download. | 108 // Whether this is a download. |
| 104 virtual bool IsDownload() const = 0; | 109 virtual bool IsDownload() const = 0; |
| 105 | 110 |
| 106 protected: | 111 protected: |
| 107 virtual ~ResourceRequestInfo() {} | 112 virtual ~ResourceRequestInfo() {} |
| 108 }; | 113 }; |
| 109 | 114 |
| 110 } // namespace content | 115 } // namespace content |
| 111 | 116 |
| 112 #endif // CONTENT_PUBLIC_BROWSER_RESOURCE_REQUEST_INFO_H_ | 117 #endif // CONTENT_PUBLIC_BROWSER_RESOURCE_REQUEST_INFO_H_ |
| OLD | NEW |