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

Side by Side Diff: Source/core/dom/Document.h

Issue 1117203002: Enforce referrer policies for workers (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 7 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) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) 3 * (C) 1999 Antti Koivisto (koivisto@kde.org)
4 * (C) 2001 Dirk Mueller (mueller@kde.org) 4 * (C) 2001 Dirk Mueller (mueller@kde.org)
5 * (C) 2006 Alexey Proskuryakov (ap@webkit.org) 5 * (C) 2006 Alexey Proskuryakov (ap@webkit.org)
6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012 Apple Inc. All r ights reserved. 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012 Apple Inc. All r ights reserved.
7 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t orchmobile.com/) 7 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t orchmobile.com/)
8 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) 8 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies)
9 * Copyright (C) 2011 Google Inc. All rights reserved. 9 * Copyright (C) 2011 Google Inc. All rights reserved.
10 * 10 *
(...skipping 264 matching lines...) Expand 10 before | Expand all | Expand 10 after
275 DEFINE_ATTRIBUTE_EVENT_LISTENER(wheel); 275 DEFINE_ATTRIBUTE_EVENT_LISTENER(wheel);
276 276
277 bool shouldMergeWithLegacyDescription(ViewportDescription::Type); 277 bool shouldMergeWithLegacyDescription(ViewportDescription::Type);
278 bool shouldOverrideLegacyDescription(ViewportDescription::Type); 278 bool shouldOverrideLegacyDescription(ViewportDescription::Type);
279 void setViewportDescription(const ViewportDescription&); 279 void setViewportDescription(const ViewportDescription&);
280 const ViewportDescription& viewportDescription() const { return m_viewportDe scription; } 280 const ViewportDescription& viewportDescription() const { return m_viewportDe scription; }
281 Length viewportDefaultMinWidth() const { return m_viewportDefaultMinWidth; } 281 Length viewportDefaultMinWidth() const { return m_viewportDefaultMinWidth; }
282 282
283 bool hasLegacyViewportTag() const { return m_legacyViewportDescription.isLeg acyViewportType(); } 283 bool hasLegacyViewportTag() const { return m_legacyViewportDescription.isLeg acyViewportType(); }
284 284
285 void setReferrerPolicy(ReferrerPolicy); 285 void setReferrerPolicy(ReferrerPolicy) override;
286 ReferrerPolicy referrerPolicy() const { return m_referrerPolicy; }
287 286
288 String outgoingReferrer(); 287 String outgoingReferrer();
289 String outgoingOrigin() const; 288 String outgoingOrigin() const;
290 289
291 void setDoctype(PassRefPtrWillBeRawPtr<DocumentType>); 290 void setDoctype(PassRefPtrWillBeRawPtr<DocumentType>);
292 DocumentType* doctype() const { return m_docType.get(); } 291 DocumentType* doctype() const { return m_docType.get(); }
293 292
294 DOMImplementation& implementation(); 293 DOMImplementation& implementation();
295 294
296 Element* documentElement() const 295 Element* documentElement() const
(...skipping 1164 matching lines...) Expand 10 before | Expand all | Expand 10 after
1461 DEFINE_TYPE_CASTS(TreeScope, Document, document, true, true); 1460 DEFINE_TYPE_CASTS(TreeScope, Document, document, true, true);
1462 1461
1463 } // namespace blink 1462 } // namespace blink
1464 1463
1465 #ifndef NDEBUG 1464 #ifndef NDEBUG
1466 // Outside the WebCore namespace for ease of invocation from gdb. 1465 // Outside the WebCore namespace for ease of invocation from gdb.
1467 CORE_EXPORT void showLiveDocumentInstances(); 1466 CORE_EXPORT void showLiveDocumentInstances();
1468 #endif 1467 #endif
1469 1468
1470 #endif // Document_h 1469 #endif // Document_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698