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

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

Issue 2842253002: Move ReportLocalLoadFailed to ExecutionContext (Closed)
Patch Set: Revert ResourceLoader changes, handle main resource redirect in DocumentLoader Created 3 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, 2011 Apple Inc. All rights reserved. 2 * Copyright (C) 2006, 2007, 2008, 2009, 2011 Apple Inc. All rights reserved.
3 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. 3 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved.
4 * (http://www.torchmobile.com/) 4 * (http://www.torchmobile.com/)
5 * Copyright (C) Research In Motion Limited 2009. All rights reserved. 5 * Copyright (C) Research In Motion Limited 2009. All rights reserved.
6 * Copyright (C) 2011 Google Inc. All rights reserved. 6 * Copyright (C) 2011 Google Inc. All rights reserved.
7 * 7 *
8 * Redistribution and use in source and binary forms, with or without 8 * Redistribution and use in source and binary forms, with or without
9 * modification, are permitted provided that the following conditions 9 * modification, are permitted provided that the following conditions
10 * are met: 10 * are met:
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 // Starts a load. It will eventually call startLoad() or loadInSameDocument(). 89 // Starts a load. It will eventually call startLoad() or loadInSameDocument().
90 // For history navigations or reloads, an appropriate FrameLoadType should be 90 // For history navigations or reloads, an appropriate FrameLoadType should be
91 // given. Otherwise, FrameLoadTypeStandard should be used (and the final 91 // given. Otherwise, FrameLoadTypeStandard should be used (and the final
92 // FrameLoadType will be computed). For history navigations, a history item 92 // FrameLoadType will be computed). For history navigations, a history item
93 // and a HistoryLoadType should also be provided. 93 // and a HistoryLoadType should also be provided.
94 void Load(const FrameLoadRequest&, 94 void Load(const FrameLoadRequest&,
95 FrameLoadType = kFrameLoadTypeStandard, 95 FrameLoadType = kFrameLoadTypeStandard,
96 HistoryItem* = nullptr, 96 HistoryItem* = nullptr,
97 HistoryLoadType = kHistoryDifferentDocumentLoad); 97 HistoryLoadType = kHistoryDifferentDocumentLoad);
98 98
99 static void ReportLocalLoadFailed(LocalFrame*, const String& url);
100
101 // Warning: stopAllLoaders can and will detach the LocalFrame out from under 99 // Warning: stopAllLoaders can and will detach the LocalFrame out from under
102 // you. All callers need to either protect the LocalFrame or guarantee they 100 // you. All callers need to either protect the LocalFrame or guarantee they
103 // won't in any way access the LocalFrame after stopAllLoaders returns. 101 // won't in any way access the LocalFrame after stopAllLoaders returns.
104 void StopAllLoaders(); 102 void StopAllLoaders();
105 103
106 // FIXME: clear() is trying to do too many things. We should break it down 104 // FIXME: clear() is trying to do too many things. We should break it down
107 // into smaller functions. 105 // into smaller functions.
108 void Clear(); 106 void Clear();
109 107
110 void ReplaceDocumentWhileExecutingJavaScriptURL(const String& source, 108 void ReplaceDocumentWhileExecutingJavaScriptURL(const String& source,
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after
291 SandboxFlags forced_sandbox_flags_; 289 SandboxFlags forced_sandbox_flags_;
292 290
293 bool dispatching_did_clear_window_object_in_main_world_; 291 bool dispatching_did_clear_window_object_in_main_world_;
294 bool protect_provisional_loader_; 292 bool protect_provisional_loader_;
295 bool detached_; 293 bool detached_;
296 }; 294 };
297 295
298 } // namespace blink 296 } // namespace blink
299 297
300 #endif // FrameLoader_h 298 #endif // FrameLoader_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/loader/FrameFetchContext.cpp ('k') | third_party/WebKit/Source/core/loader/FrameLoader.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698