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: third_party/WebKit/Source/web/WebDataSourceImpl.cpp

Issue 2556053002: Clarify when DocumentLoader's FrameLoader/FrameLoaderClient accessors can be used (Closed)
Patch Set: Rebase Created 3 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
« no previous file with comments | « third_party/WebKit/Source/web/FrameLoaderClientImpl.cpp ('k') | no next file » | 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) 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 27 matching lines...) Expand all
38 #include "wtf/PtrUtil.h" 38 #include "wtf/PtrUtil.h"
39 #include <memory> 39 #include <memory>
40 40
41 namespace blink { 41 namespace blink {
42 42
43 WebDataSourceImpl* WebDataSourceImpl::create( 43 WebDataSourceImpl* WebDataSourceImpl::create(
44 LocalFrame* frame, 44 LocalFrame* frame,
45 const ResourceRequest& request, 45 const ResourceRequest& request,
46 const SubstituteData& data, 46 const SubstituteData& data,
47 ClientRedirectPolicy clientRedirectPolicy) { 47 ClientRedirectPolicy clientRedirectPolicy) {
48 DCHECK(frame);
49
48 return new WebDataSourceImpl(frame, request, data, clientRedirectPolicy); 50 return new WebDataSourceImpl(frame, request, data, clientRedirectPolicy);
49 } 51 }
50 52
51 const WebURLRequest& WebDataSourceImpl::originalRequest() const { 53 const WebURLRequest& WebDataSourceImpl::originalRequest() const {
52 return m_originalRequestWrapper; 54 return m_originalRequestWrapper;
53 } 55 }
54 56
55 const WebURLRequest& WebDataSourceImpl::getRequest() const { 57 const WebURLRequest& WebDataSourceImpl::getRequest() const {
56 return m_requestWrapper; 58 return m_requestWrapper;
57 } 59 }
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
158 void WebDataSourceImpl::setSubresourceFilter( 160 void WebDataSourceImpl::setSubresourceFilter(
159 WebDocumentSubresourceFilter* subresourceFilter) { 161 WebDocumentSubresourceFilter* subresourceFilter) {
160 DocumentLoader::setSubresourceFilter(WTF::wrapUnique(subresourceFilter)); 162 DocumentLoader::setSubresourceFilter(WTF::wrapUnique(subresourceFilter));
161 } 163 }
162 164
163 DEFINE_TRACE(WebDataSourceImpl) { 165 DEFINE_TRACE(WebDataSourceImpl) {
164 DocumentLoader::trace(visitor); 166 DocumentLoader::trace(visitor);
165 } 167 }
166 168
167 } // namespace blink 169 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/web/FrameLoaderClientImpl.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698