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

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

Issue 126453005: Simplify starting a same-document navigation (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | Source/core/loader/DocumentLoader.cpp » ('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, 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 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 const ResourceError& mainDocumentError() const { return m_mainDocumentEr ror; } 113 const ResourceError& mainDocumentError() const { return m_mainDocumentEr ror; }
114 bool isClientRedirect() const { return m_isClientRedirect; } 114 bool isClientRedirect() const { return m_isClientRedirect; }
115 void setIsClientRedirect(bool isClientRedirect) { m_isClientRedirect = i sClientRedirect; } 115 void setIsClientRedirect(bool isClientRedirect) { m_isClientRedirect = i sClientRedirect; }
116 bool replacesCurrentHistoryItem() const { return m_replacesCurrentHistor yItem; } 116 bool replacesCurrentHistoryItem() const { return m_replacesCurrentHistor yItem; }
117 void setReplacesCurrentHistoryItem(bool replacesCurrentHistoryItem) { m_ replacesCurrentHistoryItem = replacesCurrentHistoryItem; } 117 void setReplacesCurrentHistoryItem(bool replacesCurrentHistoryItem) { m_ replacesCurrentHistoryItem = replacesCurrentHistoryItem; }
118 bool isLoadingInAPISense() const; 118 bool isLoadingInAPISense() const;
119 const AtomicString& overrideEncoding() const { return m_overrideEncoding ; } 119 const AtomicString& overrideEncoding() const { return m_overrideEncoding ; }
120 120
121 bool scheduleArchiveLoad(Resource*, const ResourceRequest&); 121 bool scheduleArchiveLoad(Resource*, const ResourceRequest&);
122 122
123 enum PolicyCheckLoadType { 123 bool shouldContinueForNavigationPolicy(const ResourceRequest&);
124 PolicyCheckStandard,
125 PolicyCheckFragment
126 };
127 bool shouldContinueForNavigationPolicy(const ResourceRequest&, PolicyChe ckLoadType);
128 const NavigationAction& triggeringAction() const { return m_triggeringAc tion; } 124 const NavigationAction& triggeringAction() const { return m_triggeringAc tion; }
129 void setTriggeringAction(const NavigationAction& action) { m_triggeringA ction = action; } 125 void setTriggeringAction(const NavigationAction& action) { m_triggeringA ction = action; }
130 126
131 void setOverrideEncoding(const AtomicString& encoding) { m_overrideEncod ing = encoding; } 127 void setOverrideEncoding(const AtomicString& encoding) { m_overrideEncod ing = encoding; }
132 128
133 void setDefersLoading(bool); 129 void setDefersLoading(bool);
134 130
135 void startLoadingMainResource(); 131 void startLoadingMainResource();
136 void cancelMainResourceLoad(const ResourceError&); 132 void cancelMainResourceLoad(const ResourceError&);
137 133
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
238 DocumentLoadTiming m_documentLoadTiming; 234 DocumentLoadTiming m_documentLoadTiming;
239 235
240 double m_timeOfLastDataReceived; 236 double m_timeOfLastDataReceived;
241 237
242 friend class ApplicationCacheHost; // for substitute resource delivery 238 friend class ApplicationCacheHost; // for substitute resource delivery
243 OwnPtr<ApplicationCacheHost> m_applicationCacheHost; 239 OwnPtr<ApplicationCacheHost> m_applicationCacheHost;
244 }; 240 };
245 } 241 }
246 242
247 #endif // DocumentLoader_h 243 #endif // DocumentLoader_h
OLDNEW
« no previous file with comments | « no previous file | Source/core/loader/DocumentLoader.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698