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

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

Issue 23506013: Make the embedder responsible for creating the WebFrame (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fix lifetime on frame detach Created 7 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
« no previous file with comments | « Source/web/WebFrameImpl.cpp ('k') | Source/web/WebHelperPluginImpl.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) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 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 25 matching lines...) Expand all
36 #include "wtf/RefCounted.h" 36 #include "wtf/RefCounted.h"
37 37
38 namespace WebCore { 38 namespace WebCore {
39 class Page; 39 class Page;
40 } 40 }
41 41
42 namespace WebKit { 42 namespace WebKit {
43 43
44 class HelperPluginChromeClient; 44 class HelperPluginChromeClient;
45 class WebDocument; 45 class WebDocument;
46 class WebFrame; 46 class WebFrameImpl;
47 class WebViewImpl; 47 class WebViewImpl;
48 class WebWidgetClient; 48 class WebWidgetClient;
49 49
50 // Hosts a simple page that instantiates a plugin using an <object> tag. 50 // Hosts a simple page that instantiates a plugin using an <object> tag.
51 // The widget is offscreen, and the plugin will not receive painting, resize, et c. events. 51 // The widget is offscreen, and the plugin will not receive painting, resize, et c. events.
52 class WebHelperPluginImpl : public WebHelperPlugin, 52 class WebHelperPluginImpl : public WebHelperPlugin,
53 public RefCounted<WebHelperPluginImpl> { 53 public RefCounted<WebHelperPluginImpl> {
54 WTF_MAKE_NONCOPYABLE(WebHelperPluginImpl); 54 WTF_MAKE_NONCOPYABLE(WebHelperPluginImpl);
55 WTF_MAKE_FAST_ALLOCATED; 55 WTF_MAKE_FAST_ALLOCATED;
56 56
(...skipping 11 matching lines...) Expand all
68 bool initializePage(const String& pluginType, const WebDocument& hostDocumen t); 68 bool initializePage(const String& pluginType, const WebDocument& hostDocumen t);
69 void destroyPage(); 69 void destroyPage();
70 70
71 // WebWidget methods: 71 // WebWidget methods:
72 virtual void layout() OVERRIDE; 72 virtual void layout() OVERRIDE;
73 virtual void setFocus(bool) OVERRIDE; 73 virtual void setFocus(bool) OVERRIDE;
74 virtual void close() OVERRIDE; 74 virtual void close() OVERRIDE;
75 75
76 WebWidgetClient* m_widgetClient; 76 WebWidgetClient* m_widgetClient;
77 WebViewImpl* m_webView; 77 WebViewImpl* m_webView;
78 WebFrameImpl* m_mainFrame;
78 OwnPtr<WebCore::Page> m_page; 79 OwnPtr<WebCore::Page> m_page;
79 OwnPtr<HelperPluginChromeClient> m_chromeClient; 80 OwnPtr<HelperPluginChromeClient> m_chromeClient;
80 81
81 friend class WebHelperPlugin; 82 friend class WebHelperPlugin;
82 friend class HelperPluginChromeClient; 83 friend class HelperPluginChromeClient;
83 }; 84 };
84 85
85 } // namespace WebKit 86 } // namespace WebKit
86 87
87 #endif // WebHelperPluginImpl_h 88 #endif // WebHelperPluginImpl_h
OLDNEW
« no previous file with comments | « Source/web/WebFrameImpl.cpp ('k') | Source/web/WebHelperPluginImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698