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

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

Issue 1846143003: Propogate loading behavior data from Blink to content/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Updated comments from self review Created 4 years, 8 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 23 matching lines...) Expand all
34 #include "core/dom/Document.h" 34 #include "core/dom/Document.h"
35 #include "core/dom/IconURL.h" 35 #include "core/dom/IconURL.h"
36 #include "core/fetch/ResourceLoaderOptions.h" 36 #include "core/fetch/ResourceLoaderOptions.h"
37 #include "core/frame/FrameClient.h" 37 #include "core/frame/FrameClient.h"
38 #include "core/html/LinkResource.h" 38 #include "core/html/LinkResource.h"
39 #include "core/loader/FrameLoaderTypes.h" 39 #include "core/loader/FrameLoaderTypes.h"
40 #include "core/loader/NavigationPolicy.h" 40 #include "core/loader/NavigationPolicy.h"
41 #include "platform/heap/Handle.h" 41 #include "platform/heap/Handle.h"
42 #include "platform/network/ResourceLoadPriority.h" 42 #include "platform/network/ResourceLoadPriority.h"
43 #include "platform/weborigin/Referrer.h" 43 #include "platform/weborigin/Referrer.h"
44 #include "public/platform/WebLoadingBehaviorFlag.h"
44 #include "wtf/Forward.h" 45 #include "wtf/Forward.h"
45 #include "wtf/Vector.h" 46 #include "wtf/Vector.h"
46 #include <v8.h> 47 #include <v8.h>
47 48
48 namespace blink { 49 namespace blink {
49 50
50 class Document; 51 class Document;
51 class DocumentLoader; 52 class DocumentLoader;
52 class FetchRequest; 53 class FetchRequest;
53 class HTMLFormElement; 54 class HTMLFormElement;
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 // The given main resource displayed content with certificate errors 134 // The given main resource displayed content with certificate errors
134 // with the given URL and security info. 135 // with the given URL and security info.
135 virtual void didDisplayContentWithCertificateErrors(const KURL&, const CStri ng& securityInfo, const WebURL& mainResourceUrl, const CString& mainResourceSecu rityInfo) = 0; 136 virtual void didDisplayContentWithCertificateErrors(const KURL&, const CStri ng& securityInfo, const WebURL& mainResourceUrl, const CString& mainResourceSecu rityInfo) = 0;
136 // The given main resource ran content with certificate errors with 137 // The given main resource ran content with certificate errors with
137 // the given URL and security info. 138 // the given URL and security info.
138 virtual void didRunContentWithCertificateErrors(const KURL&, const CString& securityInfo, const WebURL& mainResourceUrl, const CString& mainResourceSecurity Info) = 0; 139 virtual void didRunContentWithCertificateErrors(const KURL&, const CString& securityInfo, const WebURL& mainResourceUrl, const CString& mainResourceSecurity Info) = 0;
139 140
140 // Will be called when |PerformanceTiming| events are updated 141 // Will be called when |PerformanceTiming| events are updated
141 virtual void didChangePerformanceTiming() { } 142 virtual void didChangePerformanceTiming() { }
142 143
144 // Will be called when a particular loading code path has been used. This
145 // propogates renderer loading behavior to the browser process for
146 // histograms.
147 virtual void didObserveLoadingBehavior(WebLoadingBehaviorFlag) { }
148
143 // Transmits the change in the set of watched CSS selectors property 149 // Transmits the change in the set of watched CSS selectors property
144 // that match any element on the frame. 150 // that match any element on the frame.
145 virtual void selectorMatchChanged(const Vector<String>& addedSelectors, cons t Vector<String>& removedSelectors) = 0; 151 virtual void selectorMatchChanged(const Vector<String>& addedSelectors, cons t Vector<String>& removedSelectors) = 0;
146 152
147 virtual DocumentLoader* createDocumentLoader(LocalFrame*, const ResourceRequ est&, const SubstituteData&) = 0; 153 virtual DocumentLoader* createDocumentLoader(LocalFrame*, const ResourceRequ est&, const SubstituteData&) = 0;
148 154
149 virtual String userAgent() = 0; 155 virtual String userAgent() = 0;
150 156
151 virtual String doNotTrackValue() = 0; 157 virtual String doNotTrackValue() = 0;
152 158
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
255 UnloadHandler, 261 UnloadHandler,
256 }; 262 };
257 virtual void suddenTerminationDisablerChanged(bool present, SuddenTerminatio nDisablerType) { } 263 virtual void suddenTerminationDisablerChanged(bool present, SuddenTerminatio nDisablerType) { }
258 264
259 virtual LinkResource* createServiceWorkerLinkResource(HTMLLinkElement*) { re turn nullptr; } 265 virtual LinkResource* createServiceWorkerLinkResource(HTMLLinkElement*) { re turn nullptr; }
260 }; 266 };
261 267
262 } // namespace blink 268 } // namespace blink
263 269
264 #endif // FrameLoaderClient_h 270 #endif // FrameLoaderClient_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698