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

Side by Side Diff: third_party/WebKit/Source/core/dom/Document.cpp

Issue 1875593003: Revert of Store the list of trial tokens in OriginTrialContext (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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, 2011, 2012 Apple Inc. All r ights reserved. 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2011, 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) 2008, 2009, 2011, 2012 Google Inc. All rights reserved. 8 * Copyright (C) 2008, 2009, 2011, 2012 Google Inc. All rights reserved.
9 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) 9 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies)
10 * Copyright (C) Research In Motion Limited 2010-2011. All rights reserved. 10 * Copyright (C) Research In Motion Limited 2010-2011. All rights reserved.
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after
179 #include "core/layout/api/LayoutViewItem.h" 179 #include "core/layout/api/LayoutViewItem.h"
180 #include "core/layout/compositing/PaintLayerCompositor.h" 180 #include "core/layout/compositing/PaintLayerCompositor.h"
181 #include "core/loader/CookieJar.h" 181 #include "core/loader/CookieJar.h"
182 #include "core/loader/DocumentLoader.h" 182 #include "core/loader/DocumentLoader.h"
183 #include "core/loader/FrameFetchContext.h" 183 #include "core/loader/FrameFetchContext.h"
184 #include "core/loader/FrameLoader.h" 184 #include "core/loader/FrameLoader.h"
185 #include "core/loader/FrameLoaderClient.h" 185 #include "core/loader/FrameLoaderClient.h"
186 #include "core/loader/ImageLoader.h" 186 #include "core/loader/ImageLoader.h"
187 #include "core/loader/NavigationScheduler.h" 187 #include "core/loader/NavigationScheduler.h"
188 #include "core/loader/appcache/ApplicationCacheHost.h" 188 #include "core/loader/appcache/ApplicationCacheHost.h"
189 #include "core/origin_trials/DocumentOriginTrialContext.h"
189 #include "core/page/ChromeClient.h" 190 #include "core/page/ChromeClient.h"
190 #include "core/page/EventWithHitTestResults.h" 191 #include "core/page/EventWithHitTestResults.h"
191 #include "core/page/FocusController.h" 192 #include "core/page/FocusController.h"
192 #include "core/page/FrameTree.h" 193 #include "core/page/FrameTree.h"
193 #include "core/page/Page.h" 194 #include "core/page/Page.h"
194 #include "core/page/PointerLockController.h" 195 #include "core/page/PointerLockController.h"
195 #include "core/page/scrolling/ScrollingCoordinator.h" 196 #include "core/page/scrolling/ScrollingCoordinator.h"
196 #include "core/svg/SVGDocumentExtensions.h" 197 #include "core/svg/SVGDocumentExtensions.h"
197 #include "core/svg/SVGTitleElement.h" 198 #include "core/svg/SVGTitleElement.h"
198 #include "core/svg/SVGUseElement.h" 199 #include "core/svg/SVGUseElement.h"
(...skipping 5755 matching lines...) Expand 10 before | Expand all | Expand 10 after
5954 return Platform::current()->currentThread()->scheduler()->timerTaskRunner(); 5955 return Platform::current()->currentThread()->scheduler()->timerTaskRunner();
5955 } 5956 }
5956 5957
5957 void Document::enforceStrictMixedContentChecking() 5958 void Document::enforceStrictMixedContentChecking()
5958 { 5959 {
5959 securityContext().setShouldEnforceStrictMixedContentChecking(true); 5960 securityContext().setShouldEnforceStrictMixedContentChecking(true);
5960 if (frame()) 5961 if (frame())
5961 frame()->loader().client()->didEnforceStrictMixedContentChecking(); 5962 frame()->loader().client()->didEnforceStrictMixedContentChecking();
5962 } 5963 }
5963 5964
5965 RawPtr<OriginTrialContext> Document::createOriginTrialContext()
5966 {
5967 return new DocumentOriginTrialContext(this);
5968 }
5969
5964 LayoutViewItem Document::layoutViewItem() const 5970 LayoutViewItem Document::layoutViewItem() const
5965 { 5971 {
5966 return LayoutViewItem(m_layoutView); 5972 return LayoutViewItem(m_layoutView);
5967 } 5973 }
5968 5974
5969 DEFINE_TRACE(Document) 5975 DEFINE_TRACE(Document)
5970 { 5976 {
5971 visitor->trace(m_importsController); 5977 visitor->trace(m_importsController);
5972 visitor->trace(m_docType); 5978 visitor->trace(m_docType);
5973 visitor->trace(m_implementation); 5979 visitor->trace(m_implementation);
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
6038 #ifndef NDEBUG 6044 #ifndef NDEBUG
6039 using namespace blink; 6045 using namespace blink;
6040 void showLiveDocumentInstances() 6046 void showLiveDocumentInstances()
6041 { 6047 {
6042 Document::WeakDocumentSet& set = Document::liveDocumentSet(); 6048 Document::WeakDocumentSet& set = Document::liveDocumentSet();
6043 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); 6049 fprintf(stderr, "There are %u documents currently alive:\n", set.size());
6044 for (Document* document : set) 6050 for (Document* document : set)
6045 fprintf(stderr, "- Document %p URL: %s\n", document, document->url().get String().utf8().data()); 6051 fprintf(stderr, "- Document %p URL: %s\n", document, document->url().get String().utf8().data());
6046 } 6052 }
6047 #endif 6053 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/dom/Document.h ('k') | third_party/WebKit/Source/core/dom/ExecutionContext.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698