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

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

Issue 2781723007: Plumb initiator out of Blink. (Closed)
Patch Set: Created 3 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) 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 267 matching lines...) Expand 10 before | Expand all | Expand 10 after
278 virtual void loadErrorPage(int reason) {} 278 virtual void loadErrorPage(int reason) {}
279 279
280 // Navigational queries ------------------------------------------------ 280 // Navigational queries ------------------------------------------------
281 281
282 // The client may choose to alter the navigation policy. Otherwise, 282 // The client may choose to alter the navigation policy. Otherwise,
283 // defaultPolicy should just be returned. 283 // defaultPolicy should just be returned.
284 284
285 struct NavigationPolicyInfo { 285 struct NavigationPolicyInfo {
286 WebDataSource::ExtraData* extraData; 286 WebDataSource::ExtraData* extraData;
287 287
288 WebLocalFrame* initiatorFrame;
288 // Note: if browser side navigations are enabled, the client may modify 289 // Note: if browser side navigations are enabled, the client may modify
289 // the urlRequest. However, should this happen, the client should change 290 // the urlRequest. However, should this happen, the client should change
290 // the WebNavigationPolicy to WebNavigationPolicyIgnore, and the load 291 // the WebNavigationPolicy to WebNavigationPolicyIgnore, and the load
291 // should stop in blink. In all other cases, the urlRequest should not 292 // should stop in blink. In all other cases, the urlRequest should not
292 // be modified. 293 // be modified.
293 WebURLRequest& urlRequest; 294 WebURLRequest& urlRequest;
294 WebNavigationType navigationType; 295 WebNavigationType navigationType;
295 WebNavigationPolicy defaultPolicy; 296 WebNavigationPolicy defaultPolicy;
296 bool replacesCurrentHistoryItem; 297 bool replacesCurrentHistoryItem;
297 bool isHistoryNavigationInNewChildFrame; 298 bool isHistoryNavigationInNewChildFrame;
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
342 virtual void willSendSubmitEvent(const WebFormElement&) {} 343 virtual void willSendSubmitEvent(const WebFormElement&) {}
343 344
344 // A form submission is about to occur. 345 // A form submission is about to occur.
345 virtual void willSubmitForm(const WebFormElement&) {} 346 virtual void willSubmitForm(const WebFormElement&) {}
346 347
347 // A datasource has been created for a new navigation. The given 348 // A datasource has been created for a new navigation. The given
348 // datasource will become the provisional datasource for the frame. 349 // datasource will become the provisional datasource for the frame.
349 virtual void didCreateDataSource(WebLocalFrame*, WebDataSource*) {} 350 virtual void didCreateDataSource(WebLocalFrame*, WebDataSource*) {}
350 351
351 // A new provisional load has been started. 352 // A new provisional load has been started.
352 virtual void didStartProvisionalLoad(WebDataSource* dataSource, 353 virtual void didStartProvisionalLoad(WebLocalFrame* initiatorFrame,
354 WebDataSource* dataSource,
353 WebURLRequest& request) {} 355 WebURLRequest& request) {}
354 356
355 // The provisional load was redirected via a HTTP 3xx response. 357 // The provisional load was redirected via a HTTP 3xx response.
356 virtual void didReceiveServerRedirectForProvisionalLoad(WebLocalFrame*) {} 358 virtual void didReceiveServerRedirectForProvisionalLoad(WebLocalFrame*) {}
357 359
358 // The provisional load failed. The WebHistoryCommitType is the commit type 360 // The provisional load failed. The WebHistoryCommitType is the commit type
359 // that would have been used had the load succeeded. 361 // that would have been used had the load succeeded.
360 virtual void didFailProvisionalLoad(WebLocalFrame*, 362 virtual void didFailProvisionalLoad(WebLocalFrame*,
361 const WebURLError&, 363 const WebURLError&,
362 WebHistoryCommitType) {} 364 WebHistoryCommitType) {}
(...skipping 396 matching lines...) Expand 10 before | Expand all | Expand 10 after
759 // Overwrites the given URL to use an HTML5 embed if possible. 761 // Overwrites the given URL to use an HTML5 embed if possible.
760 // An empty URL is returned if the URL is not overriden. 762 // An empty URL is returned if the URL is not overriden.
761 virtual WebURL overrideFlashEmbedWithHTML(const WebURL& url) { 763 virtual WebURL overrideFlashEmbedWithHTML(const WebURL& url) {
762 return WebURL(); 764 return WebURL();
763 } 765 }
764 }; 766 };
765 767
766 } // namespace blink 768 } // namespace blink
767 769
768 #endif 770 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/web/tests/WebFrameTest.cpp ('k') | third_party/WebKit/public/web/WebRemoteFrameClient.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698