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

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

Issue 153983004: Schedule image resource downloads by decreasing visual impact - Blink Side (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 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 /* 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 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 66
67 // Returns true if we should allow the given V8 extension to be added to 67 // Returns true if we should allow the given V8 extension to be added to
68 // the script context at the currently loading page and given extension grou p. 68 // the script context at the currently loading page and given extension grou p.
69 virtual bool allowScriptExtension(const String& extensionName, int extension Group, int worldId) OVERRIDE; 69 virtual bool allowScriptExtension(const String& extensionName, int extension Group, int worldId) OVERRIDE;
70 70
71 virtual bool hasWebView() const OVERRIDE; 71 virtual bool hasWebView() const OVERRIDE;
72 virtual void detachedFromParent() OVERRIDE; 72 virtual void detachedFromParent() OVERRIDE;
73 virtual void dispatchWillRequestAfterPreconnect(WebCore::ResourceRequest&) O VERRIDE; 73 virtual void dispatchWillRequestAfterPreconnect(WebCore::ResourceRequest&) O VERRIDE;
74 virtual void dispatchWillSendRequest(WebCore::DocumentLoader*, unsigned long identifier, WebCore::ResourceRequest&, const WebCore::ResourceResponse& redirec tResponse) OVERRIDE; 74 virtual void dispatchWillSendRequest(WebCore::DocumentLoader*, unsigned long identifier, WebCore::ResourceRequest&, const WebCore::ResourceResponse& redirec tResponse) OVERRIDE;
75 virtual void dispatchDidReceiveResponse(WebCore::DocumentLoader*, unsigned l ong identifier, const WebCore::ResourceResponse&) OVERRIDE; 75 virtual void dispatchDidReceiveResponse(WebCore::DocumentLoader*, unsigned l ong identifier, const WebCore::ResourceResponse&) OVERRIDE;
76 virtual void dispatchDidChangeResourcePriority(unsigned long identifier, Web Core::ResourceLoadPriority) OVERRIDE; 76 virtual void dispatchDidChangeResourcePriority(unsigned long identifier, Web Core::ResourceLoadPriority, int intraPriorityValue) OVERRIDE;
77 virtual void dispatchDidFinishLoading(WebCore::DocumentLoader*, unsigned lon g identifier) OVERRIDE; 77 virtual void dispatchDidFinishLoading(WebCore::DocumentLoader*, unsigned lon g identifier) OVERRIDE;
78 virtual void dispatchDidLoadResourceFromMemoryCache(const WebCore::ResourceR equest&, const WebCore::ResourceResponse&) OVERRIDE; 78 virtual void dispatchDidLoadResourceFromMemoryCache(const WebCore::ResourceR equest&, const WebCore::ResourceResponse&) OVERRIDE;
79 virtual void dispatchDidHandleOnloadEvents() OVERRIDE; 79 virtual void dispatchDidHandleOnloadEvents() OVERRIDE;
80 virtual void dispatchDidReceiveServerRedirectForProvisionalLoad() OVERRIDE; 80 virtual void dispatchDidReceiveServerRedirectForProvisionalLoad() OVERRIDE;
81 virtual void dispatchDidNavigateWithinPage(WebCore::HistoryItem*, WebCore::H istoryCommitType) OVERRIDE; 81 virtual void dispatchDidNavigateWithinPage(WebCore::HistoryItem*, WebCore::H istoryCommitType) OVERRIDE;
82 virtual void dispatchWillClose() OVERRIDE; 82 virtual void dispatchWillClose() OVERRIDE;
83 virtual void dispatchDidStartProvisionalLoad() OVERRIDE; 83 virtual void dispatchDidStartProvisionalLoad() OVERRIDE;
84 virtual void dispatchDidReceiveTitle(const String&) OVERRIDE; 84 virtual void dispatchDidReceiveTitle(const String&) OVERRIDE;
85 virtual void dispatchDidChangeIcons(WebCore::IconType) OVERRIDE; 85 virtual void dispatchDidChangeIcons(WebCore::IconType) OVERRIDE;
86 virtual void dispatchDidCommitLoad(WebCore::Frame*, WebCore::HistoryItem*, W ebCore::HistoryCommitType) OVERRIDE; 86 virtual void dispatchDidCommitLoad(WebCore::Frame*, WebCore::HistoryItem*, W ebCore::HistoryCommitType) OVERRIDE;
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
160 // The WebFrame that owns this object and manages its lifetime. Therefore, 160 // The WebFrame that owns this object and manages its lifetime. Therefore,
161 // the web frame object is guaranteed to exist. 161 // the web frame object is guaranteed to exist.
162 WebFrameImpl* m_webFrame; 162 WebFrameImpl* m_webFrame;
163 }; 163 };
164 164
165 DEFINE_TYPE_CASTS(FrameLoaderClientImpl, WebCore::FrameLoaderClient, client, cli ent->isFrameLoaderClientImpl(), client.isFrameLoaderClientImpl()); 165 DEFINE_TYPE_CASTS(FrameLoaderClientImpl, WebCore::FrameLoaderClient, client, cli ent->isFrameLoaderClientImpl(), client.isFrameLoaderClientImpl());
166 166
167 } // namespace blink 167 } // namespace blink
168 168
169 #endif 169 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698