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

Side by Side Diff: sky/engine/platform/exported/WebURLRequest.cpp

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 214 matching lines...) Expand 10 before | Expand all | Expand 10 after
225 WebReferrerPolicy WebURLRequest::referrerPolicy() const 225 WebReferrerPolicy WebURLRequest::referrerPolicy() const
226 { 226 {
227 return static_cast<WebReferrerPolicy>(m_private->m_resourceRequest->referrer Policy()); 227 return static_cast<WebReferrerPolicy>(m_private->m_resourceRequest->referrer Policy());
228 } 228 }
229 229
230 void WebURLRequest::addHTTPOriginIfNeeded(const WebString& origin) 230 void WebURLRequest::addHTTPOriginIfNeeded(const WebString& origin)
231 { 231 {
232 m_private->m_resourceRequest->addHTTPOriginIfNeeded(origin); 232 m_private->m_resourceRequest->addHTTPOriginIfNeeded(origin);
233 } 233 }
234 234
235 bool WebURLRequest::hasUserGesture() const
236 {
237 return m_private->m_resourceRequest->hasUserGesture();
238 }
239
240 void WebURLRequest::setHasUserGesture(bool hasUserGesture)
241 {
242 m_private->m_resourceRequest->setHasUserGesture(hasUserGesture);
243 }
244
245 void WebURLRequest::setRequestContext(RequestContext requestContext) 235 void WebURLRequest::setRequestContext(RequestContext requestContext)
246 { 236 {
247 m_private->m_resourceRequest->setRequestContext(requestContext); 237 m_private->m_resourceRequest->setRequestContext(requestContext);
248 } 238 }
249 239
250 void WebURLRequest::setFrameType(FrameType frameType) 240 void WebURLRequest::setFrameType(FrameType frameType)
251 { 241 {
252 m_private->m_resourceRequest->setFrameType(frameType); 242 m_private->m_resourceRequest->setFrameType(frameType);
253 } 243 }
254 244
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
337 // Subclasses may call this directly so a self-assignment check is needed 327 // Subclasses may call this directly so a self-assignment check is needed
338 // here as well as in the public assign method. 328 // here as well as in the public assign method.
339 if (m_private == p) 329 if (m_private == p)
340 return; 330 return;
341 if (m_private) 331 if (m_private)
342 m_private->dispose(); 332 m_private->dispose();
343 m_private = p; 333 m_private = p;
344 } 334 }
345 335
346 } // namespace blink 336 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698