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

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

Issue 23671002: Refactoring: Add toWebFrameImpl() interface. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Corrected as per review commments. Created 7 years, 3 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/web/WebDOMMessageEvent.cpp ('k') | Source/web/WebFrameImpl.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) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 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 481 matching lines...) Expand 10 before | Expand all | Expand 10 after
492 OwnPtr<ChromePrintContext> m_printContext; 492 OwnPtr<ChromePrintContext> m_printContext;
493 493
494 // The identifier of this frame. 494 // The identifier of this frame.
495 long long m_identifier; 495 long long m_identifier;
496 496
497 // Ensure we don't overwrite valid history data during same document loads 497 // Ensure we don't overwrite valid history data during same document loads
498 // from HistoryItems 498 // from HistoryItems
499 bool m_inSameDocumentHistoryLoad; 499 bool m_inSameDocumentHistoryLoad;
500 }; 500 };
501 501
502 inline WebFrameImpl* toWebFrameImpl(WebFrame* webFrame)
503 {
504 return static_cast<WebFrameImpl*>(webFrame);
505 }
506
507 inline const WebFrameImpl* toWebFrameImpl(const WebFrame* webFrame)
508 {
509 return static_cast<const WebFrameImpl*>(webFrame);
510 }
511
512 // This will catch anyone doing an unnecessary cast.
513 void toWebFrameImpl(const WebFrameImpl*);
514
502 } // namespace WebKit 515 } // namespace WebKit
503 516
504 #endif 517 #endif
OLDNEW
« no previous file with comments | « Source/web/WebDOMMessageEvent.cpp ('k') | Source/web/WebFrameImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698