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

Side by Side Diff: public/web/WebFrameClient.h

Issue 249973003: Remove deprecated WebFrameClient methods, part 1/2. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2011, 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2011, 2012 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 97
98 // May return null. 98 // May return null.
99 virtual WebMediaPlayer* createMediaPlayer(WebLocalFrame*, const WebURL&, Web MediaPlayerClient*) { return 0; } 99 virtual WebMediaPlayer* createMediaPlayer(WebLocalFrame*, const WebURL&, Web MediaPlayerClient*) { return 0; }
100 100
101 // May return null. 101 // May return null.
102 virtual WebContentDecryptionModule* createContentDecryptionModule(WebLocalFr ame*, const WebSecurityOrigin&, const WebString& keySystem) { return 0; } 102 virtual WebContentDecryptionModule* createContentDecryptionModule(WebLocalFr ame*, const WebSecurityOrigin&, const WebString& keySystem) { return 0; }
103 103
104 // May return null. 104 // May return null.
105 virtual WebApplicationCacheHost* createApplicationCacheHost(WebLocalFrame*, WebApplicationCacheHostClient*) { return 0; } 105 virtual WebApplicationCacheHost* createApplicationCacheHost(WebLocalFrame*, WebApplicationCacheHostClient*) { return 0; }
106 106
107 // May return null. Takes ownership of the client. 107 // May return null.
108 // FIXME: Deprecate the second argument. 108 virtual WebServiceWorkerProvider* createServiceWorkerProvider(WebLocalFrame* frame) { return 0; }
109 virtual WebServiceWorkerProvider* createServiceWorkerProvider(WebLocalFrame* , WebServiceWorkerProviderClient*) { return 0; }
110 virtual WebServiceWorkerProvider* createServiceWorkerProvider(WebLocalFrame* frame) { return createServiceWorkerProvider(frame, 0); }
111 109
112 // May return null. 110 // May return null.
113 virtual WebWorkerPermissionClientProxy* createWorkerPermissionClientProxy(We bLocalFrame*) { return 0; } 111 virtual WebWorkerPermissionClientProxy* createWorkerPermissionClientProxy(We bLocalFrame*) { return 0; }
114 112
115 113
116 // Services ------------------------------------------------------------ 114 // Services ------------------------------------------------------------
117 115
118 // A frame specific cookie jar. May return null, in which case 116 // A frame specific cookie jar. May return null, in which case
119 // WebKitPlatformSupport::cookieJar() will be called to access cookies. 117 // WebKitPlatformSupport::cookieJar() will be called to access cookies.
120 virtual WebCookieJar* cookieJar(WebLocalFrame*) { return 0; } 118 virtual WebCookieJar* cookieJar(WebLocalFrame*) { return 0; }
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
165 virtual bool shouldReportDetailedMessageForSource(const WebString& source) { return false; } 163 virtual bool shouldReportDetailedMessageForSource(const WebString& source) { return false; }
166 164
167 // A new message was added to the console. 165 // A new message was added to the console.
168 virtual void didAddMessageToConsole(const WebConsoleMessage&, const WebStrin g& sourceName, unsigned sourceLine, const WebString& stackTrace) { } 166 virtual void didAddMessageToConsole(const WebConsoleMessage&, const WebStrin g& sourceName, unsigned sourceLine, const WebString& stackTrace) { }
169 167
170 168
171 // Load commands ------------------------------------------------------- 169 // Load commands -------------------------------------------------------
172 170
173 // The client should handle the navigation externally. 171 // The client should handle the navigation externally.
174 virtual void loadURLExternally( 172 virtual void loadURLExternally(
175 WebLocalFrame*, const WebURLRequest&, WebNavigationPolicy) { }
176 virtual void loadURLExternally(
177 WebLocalFrame*, const WebURLRequest&, WebNavigationPolicy, const WebStri ng& downloadName) { } 173 WebLocalFrame*, const WebURLRequest&, WebNavigationPolicy, const WebStri ng& downloadName) { }
178 174
179 175
180 // Navigational queries ------------------------------------------------ 176 // Navigational queries ------------------------------------------------
181 177
182 // The client may choose to alter the navigation policy. Otherwise, 178 // The client may choose to alter the navigation policy. Otherwise,
183 // defaultPolicy should just be returned. 179 // defaultPolicy should just be returned.
184 virtual WebNavigationPolicy decidePolicyForNavigation( 180 virtual WebNavigationPolicy decidePolicyForNavigation(
185 WebLocalFrame*, WebDataSource::ExtraData*, const WebURLRequest&, WebNavi gationType, 181 WebLocalFrame*, WebDataSource::ExtraData*, const WebURLRequest&, WebNavi gationType,
186 WebNavigationPolicy defaultPolicy, bool isRedirect) { return defaultPoli cy; } 182 WebNavigationPolicy defaultPolicy, bool isRedirect) { return defaultPoli cy; }
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after
340 virtual void willSendRequest( 336 virtual void willSendRequest(
341 WebLocalFrame*, unsigned identifier, WebURLRequest&, 337 WebLocalFrame*, unsigned identifier, WebURLRequest&,
342 const WebURLResponse& redirectResponse) { } 338 const WebURLResponse& redirectResponse) { }
343 339
344 // Response headers have been received for the resource request given 340 // Response headers have been received for the resource request given
345 // by identifier. 341 // by identifier.
346 virtual void didReceiveResponse( 342 virtual void didReceiveResponse(
347 WebLocalFrame*, unsigned identifier, const WebURLResponse&) { } 343 WebLocalFrame*, unsigned identifier, const WebURLResponse&) { }
348 344
349 virtual void didChangeResourcePriority( 345 virtual void didChangeResourcePriority(
350 WebLocalFrame*, unsigned identifier, const blink::WebURLRequest::Priorit y&) { } 346 WebLocalFrame* webFrame, unsigned identifier, const blink::WebURLRequest ::Priority& priority, int) { }
351
352 virtual void didChangeResourcePriority(
353 WebLocalFrame* webFrame, unsigned identifier, const blink::WebURLRequest ::Priority& priority, int) { didChangeResourcePriority(webFrame, identifier, pri ority); }
354 347
355 // The resource request given by identifier succeeded. 348 // The resource request given by identifier succeeded.
356 virtual void didFinishResourceLoad( 349 virtual void didFinishResourceLoad(
357 WebLocalFrame*, unsigned identifier) { } 350 WebLocalFrame*, unsigned identifier) { }
358 351
359 // The specified request was satified from WebCore's memory cache. 352 // The specified request was satified from WebCore's memory cache.
360 virtual void didLoadResourceFromMemoryCache( 353 virtual void didLoadResourceFromMemoryCache(
361 WebLocalFrame*, const WebURLRequest&, const WebURLResponse&) { } 354 WebLocalFrame*, const WebURLRequest&, const WebURLResponse&) { }
362 355
363 // This frame has displayed inactive content (such as an image) from an 356 // This frame has displayed inactive content (such as an image) from an
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
492 // Send initial drawing parameters to a child frame that is being rendered o ut of process. 485 // Send initial drawing parameters to a child frame that is being rendered o ut of process.
493 virtual void initializeChildFrame(const WebRect& frameRect, float scaleFacto r) { } 486 virtual void initializeChildFrame(const WebRect& frameRect, float scaleFacto r) { }
494 487
495 protected: 488 protected:
496 ~WebFrameClient() { } 489 ~WebFrameClient() { }
497 }; 490 };
498 491
499 } // namespace blink 492 } // namespace blink
500 493
501 #endif 494 #endif
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698