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

Side by Side Diff: Source/core/loader/FrameLoaderClient.h

Issue 23618022: BrowserPlugin/WebView - Move plugin lifetime to DOM (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Address comments. Created 6 years, 12 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 | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc. All rights reserved. 2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc. All rights reserved.
3 * Copyright (C) 2012 Google Inc. All rights reserved. 3 * Copyright (C) 2012 Google Inc. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 8 *
9 * 1. Redistributions of source code must retain the above copyright 9 * 1. Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 class RTCPeerConnectionHandler; 79 class RTCPeerConnectionHandler;
80 class SecurityOrigin; 80 class SecurityOrigin;
81 class SharedBuffer; 81 class SharedBuffer;
82 class SharedWorkerRepositoryClient; 82 class SharedWorkerRepositoryClient;
83 class SocketStreamHandle; 83 class SocketStreamHandle;
84 class SubstituteData; 84 class SubstituteData;
85 class Widget; 85 class Widget;
86 86
87 class FrameLoaderClient { 87 class FrameLoaderClient {
88 public: 88 public:
89 enum PluginLoadType { PluginLoadRequiresRenderer, PluginLoadWithoutRende rer};
89 virtual ~FrameLoaderClient() { } 90 virtual ~FrameLoaderClient() { }
90 91
91 virtual void frameLoaderDestroyed() = 0; 92 virtual void frameLoaderDestroyed() = 0;
92 93
93 virtual bool hasWebView() const = 0; // mainly for assertions 94 virtual bool hasWebView() const = 0; // mainly for assertions
94 95
95 virtual void detachedFromParent() = 0; 96 virtual void detachedFromParent() = 0;
96 97
97 virtual void dispatchWillRequestAfterPreconnect(ResourceRequest&) { } 98 virtual void dispatchWillRequestAfterPreconnect(ResourceRequest&) { }
98 virtual void dispatchWillSendRequest(DocumentLoader*, unsigned long iden tifier, ResourceRequest&, const ResourceResponse& redirectResponse) = 0; 99 virtual void dispatchWillSendRequest(DocumentLoader*, unsigned long iden tifier, ResourceRequest&, const ResourceResponse& redirectResponse) = 0;
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
157 158
158 virtual PassRefPtr<DocumentLoader> createDocumentLoader(const ResourceRe quest&, const SubstituteData&) = 0; 159 virtual PassRefPtr<DocumentLoader> createDocumentLoader(const ResourceRe quest&, const SubstituteData&) = 0;
159 160
160 virtual String userAgent(const KURL&) = 0; 161 virtual String userAgent(const KURL&) = 0;
161 162
162 virtual String doNotTrackValue() = 0; 163 virtual String doNotTrackValue() = 0;
163 164
164 virtual void transitionToCommittedForNewPage() = 0; 165 virtual void transitionToCommittedForNewPage() = 0;
165 166
166 virtual PassRefPtr<Frame> createFrame(const KURL&, const String& name, c onst String& referrer, HTMLFrameOwnerElement*) = 0; 167 virtual PassRefPtr<Frame> createFrame(const KURL&, const String& name, c onst String& referrer, HTMLFrameOwnerElement*) = 0;
167 virtual PassRefPtr<Widget> createPlugin(const IntSize&, HTMLPlugInElemen t*, const KURL&, const Vector<String>&, const Vector<String>&, const String&, bo ol loadManually) = 0; 168 virtual bool canCreatePluginWithoutRenderer(const String& mimeType) cons t = 0;
169 virtual PassRefPtr<Widget> createPlugin(const IntSize&, HTMLPlugInElemen t*, const KURL&, const Vector<String>&, const Vector<String>&, const String&, bo ol loadManually, PluginLoadType = PluginLoadRequiresRenderer) = 0;
168 170
169 virtual PassRefPtr<Widget> createJavaAppletWidget(const IntSize&, HTMLAp pletElement*, const KURL& baseURL, const Vector<String>& paramNames, const Vecto r<String>& paramValues) = 0; 171 virtual PassRefPtr<Widget> createJavaAppletWidget(const IntSize&, HTMLAp pletElement*, const KURL& baseURL, const Vector<String>& paramNames, const Vecto r<String>& paramValues) = 0;
170 172
171 virtual ObjectContentType objectContentType(const KURL&, const String& m imeType, bool shouldPreferPlugInsForImages) = 0; 173 virtual ObjectContentType objectContentType(const KURL&, const String& m imeType, bool shouldPreferPlugInsForImages) = 0;
172 174
173 virtual void dispatchDidClearWindowObjectInWorld(DOMWrapperWorld*) = 0; 175 virtual void dispatchDidClearWindowObjectInWorld(DOMWrapperWorld*) = 0;
174 virtual void documentElementAvailable() = 0; 176 virtual void documentElementAvailable() = 0;
175 177
176 virtual void didExhaustMemoryAvailableForScript() { }; 178 virtual void didExhaustMemoryAvailableForScript() { };
177 179
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
228 virtual SharedWorkerRepositoryClient* sharedWorkerRepositoryClient() { r eturn 0; } 230 virtual SharedWorkerRepositoryClient* sharedWorkerRepositoryClient() { r eturn 0; }
229 231
230 virtual void didStopAllLoaders() { } 232 virtual void didStopAllLoaders() { }
231 233
232 virtual bool isFrameLoaderClientImpl() const { return false; } 234 virtual bool isFrameLoaderClientImpl() const { return false; }
233 }; 235 };
234 236
235 } // namespace WebCore 237 } // namespace WebCore
236 238
237 #endif // FrameLoaderClient_h 239 #endif // FrameLoaderClient_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698