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

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

Issue 1642283002: Deal with frame removal by content scripts (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Last nits Created 4 years, 9 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 | « third_party/WebKit/Source/web/FrameLoaderClientImpl.cpp ('k') | 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 280 matching lines...) Expand 10 before | Expand all | Expand 10 after
291 291
292 // The frame's document has just been initialized. 292 // The frame's document has just been initialized.
293 virtual void didCreateNewDocument(WebLocalFrame* frame) { } 293 virtual void didCreateNewDocument(WebLocalFrame* frame) { }
294 294
295 // The window object for the frame has been cleared of any extra 295 // The window object for the frame has been cleared of any extra
296 // properties that may have been set by script from the previously 296 // properties that may have been set by script from the previously
297 // loaded document. 297 // loaded document.
298 virtual void didClearWindowObject(WebLocalFrame* frame) { } 298 virtual void didClearWindowObject(WebLocalFrame* frame) { }
299 299
300 // The document element has been created. 300 // The document element has been created.
301 // This method may not invalidate the frame, nor execute JavaScript code.
301 virtual void didCreateDocumentElement(WebLocalFrame*) { } 302 virtual void didCreateDocumentElement(WebLocalFrame*) { }
302 303
304 // Like |didCreateDocumentElement|, except this method may run JavaScript
305 // code (and possibly invalidate the frame).
306 virtual void runScriptsAtDocumentElementAvailable(WebLocalFrame*) { }
307
303 // The page title is available. 308 // The page title is available.
304 virtual void didReceiveTitle(WebLocalFrame* frame, const WebString& title, W ebTextDirection direction) { } 309 virtual void didReceiveTitle(WebLocalFrame* frame, const WebString& title, W ebTextDirection direction) { }
305 310
306 // The icon for the page have changed. 311 // The icon for the page have changed.
307 virtual void didChangeIcon(WebLocalFrame*, WebIconURL::Type) { } 312 virtual void didChangeIcon(WebLocalFrame*, WebIconURL::Type) { }
308 313
309 // The frame's document finished loading. 314 // The frame's document finished loading.
315 // This method may not execute JavaScript code.
310 virtual void didFinishDocumentLoad(WebLocalFrame*, bool documentIsEmpty) { } 316 virtual void didFinishDocumentLoad(WebLocalFrame*, bool documentIsEmpty) { }
311 317
318 // Like |didFinishDocumentLoad|, except this method may run JavaScript
319 // code (and possibly invalidate the frame).
320 virtual void runScriptsAtDocumentReady(WebLocalFrame*) { }
321
312 // The 'load' event was dispatched. 322 // The 'load' event was dispatched.
313 virtual void didHandleOnloadEvents(WebLocalFrame*) { } 323 virtual void didHandleOnloadEvents(WebLocalFrame*) { }
314 324
315 // The frame's document or one of its subresources failed to load. The 325 // The frame's document or one of its subresources failed to load. The
316 // WebHistoryCommitType is the commit type that would have been used had the 326 // WebHistoryCommitType is the commit type that would have been used had the
317 // load succeeded. 327 // load succeeded.
318 virtual void didFailLoad(WebLocalFrame*, const WebURLError&, WebHistoryCommi tType) { } 328 virtual void didFailLoad(WebLocalFrame*, const WebURLError&, WebHistoryCommi tType) { }
319 329
320 // The frame's document and all of its subresources succeeded to load. 330 // The frame's document and all of its subresources succeeded to load.
321 virtual void didFinishLoad(WebLocalFrame*) { } 331 virtual void didFinishLoad(WebLocalFrame*) { }
(...skipping 380 matching lines...) Expand 10 before | Expand all | Expand 10 after
702 // This method takes ownership of the callbacks pointer. 712 // This method takes ownership of the callbacks pointer.
703 virtual void checkIfAudioSinkExistsAndIsAuthorized(const WebString& sinkId, const WebSecurityOrigin&, WebSetSinkIdCallbacks*) { BLINK_ASSERT_NOT_REACHED(); } 713 virtual void checkIfAudioSinkExistsAndIsAuthorized(const WebString& sinkId, const WebSecurityOrigin&, WebSetSinkIdCallbacks*) { BLINK_ASSERT_NOT_REACHED(); }
704 714
705 protected: 715 protected:
706 virtual ~WebFrameClient() { } 716 virtual ~WebFrameClient() { }
707 }; 717 };
708 718
709 } // namespace blink 719 } // namespace blink
710 720
711 #endif 721 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/web/FrameLoaderClientImpl.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698