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

Side by Side Diff: third_party/WebKit/public/web/WebLocalFrame.h

Issue 1624583003: Reload Lo-Fi images inline instead of reloading the whole page (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: adding blink test Created 4 years, 10 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 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef WebLocalFrame_h 5 #ifndef WebLocalFrame_h
6 #define WebLocalFrame_h 6 #define WebLocalFrame_h
7 7
8 #include "WebFrame.h" 8 #include "WebFrame.h"
9 #include "WebFrameLoadType.h" 9 #include "WebFrameLoadType.h"
10 10
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after
179 // Request to show an application install banner for the given |platforms|. 179 // Request to show an application install banner for the given |platforms|.
180 // The implementation can request the embedder to cancel the call by setting 180 // The implementation can request the embedder to cancel the call by setting
181 // |cancel| to true. 181 // |cancel| to true.
182 virtual void willShowInstallBannerPrompt(int requestId, const WebVector<WebS tring>& platforms, WebAppBannerPromptReply*) = 0; 182 virtual void willShowInstallBannerPrompt(int requestId, const WebVector<WebS tring>& platforms, WebAppBannerPromptReply*) = 0;
183 183
184 // Image reload ----------------------------------------------------------- 184 // Image reload -----------------------------------------------------------
185 185
186 // If the provided node is an image, reload the image disabling Lo-Fi. 186 // If the provided node is an image, reload the image disabling Lo-Fi.
187 virtual void reloadImage(const WebNode&) = 0; 187 virtual void reloadImage(const WebNode&) = 0;
188 188
189 // Reloads all the Lo-Fi images in this WebLocalFrame. Ignores the cache and
190 // reloads from the network.
191 virtual void reloadLoFiImages() = 0;
192
189 // Feature usage logging -------------------------------------------------- 193 // Feature usage logging --------------------------------------------------
190 194
191 virtual void didCallAddSearchProvider() = 0; 195 virtual void didCallAddSearchProvider() = 0;
192 virtual void didCallIsSearchProviderInstalled() = 0; 196 virtual void didCallIsSearchProviderInstalled() = 0;
193 197
194 // Testing ---------------------------------------------------------------- 198 // Testing ----------------------------------------------------------------
195 199
196 // Registers a test interface factory. Takes ownership of the factory. 200 // Registers a test interface factory. Takes ownership of the factory.
197 virtual void registerTestInterface(const WebString& name, WebTestInterfaceFa ctory*) = 0; 201 virtual void registerTestInterface(const WebString& name, WebTestInterfaceFa ctory*) = 0;
198 202
199 // Iframe sandbox --------------------------------------------------------- 203 // Iframe sandbox ---------------------------------------------------------
200 204
201 // Returns the effective sandbox flags which are inherited from their parent frame. 205 // Returns the effective sandbox flags which are inherited from their parent frame.
202 virtual WebSandboxFlags effectiveSandboxFlags() const = 0; 206 virtual WebSandboxFlags effectiveSandboxFlags() const = 0;
203 207
204 // Set sandbox flags that will always be forced on this frame. This is 208 // Set sandbox flags that will always be forced on this frame. This is
205 // used to inherit sandbox flags from cross-process opener frames in popups. 209 // used to inherit sandbox flags from cross-process opener frames in popups.
206 // 210 //
207 // TODO(dcheng): Remove this once we have WebLocalFrame::createMainFrame. 211 // TODO(dcheng): Remove this once we have WebLocalFrame::createMainFrame.
208 virtual void forceSandboxFlags(WebSandboxFlags) = 0; 212 virtual void forceSandboxFlags(WebSandboxFlags) = 0;
209 213
210 protected: 214 protected:
211 explicit WebLocalFrame(WebTreeScopeType scope) : WebFrame(scope) { } 215 explicit WebLocalFrame(WebTreeScopeType scope) : WebFrame(scope) { }
212 }; 216 };
213 217
214 } // namespace blink 218 } // namespace blink
215 219
216 #endif // WebLocalFrame_h 220 #endif // WebLocalFrame_h
OLDNEW
« content/renderer/render_frame_impl.cc ('K') | « third_party/WebKit/Source/web/WebLocalFrameImpl.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698