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

Side by Side Diff: third_party/WebKit/Source/core/frame/LocalFrame.h

Issue 2398733004: Do not SendPasswordForms when LocalFrame is being detached (Closed)
Patch Set: isInStopAllLoaders -> isDetached Created 4 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 1998, 1999 Torben Weis <weis@kde.org> 2 * Copyright (C) 1998, 1999 Torben Weis <weis@kde.org>
3 * 1999-2001 Lars Knoll <knoll@kde.org> 3 * 1999-2001 Lars Knoll <knoll@kde.org>
4 * 1999-2001 Antti Koivisto <koivisto@kde.org> 4 * 1999-2001 Antti Koivisto <koivisto@kde.org>
5 * 2000-2001 Simon Hausmann <hausmann@kde.org> 5 * 2000-2001 Simon Hausmann <hausmann@kde.org>
6 * 2000-2001 Dirk Mueller <mueller@kde.org> 6 * 2000-2001 Dirk Mueller <mueller@kde.org>
7 * 2000 Stefan Schimanski <1Stein@gmx.de> 7 * 2000 Stefan Schimanski <1Stein@gmx.de>
8 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights 8 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights
9 * reserved. 9 * reserved.
10 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) 10 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies)
(...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after
211 void scheduleVisualUpdateUnlessThrottled(); 211 void scheduleVisualUpdateUnlessThrottled();
212 212
213 bool isNavigationAllowed() const { return m_navigationDisableCount == 0; } 213 bool isNavigationAllowed() const { return m_navigationDisableCount == 0; }
214 214
215 InterfaceProvider* interfaceProvider() { return m_interfaceProvider; } 215 InterfaceProvider* interfaceProvider() { return m_interfaceProvider; }
216 216
217 FrameLoaderClient* client() const; 217 FrameLoaderClient* client() const;
218 218
219 PluginData* pluginData() const; 219 PluginData* pluginData() const;
220 220
221 bool isDetached() const { return m_detached; }
222
221 private: 223 private:
222 friend class FrameNavigationDisabler; 224 friend class FrameNavigationDisabler;
223 225
224 LocalFrame(FrameLoaderClient*, FrameHost*, FrameOwner*, InterfaceProvider*); 226 LocalFrame(FrameLoaderClient*, FrameHost*, FrameOwner*, InterfaceProvider*);
225 227
226 // Internal Frame helper overrides: 228 // Internal Frame helper overrides:
227 WindowProxyManager* getWindowProxyManager() const override; 229 WindowProxyManager* getWindowProxyManager() const override;
228 // Intentionally private to prevent redundant checks when the type is 230 // Intentionally private to prevent redundant checks when the type is
229 // already LocalFrame. 231 // already LocalFrame.
230 bool isLocalFrame() const override { return true; } 232 bool isLocalFrame() const override { return true; }
(...skipping 19 matching lines...) Expand all
250 const Member<EventHandler> m_eventHandler; 252 const Member<EventHandler> m_eventHandler;
251 const Member<FrameConsole> m_console; 253 const Member<FrameConsole> m_console;
252 const Member<InputMethodController> m_inputMethodController; 254 const Member<InputMethodController> m_inputMethodController;
253 255
254 int m_navigationDisableCount; 256 int m_navigationDisableCount;
255 257
256 float m_pageZoomFactor; 258 float m_pageZoomFactor;
257 float m_textZoomFactor; 259 float m_textZoomFactor;
258 260
259 bool m_inViewSourceMode; 261 bool m_inViewSourceMode;
262 bool m_detached = false;
260 263
261 Member<InstrumentingAgents> m_instrumentingAgents; 264 Member<InstrumentingAgents> m_instrumentingAgents;
262 265
263 InterfaceProvider* const m_interfaceProvider; 266 InterfaceProvider* const m_interfaceProvider;
264 }; 267 };
265 268
266 inline void LocalFrame::init() { 269 inline void LocalFrame::init() {
267 m_loader.init(); 270 m_loader.init();
268 } 271 }
269 272
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
363 explicit ScopedFrameBlamer(LocalFrame*); 366 explicit ScopedFrameBlamer(LocalFrame*);
364 ~ScopedFrameBlamer(); 367 ~ScopedFrameBlamer();
365 368
366 private: 369 private:
367 Member<LocalFrame> m_frame; 370 Member<LocalFrame> m_frame;
368 }; 371 };
369 372
370 } // namespace blink 373 } // namespace blink
371 374
372 #endif // LocalFrame_h 375 #endif // LocalFrame_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698