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

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: fix layout test indentation 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);
286 ReferrerPolicy referrerPolicy() const { return m_referrerPolicy; }
287
288 String outgoingReferrer(); 285 String outgoingReferrer();
289 String outgoingOrigin() const; 286 String outgoingOrigin() const;
290 287
291 void setDoctype(PassRefPtrWillBeRawPtr<DocumentType>); 288 void setDoctype(PassRefPtrWillBeRawPtr<DocumentType>);
292 DocumentType* doctype() const { return m_docType.get(); } 289 DocumentType* doctype() const { return m_docType.get(); }
293 290
294 DOMImplementation& implementation(); 291 DOMImplementation& implementation();
295 292
296 Element* documentElement() const 293 Element* documentElement() const
297 { 294 {
(...skipping 1163 matching lines...) Expand 10 before | Expand all | Expand 10 after
1461 DEFINE_TYPE_CASTS(TreeScope, Document, document, true, true); 1458 DEFINE_TYPE_CASTS(TreeScope, Document, document, true, true);
1462 1459
1463 } // namespace blink 1460 } // namespace blink
1464 1461
1465 #ifndef NDEBUG 1462 #ifndef NDEBUG
1466 // Outside the WebCore namespace for ease of invocation from gdb. 1463 // Outside the WebCore namespace for ease of invocation from gdb.
1467 CORE_EXPORT void showLiveDocumentInstances(); 1464 CORE_EXPORT void showLiveDocumentInstances();
1468 #endif 1465 #endif
1469 1466
1470 #endif // Document_h 1467 #endif // Document_h
OLDNEW
« no previous file with comments | « LayoutTests/http/tests/security/resources/echo-referrer-header.php ('k') | Source/core/dom/Document.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698