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

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

Issue 1455943002: [Oilpan] Prepare full definition of classes before using Member (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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) 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 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
147 const ResourceRequest& DocumentLoader::originalRequest() const 147 const ResourceRequest& DocumentLoader::originalRequest() const
148 { 148 {
149 return m_originalRequest; 149 return m_originalRequest;
150 } 150 }
151 151
152 const ResourceRequest& DocumentLoader::request() const 152 const ResourceRequest& DocumentLoader::request() const
153 { 153 {
154 return m_request; 154 return m_request;
155 } 155 }
156 156
157 ResourceFetcher* DocumentLoader::fetcher() const
158 {
159 return m_fetcher.get();
160 }
161
157 const KURL& DocumentLoader::url() const 162 const KURL& DocumentLoader::url() const
158 { 163 {
159 return m_request.url(); 164 return m_request.url();
160 } 165 }
161 166
162 void DocumentLoader::startPreload(Resource::Type type, FetchRequest& request) 167 void DocumentLoader::startPreload(Resource::Type type, FetchRequest& request)
163 { 168 {
164 ASSERT(type == Resource::Script || type == Resource::CSSStyleSheet || type = = Resource::Image || type == Resource::ImportResource); 169 ASSERT(type == Resource::Script || type == Resource::CSSStyleSheet || type = = Resource::Image || type == Resource::ImportResource);
165 ResourcePtr<Resource> resource; 170 ResourcePtr<Resource> resource;
166 switch (type) { 171 switch (type) {
(...skipping 666 matching lines...) Expand 10 before | Expand all | Expand 10 after
833 { 838 {
834 m_writer = createWriterFor(ownerDocument, init, mimeType(), m_writer ? m_wri ter->encoding() : emptyAtom, true, ForceSynchronousParsing); 839 m_writer = createWriterFor(ownerDocument, init, mimeType(), m_writer ? m_wri ter->encoding() : emptyAtom, true, ForceSynchronousParsing);
835 if (!source.isNull()) 840 if (!source.isNull())
836 m_writer->appendReplacingData(source); 841 m_writer->appendReplacingData(source);
837 endWriting(m_writer.get()); 842 endWriting(m_writer.get());
838 } 843 }
839 844
840 DEFINE_WEAK_IDENTIFIER_MAP(DocumentLoader); 845 DEFINE_WEAK_IDENTIFIER_MAP(DocumentLoader);
841 846
842 } // namespace blink 847 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698