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

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

Issue 263883004: NotificationController handles an ownership of NotificaitonClient (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 7 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 308 matching lines...) Expand 10 before | Expand all | Expand 10 after
319 // Sets the local WebCore frame and registers destruction observers. 319 // Sets the local WebCore frame and registers destruction observers.
320 void setWebCoreFrame(PassRefPtr<WebCore::LocalFrame>); 320 void setWebCoreFrame(PassRefPtr<WebCore::LocalFrame>);
321 321
322 void loadJavaScriptURL(const WebCore::KURL&); 322 void loadJavaScriptURL(const WebCore::KURL&);
323 323
324 // Returns a hit-tested VisiblePosition for the given point 324 // Returns a hit-tested VisiblePosition for the given point
325 WebCore::VisiblePosition visiblePositionForWindowPoint(const WebPoint&); 325 WebCore::VisiblePosition visiblePositionForWindowPoint(const WebPoint&);
326 326
327 WebPlugin* focusedPluginIfInputMethodSupported(); 327 WebPlugin* focusedPluginIfInputMethodSupported();
328 328
329 // Returns the provider of desktop notifications.
330 NotificationPresenterImpl* notificationPresenterImpl();
331
332 FrameLoaderClientImpl m_frameLoaderClientImpl; 329 FrameLoaderClientImpl m_frameLoaderClientImpl;
333 330
334 // The embedder retains a reference to the WebCore LocalFrame while it is ac tive in the DOM. This 331 // The embedder retains a reference to the WebCore LocalFrame while it is ac tive in the DOM. This
335 // reference is released when the frame is removed from the DOM or the entir e page is closed. 332 // reference is released when the frame is removed from the DOM or the entir e page is closed.
336 // FIXME: These will need to change to WebFrame when we introduce WebFramePr oxy. 333 // FIXME: These will need to change to WebFrame when we introduce WebFramePr oxy.
337 RefPtr<WebCore::LocalFrame> m_frame; 334 RefPtr<WebCore::LocalFrame> m_frame;
338 335
339 // Indicate whether the current LocalFrame is local or remote. Remote frames are 336 // Indicate whether the current LocalFrame is local or remote. Remote frames are
340 // rendered in a different process from their parent frames. 337 // rendered in a different process from their parent frames.
341 bool m_isRemote; 338 bool m_isRemote;
342 339
343 WebFrameClient* m_client; 340 WebFrameClient* m_client;
344 WebPermissionClient* m_permissionClient; 341 WebPermissionClient* m_permissionClient;
345 OwnPtr<SharedWorkerRepositoryClientImpl> m_sharedWorkerRepositoryClient; 342 OwnPtr<SharedWorkerRepositoryClientImpl> m_sharedWorkerRepositoryClient;
346 343
347 // Will be initialized after first call to find() or scopeStringMatches(). 344 // Will be initialized after first call to find() or scopeStringMatches().
348 OwnPtr<TextFinder> m_textFinder; 345 OwnPtr<TextFinder> m_textFinder;
349 346
350 // Valid between calls to BeginPrint() and EndPrint(). Containts the print 347 // Valid between calls to BeginPrint() and EndPrint(). Containts the print
351 // information. Is used by PrintPage(). 348 // information. Is used by PrintPage().
352 OwnPtr<ChromePrintContext> m_printContext; 349 OwnPtr<ChromePrintContext> m_printContext;
353 350
354 // Stores the additional input events offset and scale when device metrics e mulation is enabled. 351 // Stores the additional input events offset and scale when device metrics e mulation is enabled.
355 WebCore::IntSize m_inputEventsOffsetForEmulation; 352 WebCore::IntSize m_inputEventsOffsetForEmulation;
356 float m_inputEventsScaleFactorForEmulation; 353 float m_inputEventsScaleFactorForEmulation;
357 354
358 // The provider of desktop notifications;
359 NotificationPresenterImpl m_notificationPresenter;
360
361 UserMediaClientImpl m_userMediaClientImpl; 355 UserMediaClientImpl m_userMediaClientImpl;
362 }; 356 };
363 357
364 DEFINE_TYPE_CASTS(WebLocalFrameImpl, WebFrame, frame, frame->isWebLocalFrame(), frame.isWebLocalFrame()); 358 DEFINE_TYPE_CASTS(WebLocalFrameImpl, WebFrame, frame, frame->isWebLocalFrame(), frame.isWebLocalFrame());
365 359
366 } // namespace blink 360 } // namespace blink
367 361
368 #endif 362 #endif
OLDNEW
« no previous file with comments | « Source/modules/notifications/NotificationController.cpp ('k') | Source/web/WebLocalFrameImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698