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

Side by Side Diff: Source/web/FrameLoaderClientImpl.h

Issue 1288973002: Observing DocumentTiming and sending data to RenderFrameImpl (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: minor edits from review Created 5 years, 4 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) 2009, 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2009, 2012 Google Inc. All rights reserved.
3 * Copyright (C) 2011 Apple Inc. All rights reserved. 3 * Copyright (C) 2011 Apple 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 are 6 * modification, are permitted provided that the following conditions are
7 * met: 7 * met:
8 * 8 *
9 * * Redistributions of source code must retain the above copyright 9 * * 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 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 void didStartLoading(LoadStartType) override; 105 void didStartLoading(LoadStartType) override;
106 void didStopLoading() override; 106 void didStopLoading() override;
107 void progressEstimateChanged(double progressEstimate) override; 107 void progressEstimateChanged(double progressEstimate) override;
108 void loadURLExternally(const ResourceRequest&, NavigationPolicy, const Strin g& suggestedName = String()) override; 108 void loadURLExternally(const ResourceRequest&, NavigationPolicy, const Strin g& suggestedName = String()) override;
109 bool navigateBackForward(int offset) const override; 109 bool navigateBackForward(int offset) const override;
110 void didAccessInitialDocument() override; 110 void didAccessInitialDocument() override;
111 void didDisplayInsecureContent() override; 111 void didDisplayInsecureContent() override;
112 void didRunInsecureContent(SecurityOrigin*, const KURL& insecureURL) overrid e; 112 void didRunInsecureContent(SecurityOrigin*, const KURL& insecureURL) overrid e;
113 void didDetectXSS(const KURL&, bool didBlockEntirePage) override; 113 void didDetectXSS(const KURL&, bool didBlockEntirePage) override;
114 void didDispatchPingLoader(const KURL&) override; 114 void didDispatchPingLoader(const KURL&) override;
115 void didChangePerformanceTiming() override;
115 void selectorMatchChanged(const Vector<String>& addedSelectors, const Vector <String>& removedSelectors) override; 116 void selectorMatchChanged(const Vector<String>& addedSelectors, const Vector <String>& removedSelectors) override;
116 PassRefPtrWillBeRawPtr<DocumentLoader> createDocumentLoader(LocalFrame*, con st ResourceRequest&, const SubstituteData&) override; 117 PassRefPtrWillBeRawPtr<DocumentLoader> createDocumentLoader(LocalFrame*, con st ResourceRequest&, const SubstituteData&) override;
117 WTF::String userAgent(const KURL&) override; 118 WTF::String userAgent(const KURL&) override;
118 WTF::String doNotTrackValue() override; 119 WTF::String doNotTrackValue() override;
119 void transitionToCommittedForNewPage() override; 120 void transitionToCommittedForNewPage() override;
120 PassRefPtrWillBeRawPtr<LocalFrame> createFrame(const FrameLoadRequest&, cons t WTF::AtomicString& name, HTMLFrameOwnerElement*) override; 121 PassRefPtrWillBeRawPtr<LocalFrame> createFrame(const FrameLoadRequest&, cons t WTF::AtomicString& name, HTMLFrameOwnerElement*) override;
121 virtual bool canCreatePluginWithoutRenderer(const String& mimeType) const; 122 virtual bool canCreatePluginWithoutRenderer(const String& mimeType) const;
122 PassOwnPtrWillBeRawPtr<PluginPlaceholder> createPluginPlaceholder( 123 PassOwnPtrWillBeRawPtr<PluginPlaceholder> createPluginPlaceholder(
123 Document&, const KURL&, 124 Document&, const KURL&,
124 const Vector<String>& paramNames, const Vector<String>& paramValues, 125 const Vector<String>& paramNames, const Vector<String>& paramValues,
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
173 174
174 PassOwnPtr<WebApplicationCacheHost> createApplicationCacheHost(WebApplicatio nCacheHostClient*) override; 175 PassOwnPtr<WebApplicationCacheHost> createApplicationCacheHost(WebApplicatio nCacheHostClient*) override;
175 176
176 void didStopAllLoaders() override; 177 void didStopAllLoaders() override;
177 178
178 void dispatchDidChangeManifest() override; 179 void dispatchDidChangeManifest() override;
179 180
180 unsigned backForwardLength() override; 181 unsigned backForwardLength() override;
181 182
182 void suddenTerminationDisablerChanged(bool present, SuddenTerminationDisable rType) override; 183 void suddenTerminationDisablerChanged(bool present, SuddenTerminationDisable rType) override;
184
183 private: 185 private:
184 bool isFrameLoaderClientImpl() const override { return true; } 186 bool isFrameLoaderClientImpl() const override { return true; }
185 187
186 PassOwnPtr<WebPluginLoadObserver> pluginLoadObserver(DocumentLoader*); 188 PassOwnPtr<WebPluginLoadObserver> pluginLoadObserver(DocumentLoader*);
187 189
188 // The WebFrame that owns this object and manages its lifetime. Therefore, 190 // The WebFrame that owns this object and manages its lifetime. Therefore,
189 // the web frame object is guaranteed to exist. 191 // the web frame object is guaranteed to exist.
190 WebLocalFrameImpl* m_webFrame; 192 WebLocalFrameImpl* m_webFrame;
191 }; 193 };
192 194
193 DEFINE_TYPE_CASTS(FrameLoaderClientImpl, FrameLoaderClient, client, client->isFr ameLoaderClientImpl(), client.isFrameLoaderClientImpl()); 195 DEFINE_TYPE_CASTS(FrameLoaderClientImpl, FrameLoaderClient, client, client->isFr ameLoaderClientImpl(), client.isFrameLoaderClientImpl());
194 196
195 } // namespace blink 197 } // namespace blink
196 198
197 #endif 199 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698