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

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

Issue 10825073: Stop using ScopedAllowIO in content::ResourceDispatcherHostImpl (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove const Created 8 years, 3 months 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 | Annotate | Revision Log
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 "third_party/WebKit/Source/Platform/chromium/public/WebReferrerPolicy.h " 10 #include "third_party/WebKit/Source/Platform/chromium/public/WebReferrerPolicy.h "
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 // Frame ID of parent frame of frame that sent this resource request. 73 // Frame ID of parent frame of frame that sent this resource request.
74 // -1 if unknown / invalid. 74 // -1 if unknown / invalid.
75 virtual int64 GetParentFrameID() const = 0; 75 virtual int64 GetParentFrameID() const = 0;
76 76
77 // Returns the associated resource type. 77 // Returns the associated resource type.
78 virtual ResourceType::Type GetResourceType() const = 0; 78 virtual ResourceType::Type GetResourceType() const = 0;
79 79
80 // Returns the associated referrer policy. 80 // Returns the associated referrer policy.
81 virtual WebKit::WebReferrerPolicy GetReferrerPolicy() const = 0; 81 virtual WebKit::WebReferrerPolicy GetReferrerPolicy() const = 0;
82 82
83 // When there is upload data, this is the byte count of that data. When there
84 // is no upload, this will be 0.
85 virtual uint64 GetUploadSize() const = 0;
86
87 // True if the request was initiated by a user action (like a tap to follow 83 // True if the request was initiated by a user action (like a tap to follow
88 // a link). 84 // a link).
89 virtual bool HasUserGesture() const = 0; 85 virtual bool HasUserGesture() const = 0;
90 86
91 // Returns false if there is NOT an associated render view. 87 // Returns false if there is NOT an associated render view.
92 virtual bool GetAssociatedRenderView(int* render_process_id, 88 virtual bool GetAssociatedRenderView(int* render_process_id,
93 int* render_view_id) const = 0; 89 int* render_view_id) const = 0;
94 90
95 protected: 91 protected:
96 virtual ~ResourceRequestInfo() {} 92 virtual ~ResourceRequestInfo() {}
97 }; 93 };
98 94
99 } // namespace content 95 } // namespace content
100 96
101 #endif // CONTENT_PUBLIC_BROWSER_RESOURCE_REQUEST_INFO_H_ 97 #endif // CONTENT_PUBLIC_BROWSER_RESOURCE_REQUEST_INFO_H_
OLDNEW
« no previous file with comments | « content/browser/renderer_host/resource_request_info_impl.cc ('k') | net/url_request/url_fetcher_core.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698