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

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

Issue 1304043006: Make classes and structures in core/loader fast-allocated. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 3 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 | « no previous file | Source/core/loader/EmptyClients.h » ('j') | Source/core/loader/EmptyClients.h » ('J')
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, 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 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 124
125 bool isRedirect() const { return m_redirectChain.size() > 1; } 125 bool isRedirect() const { return m_redirectChain.size() > 1; }
126 void clearRedirectChain(); 126 void clearRedirectChain();
127 void appendRedirect(const KURL&); 127 void appendRedirect(const KURL&);
128 128
129 PassRefPtrWillBeRawPtr<ContentSecurityPolicy> releaseContentSecurityPolicy() { return m_contentSecurityPolicy.release(); } 129 PassRefPtrWillBeRawPtr<ContentSecurityPolicy> releaseContentSecurityPolicy() { return m_contentSecurityPolicy.release(); }
130 130
131 ClientHintsPreferences& clientHintsPreferences() { return m_clientHintsPrefe rences; } 131 ClientHintsPreferences& clientHintsPreferences() { return m_clientHintsPrefe rences; }
132 132
133 struct InitialScrollState { 133 struct InitialScrollState {
134 DISALLOW_ALLOCATION();
134 InitialScrollState() 135 InitialScrollState()
135 : wasScrolledByUser(false) 136 : wasScrolledByUser(false)
136 , didRestoreFromHistory(false) 137 , didRestoreFromHistory(false)
137 { 138 {
138 } 139 }
139 140
140 bool wasScrolledByUser; 141 bool wasScrolledByUser;
141 bool didRestoreFromHistory; 142 bool didRestoreFromHistory;
142 }; 143 };
143 InitialScrollState& initialScrollState() { return m_initialScrollState; } 144 InitialScrollState& initialScrollState() { return m_initialScrollState; }
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
240 // Used to protect against reentrancy into dataReceived(). 241 // Used to protect against reentrancy into dataReceived().
241 bool m_inDataReceived; 242 bool m_inDataReceived;
242 RefPtr<SharedBuffer> m_dataBuffer; 243 RefPtr<SharedBuffer> m_dataBuffer;
243 }; 244 };
244 245
245 DECLARE_WEAK_IDENTIFIER_MAP(DocumentLoader); 246 DECLARE_WEAK_IDENTIFIER_MAP(DocumentLoader);
246 247
247 } // namespace blink 248 } // namespace blink
248 249
249 #endif // DocumentLoader_h 250 #endif // DocumentLoader_h
OLDNEW
« no previous file with comments | « no previous file | Source/core/loader/EmptyClients.h » ('j') | Source/core/loader/EmptyClients.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698