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

Side by Side Diff: sky/engine/public/platform/WebURLRequest.h

Issue 868933003: Remove user gesture tracking (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 11 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
170 170
171 BLINK_PLATFORM_EXPORT FrameType frameType() const; 171 BLINK_PLATFORM_EXPORT FrameType frameType() const;
172 BLINK_PLATFORM_EXPORT void setFrameType(FrameType); 172 BLINK_PLATFORM_EXPORT void setFrameType(FrameType);
173 173
174 BLINK_PLATFORM_EXPORT WebReferrerPolicy referrerPolicy() const; 174 BLINK_PLATFORM_EXPORT WebReferrerPolicy referrerPolicy() const;
175 175
176 // Adds an HTTP origin header if it is empty and the HTTP method of the 176 // Adds an HTTP origin header if it is empty and the HTTP method of the
177 // request requires it. 177 // request requires it.
178 BLINK_PLATFORM_EXPORT void addHTTPOriginIfNeeded(const WebString& origin); 178 BLINK_PLATFORM_EXPORT void addHTTPOriginIfNeeded(const WebString& origin);
179 179
180 // True if the request was user initiated.
181 BLINK_PLATFORM_EXPORT bool hasUserGesture() const;
182 BLINK_PLATFORM_EXPORT void setHasUserGesture(bool);
183
184 // A consumer controlled value intended to be used to identify the 180 // A consumer controlled value intended to be used to identify the
185 // requestor. 181 // requestor.
186 BLINK_PLATFORM_EXPORT int requestorID() const; 182 BLINK_PLATFORM_EXPORT int requestorID() const;
187 BLINK_PLATFORM_EXPORT void setRequestorID(int); 183 BLINK_PLATFORM_EXPORT void setRequestorID(int);
188 184
189 // A consumer controlled value intended to be used to identify the 185 // A consumer controlled value intended to be used to identify the
190 // process of the requestor. 186 // process of the requestor.
191 BLINK_PLATFORM_EXPORT int requestorProcessID() const; 187 BLINK_PLATFORM_EXPORT int requestorProcessID() const;
192 BLINK_PLATFORM_EXPORT void setRequestorProcessID(int); 188 BLINK_PLATFORM_EXPORT void setRequestorProcessID(int);
193 189
(...skipping 26 matching lines...) Expand all
220 protected: 216 protected:
221 BLINK_PLATFORM_EXPORT void assign(WebURLRequestPrivate*); 217 BLINK_PLATFORM_EXPORT void assign(WebURLRequestPrivate*);
222 218
223 private: 219 private:
224 WebURLRequestPrivate* m_private; 220 WebURLRequestPrivate* m_private;
225 }; 221 };
226 222
227 } // namespace blink 223 } // namespace blink
228 224
229 #endif // SKY_ENGINE_PUBLIC_PLATFORM_WEBURLREQUEST_H_ 225 #endif // SKY_ENGINE_PUBLIC_PLATFORM_WEBURLREQUEST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698