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

Side by Side Diff: third_party/WebKit/Source/web/WebLocalFrameImpl.h

Issue 1686483002: Oilpan: Remove most WillBe types from the code base (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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) 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 250 matching lines...) Expand 10 before | Expand all | Expand 10 after
261 void initializeCoreFrame(FrameHost*, FrameOwner*, const AtomicString& name, const AtomicString& fallbackName) override; 261 void initializeCoreFrame(FrameHost*, FrameOwner*, const AtomicString& name, const AtomicString& fallbackName) override;
262 LocalFrame* frame() const override { return m_frame.get(); } 262 LocalFrame* frame() const override { return m_frame.get(); }
263 263
264 void willBeDetached(); 264 void willBeDetached();
265 void willDetachParent(); 265 void willDetachParent();
266 266
267 static WebLocalFrameImpl* create(WebTreeScopeType, WebFrameClient*); 267 static WebLocalFrameImpl* create(WebTreeScopeType, WebFrameClient*);
268 static WebLocalFrameImpl* createProvisional(WebFrameClient*, WebRemoteFrame* , WebSandboxFlags, const WebFrameOwnerProperties&); 268 static WebLocalFrameImpl* createProvisional(WebFrameClient*, WebRemoteFrame* , WebSandboxFlags, const WebFrameOwnerProperties&);
269 ~WebLocalFrameImpl() override; 269 ~WebLocalFrameImpl() override;
270 270
271 PassRefPtrWillBeRawPtr<LocalFrame> createChildFrame(const FrameLoadRequest&, const AtomicString& name, HTMLFrameOwnerElement*); 271 RawPtr<LocalFrame> createChildFrame(const FrameLoadRequest&, const AtomicStr ing& name, HTMLFrameOwnerElement*);
272 272
273 void didChangeContentsSize(const IntSize&); 273 void didChangeContentsSize(const IntSize&);
274 274
275 void createFrameView(); 275 void createFrameView();
276 276
277 static WebLocalFrameImpl* fromFrame(LocalFrame*); 277 static WebLocalFrameImpl* fromFrame(LocalFrame*);
278 static WebLocalFrameImpl* fromFrame(LocalFrame&); 278 static WebLocalFrameImpl* fromFrame(LocalFrame&);
279 static WebLocalFrameImpl* fromFrameOwnerElement(Element*); 279 static WebLocalFrameImpl* fromFrameOwnerElement(Element*);
280 280
281 // If the frame hosts a PluginDocument, this method returns the WebPluginCon tainerImpl 281 // If the frame hosts a PluginDocument, this method returns the WebPluginCon tainerImpl
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
351 DECLARE_TRACE(); 351 DECLARE_TRACE();
352 #endif 352 #endif
353 353
354 private: 354 private:
355 friend class FrameLoaderClientImpl; 355 friend class FrameLoaderClientImpl;
356 356
357 WebLocalFrameImpl(WebTreeScopeType, WebFrameClient*); 357 WebLocalFrameImpl(WebTreeScopeType, WebFrameClient*);
358 WebLocalFrameImpl(WebRemoteFrame*, WebFrameClient*); 358 WebLocalFrameImpl(WebRemoteFrame*, WebFrameClient*);
359 359
360 // Sets the local core frame and registers destruction observers. 360 // Sets the local core frame and registers destruction observers.
361 void setCoreFrame(PassRefPtrWillBeRawPtr<LocalFrame>); 361 void setCoreFrame(RawPtr<LocalFrame>);
362 362
363 void loadJavaScriptURL(const KURL&); 363 void loadJavaScriptURL(const KURL&);
364 364
365 WebPlugin* focusedPluginIfInputMethodSupported(); 365 WebPlugin* focusedPluginIfInputMethodSupported();
366 ScrollableArea* layoutViewportScrollableArea() const; 366 ScrollableArea* layoutViewportScrollableArea() const;
367 367
368 OwnPtrWillBeMember<FrameLoaderClientImpl> m_frameLoaderClientImpl; 368 Member<FrameLoaderClientImpl> m_frameLoaderClientImpl;
369 369
370 // The embedder retains a reference to the WebCore LocalFrame while it is ac tive in the DOM. This 370 // The embedder retains a reference to the WebCore LocalFrame while it is ac tive in the DOM. This
371 // reference is released when the frame is removed from the DOM or the entir e page is closed. 371 // reference is released when the frame is removed from the DOM or the entir e page is closed.
372 // FIXME: These will need to change to WebFrame when we introduce WebFramePr oxy. 372 // FIXME: These will need to change to WebFrame when we introduce WebFramePr oxy.
373 RefPtrWillBeMember<LocalFrame> m_frame; 373 Member<LocalFrame> m_frame;
374 374
375 OwnPtrWillBeMember<WebDevToolsAgentImpl> m_devToolsAgent; 375 Member<WebDevToolsAgentImpl> m_devToolsAgent;
376 376
377 // This is set if the frame is the root of a local frame tree, and requires a widget for layout. 377 // This is set if the frame is the root of a local frame tree, and requires a widget for layout.
378 WebFrameWidget* m_frameWidget; 378 WebFrameWidget* m_frameWidget;
379 379
380 WebFrameClient* m_client; 380 WebFrameClient* m_client;
381 WebAutofillClient* m_autofillClient; 381 WebAutofillClient* m_autofillClient;
382 WebContentSettingsClient* m_contentSettingsClient; 382 WebContentSettingsClient* m_contentSettingsClient;
383 OwnPtr<SharedWorkerRepositoryClientImpl> m_sharedWorkerRepositoryClient; 383 OwnPtr<SharedWorkerRepositoryClientImpl> m_sharedWorkerRepositoryClient;
384 384
385 // Will be initialized after first call to find() or scopeStringMatches(). 385 // Will be initialized after first call to find() or scopeStringMatches().
386 OwnPtrWillBeMember<TextFinder> m_textFinder; 386 Member<TextFinder> m_textFinder;
387 387
388 // Valid between calls to BeginPrint() and EndPrint(). Containts the print 388 // Valid between calls to BeginPrint() and EndPrint(). Containts the print
389 // information. Is used by PrintPage(). 389 // information. Is used by PrintPage().
390 OwnPtrWillBeMember<ChromePrintContext> m_printContext; 390 Member<ChromePrintContext> m_printContext;
391 391
392 // Stores the additional input events offset and scale when device metrics e mulation is enabled. 392 // Stores the additional input events offset and scale when device metrics e mulation is enabled.
393 IntSize m_inputEventsOffsetForEmulation; 393 IntSize m_inputEventsOffsetForEmulation;
394 float m_inputEventsScaleFactorForEmulation; 394 float m_inputEventsScaleFactorForEmulation;
395 395
396 UserMediaClientImpl m_userMediaClientImpl; 396 UserMediaClientImpl m_userMediaClientImpl;
397 397
398 OwnPtrWillBeMember<GeolocationClientProxy> m_geolocationClientProxy; 398 Member<GeolocationClientProxy> m_geolocationClientProxy;
399 399
400 WebDevToolsFrontendImpl* m_webDevToolsFrontend; 400 WebDevToolsFrontendImpl* m_webDevToolsFrontend;
401 401
402 HashMap<AtomicString, OwnPtr<WebTestInterfaceFactory>> m_testInterfaces; 402 HashMap<AtomicString, OwnPtr<WebTestInterfaceFactory>> m_testInterfaces;
403 403
404 #if ENABLE(OILPAN) 404 #if ENABLE(OILPAN)
405 // Oilpan: WebLocalFrameImpl must remain alive until close() is called. 405 // Oilpan: WebLocalFrameImpl must remain alive until close() is called.
406 // Accomplish that by keeping a self-referential Persistent<>. It is 406 // Accomplish that by keeping a self-referential Persistent<>. It is
407 // cleared upon close(). 407 // cleared upon close().
408 SelfKeepAlive<WebLocalFrameImpl> m_selfKeepAlive; 408 SelfKeepAlive<WebLocalFrameImpl> m_selfKeepAlive;
409 #endif 409 #endif
410 }; 410 };
411 411
412 DEFINE_TYPE_CASTS(WebLocalFrameImpl, WebFrame, frame, frame->isWebLocalFrame(), frame.isWebLocalFrame()); 412 DEFINE_TYPE_CASTS(WebLocalFrameImpl, WebFrame, frame, frame->isWebLocalFrame(), frame.isWebLocalFrame());
413 413
414 } // namespace blink 414 } // namespace blink
415 415
416 #endif 416 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698