Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(11)

Side by Side Diff: content/public/browser/resource_request_info.h

Issue 1463013003: Unexpose ResourceRequestInfo::GetRequestID. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: CONTENT_EXPORT Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « content/browser/loader/resource_request_info_impl.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 virtual int GetChildID() const = 0; 58 virtual int GetChildID() const = 0;
59 59
60 // The IPC route identifier for this request (this identifies the RenderView 60 // The IPC route identifier for this request (this identifies the RenderView
61 // or like-thing in the renderer that the request gets routed to). 61 // or like-thing in the renderer that the request gets routed to).
62 virtual int GetRouteID() const = 0; 62 virtual int GetRouteID() const = 0;
63 63
64 // The pid of the originating process, if the request is sent on behalf of a 64 // The pid of the originating process, if the request is sent on behalf of a
65 // another process. Otherwise it is 0. 65 // another process. Otherwise it is 0.
66 virtual int GetOriginPID() const = 0; 66 virtual int GetOriginPID() const = 0;
67 67
68 // Unique identifier (within the scope of the child process) for this request.
69 virtual int GetRequestID() const = 0;
70
71 // The IPC route identifier of the RenderFrame. 68 // The IPC route identifier of the RenderFrame.
72 // TODO(jam): once all navigation and resource requests are sent between 69 // TODO(jam): once all navigation and resource requests are sent between
73 // frames and RenderView/RenderViewHost aren't involved we can remove this and 70 // frames and RenderView/RenderViewHost aren't involved we can remove this and
74 // just use GetRouteID above. 71 // just use GetRouteID above.
75 virtual int GetRenderFrameID() const = 0; 72 virtual int GetRenderFrameID() const = 0;
76 73
77 // True if GetRenderFrameID() represents a main frame in the RenderView. 74 // True if GetRenderFrameID() represents a main frame in the RenderView.
78 virtual bool IsMainFrame() const = 0; 75 virtual bool IsMainFrame() const = 0;
79 76
80 // True if GetParentRenderFrameID() represents a main frame in the RenderView. 77 // True if GetParentRenderFrameID() represents a main frame in the RenderView.
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 // Whether this request if using Lo-Fi mode. 125 // Whether this request if using Lo-Fi mode.
129 virtual bool IsUsingLoFi() const = 0; 126 virtual bool IsUsingLoFi() const = 0;
130 127
131 protected: 128 protected:
132 virtual ~ResourceRequestInfo() {} 129 virtual ~ResourceRequestInfo() {}
133 }; 130 };
134 131
135 } // namespace content 132 } // namespace content
136 133
137 #endif // CONTENT_PUBLIC_BROWSER_RESOURCE_REQUEST_INFO_H_ 134 #endif // CONTENT_PUBLIC_BROWSER_RESOURCE_REQUEST_INFO_H_
OLDNEW
« no previous file with comments | « content/browser/loader/resource_request_info_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698