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

Side by Side Diff: Source/core/frame/DOMWindow.h

Issue 38143002: Have LifecycleContext::lifecycleNotifier() return a reference (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase Created 7 years, 2 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 | « Source/core/dom/ExecutionContext.cpp ('k') | Source/core/frame/DOMWindow.cpp » ('j') | 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) 2006, 2007, 2009, 2010 Apple Inc. All rights reserved. 2 * Copyright (C) 2006, 2007, 2009, 2010 Apple Inc. All rights reserved.
3 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) 3 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies)
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 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. 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 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 364 matching lines...) Expand 10 before | Expand all | Expand 10 after
375 // frame), we would like to zero out m_frame to avoid being confused 375 // frame), we would like to zero out m_frame to avoid being confused
376 // by the document that is currently active in m_frame. 376 // by the document that is currently active in m_frame.
377 bool isCurrentlyDisplayedInFrame() const; 377 bool isCurrentlyDisplayedInFrame() const;
378 378
379 void willDetachDocumentFromFrame(); 379 void willDetachDocumentFromFrame();
380 DOMWindow* anonymousIndexedGetter(uint32_t); 380 DOMWindow* anonymousIndexedGetter(uint32_t);
381 381
382 bool isInsecureScriptAccess(DOMWindow* activeWindow, const String& urlSt ring); 382 bool isInsecureScriptAccess(DOMWindow* activeWindow, const String& urlSt ring);
383 383
384 protected: 384 protected:
385 DOMWindowLifecycleNotifier* lifecycleNotifier(); 385 DOMWindowLifecycleNotifier& lifecycleNotifier();
386 386
387 private: 387 private:
388 explicit DOMWindow(Frame*); 388 explicit DOMWindow(Frame*);
389 389
390 Page* page(); 390 Page* page();
391 391
392 virtual PassOwnPtr<LifecycleNotifier<DOMWindow> > createLifecycleNotifie r() OVERRIDE; 392 virtual PassOwnPtr<LifecycleNotifier<DOMWindow> > createLifecycleNotifie r() OVERRIDE;
393 393
394 virtual void frameDestroyed() OVERRIDE; 394 virtual void frameDestroyed() OVERRIDE;
395 virtual void willDetachPage() OVERRIDE; 395 virtual void willDetachPage() OVERRIDE;
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
435 } 435 }
436 436
437 inline String DOMWindow::defaultStatus() const 437 inline String DOMWindow::defaultStatus() const
438 { 438 {
439 return m_defaultStatus; 439 return m_defaultStatus;
440 } 440 }
441 441
442 } // namespace WebCore 442 } // namespace WebCore
443 443
444 #endif // DOMWindow_h 444 #endif // DOMWindow_h
OLDNEW
« no previous file with comments | « Source/core/dom/ExecutionContext.cpp ('k') | Source/core/frame/DOMWindow.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698