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

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

Issue 2171063002: Notify the Blink client synchronously if the initial doc is accessed. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Forbid scripts. Created 4 years, 5 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, 2010, 2011, 2012 Apple Inc. All rights reserved. 2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc. All rights reserved.
3 * Copyright (C) 2012 Google Inc. All rights reserved. 3 * Copyright (C) 2012 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 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 virtual void didStartLoading(LoadStartType) = 0; 117 virtual void didStartLoading(LoadStartType) = 0;
118 virtual void progressEstimateChanged(double progressEstimate) = 0; 118 virtual void progressEstimateChanged(double progressEstimate) = 0;
119 virtual void didStopLoading() = 0; 119 virtual void didStopLoading() = 0;
120 120
121 virtual void loadURLExternally(const ResourceRequest&, NavigationPolicy, con st String& suggestedName, bool replacesCurrentHistoryItem) = 0; 121 virtual void loadURLExternally(const ResourceRequest&, NavigationPolicy, con st String& suggestedName, bool replacesCurrentHistoryItem) = 0;
122 122
123 virtual bool navigateBackForward(int offset) const = 0; 123 virtual bool navigateBackForward(int offset) const = 0;
124 124
125 // Another page has accessed the initial empty document of this frame. 125 // Another page has accessed the initial empty document of this frame.
126 // It is no longer safe to display a provisional URL, since a URL spoof 126 // It is no longer safe to display a provisional URL, since a URL spoof
127 // is now possible. 127 // is now possible. The client must not call back into JavaScript during
128 // this notification.
dcheng 2016/07/22 06:22:03 It makes me sad that this comment is necessary, si
Charlie Reis 2016/07/22 16:41:44 Yeah, I added it before we had the ScriptForbidden
128 virtual void didAccessInitialDocument() { } 129 virtual void didAccessInitialDocument() { }
dglazkov 2016/07/22 14:32:10 The only user of this is RenderFrameImpl::didAcces
Charlie Reis 2016/07/22 16:41:43 That's right. That's the only use, and there's no
129 130
130 // This frame has displayed inactive content (such as an image) from an 131 // This frame has displayed inactive content (such as an image) from an
131 // insecure source. Inactive content cannot spread to other frames. 132 // insecure source. Inactive content cannot spread to other frames.
132 virtual void didDisplayInsecureContent() = 0; 133 virtual void didDisplayInsecureContent() = 0;
133 134
134 // The indicated security origin has run active content (such as a 135 // The indicated security origin has run active content (such as a
135 // script) from an insecure source. Note that the insecure content can 136 // script) from an insecure source. Note that the insecure content can
136 // spread to other frames in the same origin. 137 // spread to other frames in the same origin.
137 virtual void didRunInsecureContent(SecurityOrigin*, const KURL&) = 0; 138 virtual void didRunInsecureContent(SecurityOrigin*, const KURL&) = 0;
138 virtual void didDetectXSS(const KURL&, bool didBlockEntirePage) = 0; 139 virtual void didDetectXSS(const KURL&, bool didBlockEntirePage) = 0;
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
270 271
271 virtual LinkResource* createServiceWorkerLinkResource(HTMLLinkElement*) { re turn nullptr; } 272 virtual LinkResource* createServiceWorkerLinkResource(HTMLLinkElement*) { re turn nullptr; }
272 273
273 // Effective connection type when this frame was loaded. 274 // Effective connection type when this frame was loaded.
274 virtual WebEffectiveConnectionType getEffectiveConnectionType() { return Web EffectiveConnectionType::TypeUnknown; } 275 virtual WebEffectiveConnectionType getEffectiveConnectionType() { return Web EffectiveConnectionType::TypeUnknown; }
275 }; 276 };
276 277
277 } // namespace blink 278 } // namespace blink
278 279
279 #endif // FrameLoaderClient_h 280 #endif // FrameLoaderClient_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698