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

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

Issue 1055503002: Eliminate MediaPlayer & MediaPlayerClient abstractions (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: address comments Created 5 years, 5 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) 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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 #include <v8.h> 45 #include <v8.h>
46 46
47 namespace blink { 47 namespace blink {
48 48
49 class Document; 49 class Document;
50 class DocumentLoader; 50 class DocumentLoader;
51 class FetchRequest; 51 class FetchRequest;
52 class HTMLAppletElement; 52 class HTMLAppletElement;
53 class HTMLFormElement; 53 class HTMLFormElement;
54 class HTMLFrameOwnerElement; 54 class HTMLFrameOwnerElement;
55 class HTMLMediaElement;
55 class HTMLPlugInElement; 56 class HTMLPlugInElement;
56 class HistoryItem; 57 class HistoryItem;
57 class KURL; 58 class KURL;
58 class LocalFrame; 59 class LocalFrame;
59 class PluginPlaceholder; 60 class PluginPlaceholder;
60 class ResourceError; 61 class ResourceError;
61 class ResourceRequest; 62 class ResourceRequest;
62 class ResourceResponse; 63 class ResourceResponse;
63 class SecurityOrigin; 64 class SecurityOrigin;
64 class SharedWorkerRepositoryClient; 65 class SharedWorkerRepositoryClient;
65 class SubstituteData; 66 class SubstituteData;
66 class WebApplicationCacheHost; 67 class WebApplicationCacheHost;
67 class WebApplicationCacheHostClient; 68 class WebApplicationCacheHostClient;
69 class WebMediaPlayer;
68 class WebCookieJar; 70 class WebCookieJar;
69 class WebRTCPeerConnectionHandler; 71 class WebRTCPeerConnectionHandler;
70 class WebServiceWorkerProvider; 72 class WebServiceWorkerProvider;
71 class WebSocketHandle; 73 class WebSocketHandle;
72 class Widget; 74 class Widget;
73 75
74 class CORE_EXPORT FrameLoaderClient : public FrameClient { 76 class CORE_EXPORT FrameLoaderClient : public FrameClient {
75 public: 77 public:
76 ~FrameLoaderClient() override {} 78 ~FrameLoaderClient() override {}
77 79
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 virtual bool canCreatePluginWithoutRenderer(const String& mimeType) cons t = 0; 151 virtual bool canCreatePluginWithoutRenderer(const String& mimeType) cons t = 0;
150 152
151 // Called before plugin creation in order to ask the embedder whether a 153 // Called before plugin creation in order to ask the embedder whether a
152 // placeholder should be substituted instead. 154 // placeholder should be substituted instead.
153 virtual PassOwnPtrWillBeRawPtr<PluginPlaceholder> createPluginPlaceholde r(Document&, const KURL&, const Vector<String>& paramNames, const Vector<String> & paramValues, const String& mimeType, bool loadManually) = 0; 155 virtual PassOwnPtrWillBeRawPtr<PluginPlaceholder> createPluginPlaceholde r(Document&, const KURL&, const Vector<String>& paramNames, const Vector<String> & paramValues, const String& mimeType, bool loadManually) = 0;
154 156
155 virtual PassRefPtrWillBeRawPtr<Widget> createPlugin(HTMLPlugInElement*, const KURL&, const Vector<String>&, const Vector<String>&, const String&, bool l oadManually, DetachedPluginPolicy) = 0; 157 virtual PassRefPtrWillBeRawPtr<Widget> createPlugin(HTMLPlugInElement*, const KURL&, const Vector<String>&, const Vector<String>&, const String&, bool l oadManually, DetachedPluginPolicy) = 0;
156 158
157 virtual PassRefPtrWillBeRawPtr<Widget> createJavaAppletWidget(HTMLApplet Element*, const KURL& baseURL, const Vector<String>& paramNames, const Vector<St ring>& paramValues) = 0; 159 virtual PassRefPtrWillBeRawPtr<Widget> createJavaAppletWidget(HTMLApplet Element*, const KURL& baseURL, const Vector<String>& paramNames, const Vector<St ring>& paramValues) = 0;
158 160
161 virtual PassOwnPtr<WebMediaPlayer> createWebMediaPlayer(HTMLMediaElement *, const WebURL&) = 0;
162
159 virtual ObjectContentType objectContentType(const KURL&, const String& m imeType, bool shouldPreferPlugInsForImages) = 0; 163 virtual ObjectContentType objectContentType(const KURL&, const String& m imeType, bool shouldPreferPlugInsForImages) = 0;
160 164
161 virtual void didCreateNewDocument() = 0; 165 virtual void didCreateNewDocument() = 0;
162 virtual void dispatchDidClearWindowObjectInMainWorld() = 0; 166 virtual void dispatchDidClearWindowObjectInMainWorld() = 0;
163 virtual void documentElementAvailable() = 0; 167 virtual void documentElementAvailable() = 0;
164 168
165 virtual v8::Local<v8::Value> createTestInterface(const AtomicString& nam e) = 0; 169 virtual v8::Local<v8::Value> createTestInterface(const AtomicString& nam e) = 0;
166 170
167 virtual void didCreateScriptContext(v8::Local<v8::Context>, int extensio nGroup, int worldId) = 0; 171 virtual void didCreateScriptContext(v8::Local<v8::Context>, int extensio nGroup, int worldId) = 0;
168 virtual void willReleaseScriptContext(v8::Local<v8::Context>, int worldI d) = 0; 172 virtual void willReleaseScriptContext(v8::Local<v8::Context>, int worldI d) = 0;
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
238 BeforeUnloadHandler, 242 BeforeUnloadHandler,
239 UnloadHandler, 243 UnloadHandler,
240 }; 244 };
241 virtual void suddenTerminationDisablerChanged(bool present, SuddenTermin ationDisablerType) { } 245 virtual void suddenTerminationDisablerChanged(bool present, SuddenTermin ationDisablerType) { }
242 246
243 }; 247 };
244 248
245 } // namespace blink 249 } // namespace blink
246 250
247 #endif // FrameLoaderClient_h 251 #endif // FrameLoaderClient_h
OLDNEW
« no previous file with comments | « Source/core/loader/EmptyClients.cpp ('k') | Source/modules/encryptedmedia/HTMLMediaElementEncryptedMedia.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698