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

Side by Side Diff: Source/core/loader/DocumentLoader.cpp

Issue 1187563005: Code cleanup in core/loader/ (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 6 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/loader/CrossOriginPreflightResultCache.h ('k') | Source/core/loader/EmptyClients.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2006, 2007, 2008 Apple Inc. All rights reserved. 2 * Copyright (C) 2006, 2007, 2008 Apple Inc. All rights reserved.
3 * Copyright (C) 2011 Google Inc. All rights reserved. 3 * Copyright (C) 2011 Google Inc. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 8 *
9 * 1. Redistributions of source code must retain the above copyright 9 * 1. Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 23 matching lines...) Expand all
34 #include "core/dom/DocumentParser.h" 34 #include "core/dom/DocumentParser.h"
35 #include "core/dom/WeakIdentifierMap.h" 35 #include "core/dom/WeakIdentifierMap.h"
36 #include "core/events/Event.h" 36 #include "core/events/Event.h"
37 #include "core/fetch/FetchInitiatorTypeNames.h" 37 #include "core/fetch/FetchInitiatorTypeNames.h"
38 #include "core/fetch/MemoryCache.h" 38 #include "core/fetch/MemoryCache.h"
39 #include "core/fetch/ResourceFetcher.h" 39 #include "core/fetch/ResourceFetcher.h"
40 #include "core/fetch/ResourceLoader.h" 40 #include "core/fetch/ResourceLoader.h"
41 #include "core/frame/FrameHost.h" 41 #include "core/frame/FrameHost.h"
42 #include "core/frame/LocalDOMWindow.h" 42 #include "core/frame/LocalDOMWindow.h"
43 #include "core/frame/LocalFrame.h" 43 #include "core/frame/LocalFrame.h"
44 #include "core/frame/Settings.h"
44 #include "core/frame/csp/ContentSecurityPolicy.h" 45 #include "core/frame/csp/ContentSecurityPolicy.h"
45 #include "core/html/HTMLFrameOwnerElement.h" 46 #include "core/html/HTMLFrameOwnerElement.h"
46 #include "core/html/parser/HTMLDocumentParser.h" 47 #include "core/html/parser/HTMLDocumentParser.h"
47 #include "core/html/parser/TextResourceDecoder.h" 48 #include "core/html/parser/TextResourceDecoder.h"
49 #include "core/inspector/ConsoleMessage.h"
48 #include "core/inspector/InspectorInstrumentation.h" 50 #include "core/inspector/InspectorInstrumentation.h"
49 #include "core/loader/FrameFetchContext.h" 51 #include "core/loader/FrameFetchContext.h"
50 #include "core/loader/FrameLoader.h" 52 #include "core/loader/FrameLoader.h"
51 #include "core/loader/FrameLoaderClient.h" 53 #include "core/loader/FrameLoaderClient.h"
52 #include "core/loader/LinkLoader.h" 54 #include "core/loader/LinkLoader.h"
53 #include "core/loader/appcache/ApplicationCacheHost.h" 55 #include "core/loader/appcache/ApplicationCacheHost.h"
54 #include "core/page/FrameTree.h" 56 #include "core/page/FrameTree.h"
55 #include "core/page/Page.h" 57 #include "core/page/Page.h"
56 #include "core/frame/Settings.h"
57 #include "core/inspector/ConsoleMessage.h"
58 #include "platform/Logging.h" 58 #include "platform/Logging.h"
59 #include "platform/ThreadedDataReceiver.h" 59 #include "platform/ThreadedDataReceiver.h"
60 #include "platform/UserGestureIndicator.h" 60 #include "platform/UserGestureIndicator.h"
61 #include "platform/mhtml/ArchiveResource.h" 61 #include "platform/mhtml/ArchiveResource.h"
62 #include "platform/mhtml/ArchiveResourceCollection.h" 62 #include "platform/mhtml/ArchiveResourceCollection.h"
63 #include "platform/mhtml/MHTMLArchive.h" 63 #include "platform/mhtml/MHTMLArchive.h"
64 #include "platform/network/ContentSecurityPolicyResponseHeaders.h" 64 #include "platform/network/ContentSecurityPolicyResponseHeaders.h"
65 #include "platform/plugins/PluginData.h" 65 #include "platform/plugins/PluginData.h"
66 #include "platform/weborigin/SchemeRegistry.h" 66 #include "platform/weborigin/SchemeRegistry.h"
67 #include "platform/weborigin/SecurityPolicy.h" 67 #include "platform/weborigin/SecurityPolicy.h"
(...skipping 704 matching lines...) Expand 10 before | Expand all | Expand 10 after
772 // This is only called by FrameLoader::replaceDocumentWhileExecutingJavaScriptUR L() 772 // This is only called by FrameLoader::replaceDocumentWhileExecutingJavaScriptUR L()
773 void DocumentLoader::replaceDocumentWhileExecutingJavaScriptURL(const DocumentIn it& init, const String& source, Document* ownerDocument) 773 void DocumentLoader::replaceDocumentWhileExecutingJavaScriptURL(const DocumentIn it& init, const String& source, Document* ownerDocument)
774 { 774 {
775 m_writer = createWriterFor(ownerDocument, init, mimeType(), m_writer ? m_wri ter->encoding() : emptyAtom, true, ForceSynchronousParsing); 775 m_writer = createWriterFor(ownerDocument, init, mimeType(), m_writer ? m_wri ter->encoding() : emptyAtom, true, ForceSynchronousParsing);
776 if (!source.isNull()) 776 if (!source.isNull())
777 m_writer->appendReplacingData(source); 777 m_writer->appendReplacingData(source);
778 endWriting(m_writer.get()); 778 endWriting(m_writer.get());
779 } 779 }
780 780
781 } // namespace blink 781 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/loader/CrossOriginPreflightResultCache.h ('k') | Source/core/loader/EmptyClients.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698