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

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

Issue 1829803002: [WeakMemoryCache] Do not lookup MemoryCache when adding resource to Inspector (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@MemoryCache_MakeWeak2d
Patch Set: Rebase. Created 4 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) 2006, 2007, 2008, 2009 Apple Inc. All rights reserved. 2 * Copyright (C) 2006, 2007, 2008, 2009 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 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
136 }; 136 };
137 InitialScrollState& initialScrollState() { return m_initialScrollState; } 137 InitialScrollState& initialScrollState() { return m_initialScrollState; }
138 138
139 void setWasBlockedAfterCSP() { m_wasBlockedAfterCSP = true; } 139 void setWasBlockedAfterCSP() { m_wasBlockedAfterCSP = true; }
140 bool wasBlockedAfterCSP() { return m_wasBlockedAfterCSP; } 140 bool wasBlockedAfterCSP() { return m_wasBlockedAfterCSP; }
141 141
142 Resource* startPreload(Resource::Type, FetchRequest&); 142 Resource* startPreload(Resource::Type, FetchRequest&);
143 143
144 DECLARE_VIRTUAL_TRACE(); 144 DECLARE_VIRTUAL_TRACE();
145 145
146 Resource* mainResource() const { return m_mainResource.get(); }
Nate Chapin 2016/05/12 19:36:53 Instead of exposing this, can we pass the Resource
hiroshige 2016/05/13 08:40:10 Done.
147
146 protected: 148 protected:
147 DocumentLoader(LocalFrame*, const ResourceRequest&, const SubstituteData&); 149 DocumentLoader(LocalFrame*, const ResourceRequest&, const SubstituteData&);
148 150
149 Vector<KURL> m_redirectChain; 151 Vector<KURL> m_redirectChain;
150 152
151 private: 153 private:
152 static DocumentWriter* createWriterFor(const DocumentInit&, const AtomicStri ng& mimeType, const AtomicString& encoding, bool dispatchWindowObjectAvailable, ParserSynchronizationPolicy, const KURL& overridingURL = KURL()); 154 static DocumentWriter* createWriterFor(const DocumentInit&, const AtomicStri ng& mimeType, const AtomicString& encoding, bool dispatchWindowObjectAvailable, ParserSynchronizationPolicy, const KURL& overridingURL = KURL());
153 155
154 void ensureWriter(const AtomicString& mimeType, const KURL& overridingURL = KURL()); 156 void ensureWriter(const AtomicString& mimeType, const KURL& overridingURL = KURL());
155 void endWriting(DocumentWriter*); 157 void endWriting(DocumentWriter*);
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
229 // Used to protect against reentrancy into dataReceived(). 231 // Used to protect against reentrancy into dataReceived().
230 bool m_inDataReceived; 232 bool m_inDataReceived;
231 RefPtr<SharedBuffer> m_dataBuffer; 233 RefPtr<SharedBuffer> m_dataBuffer;
232 }; 234 };
233 235
234 DECLARE_WEAK_IDENTIFIER_MAP(DocumentLoader); 236 DECLARE_WEAK_IDENTIFIER_MAP(DocumentLoader);
235 237
236 } // namespace blink 238 } // namespace blink
237 239
238 #endif // DocumentLoader_h 240 #endif // DocumentLoader_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698