Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 /* | 1 /* |
| 2 * Copyright (C) 1998, 1999 Torben Weis <weis@kde.org> | 2 * Copyright (C) 1998, 1999 Torben Weis <weis@kde.org> |
| 3 * 1999 Lars Knoll <knoll@kde.org> | 3 * 1999 Lars Knoll <knoll@kde.org> |
| 4 * 1999 Antti Koivisto <koivisto@kde.org> | 4 * 1999 Antti Koivisto <koivisto@kde.org> |
| 5 * 2000 Simon Hausmann <hausmann@kde.org> | 5 * 2000 Simon Hausmann <hausmann@kde.org> |
| 6 * 2000 Stefan Schimanski <1Stein@gmx.de> | 6 * 2000 Stefan Schimanski <1Stein@gmx.de> |
| 7 * 2001 George Staikos <staikos@kde.org> | 7 * 2001 George Staikos <staikos@kde.org> |
| 8 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All r ights reserved. | 8 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All r ights reserved. |
| 9 * Copyright (C) 2005 Alexey Proskuryakov <ap@nypop.com> | 9 * Copyright (C) 2005 Alexey Proskuryakov <ap@nypop.com> |
| 10 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) | 10 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) |
| (...skipping 892 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 903 void LocalFrame::updateFrameSecurityOrigin() | 903 void LocalFrame::updateFrameSecurityOrigin() |
| 904 { | 904 { |
| 905 SecurityContext* context = securityContext(); | 905 SecurityContext* context = securityContext(); |
| 906 if (!context) | 906 if (!context) |
| 907 return; | 907 return; |
| 908 | 908 |
| 909 WebSecurityOrigin securityOrigin(context->securityOrigin()); | 909 WebSecurityOrigin securityOrigin(context->securityOrigin()); |
| 910 frameScheduler()->setFrameOrigin(&securityOrigin); | 910 frameScheduler()->setFrameOrigin(&securityOrigin); |
| 911 } | 911 } |
| 912 | 912 |
| 913 void LocalFrame::compressStrings() | |
| 914 { | |
| 915 V8PerIsolateData* perIsolateData = V8PerIsolateData::from(script().isolate() ); | |
| 916 perIsolateData->compressStrings(); | |
| 917 // TODO: See children frames? | |
|
haraken
2015/11/24 11:15:42
No. V8PerIsolateData is per-thread, not per-frame.
hajimehoshi
2015/11/26 10:49:13
I've changed to call CompressibleStringImpl::purge
| |
| 918 } | |
| 919 | |
| 913 DEFINE_WEAK_IDENTIFIER_MAP(LocalFrame); | 920 DEFINE_WEAK_IDENTIFIER_MAP(LocalFrame); |
| 914 | 921 |
| 915 FrameNavigationDisabler::FrameNavigationDisabler(LocalFrame& frame) | 922 FrameNavigationDisabler::FrameNavigationDisabler(LocalFrame& frame) |
| 916 : m_frame(&frame) | 923 : m_frame(&frame) |
| 917 { | 924 { |
| 918 m_frame->disableNavigation(); | 925 m_frame->disableNavigation(); |
| 919 } | 926 } |
| 920 | 927 |
| 921 FrameNavigationDisabler::~FrameNavigationDisabler() | 928 FrameNavigationDisabler::~FrameNavigationDisabler() |
| 922 { | 929 { |
| 923 m_frame->enableNavigation(); | 930 m_frame->enableNavigation(); |
| 924 } | 931 } |
| 925 | 932 |
| 926 } // namespace blink | 933 } // namespace blink |
| OLD | NEW |