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

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

Issue 1259643002: NOT FOR LANDING Introduce and use WebMediaSession (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: hack until something works Created 5 years, 4 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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 class ResourceRequest; 62 class ResourceRequest;
63 class ResourceResponse; 63 class ResourceResponse;
64 class SecurityOrigin; 64 class SecurityOrigin;
65 class SharedWorkerRepositoryClient; 65 class SharedWorkerRepositoryClient;
66 class SubstituteData; 66 class SubstituteData;
67 class WebApplicationCacheHost; 67 class WebApplicationCacheHost;
68 class WebApplicationCacheHostClient; 68 class WebApplicationCacheHostClient;
69 class WebCookieJar; 69 class WebCookieJar;
70 class WebMediaPlayer; 70 class WebMediaPlayer;
71 class WebMediaPlayerClient; 71 class WebMediaPlayerClient;
72 class WebMediaSession;
72 class WebRTCPeerConnectionHandler; 73 class WebRTCPeerConnectionHandler;
73 class WebServiceWorkerProvider; 74 class WebServiceWorkerProvider;
74 class WebSocketHandle; 75 class WebSocketHandle;
75 class Widget; 76 class Widget;
76 77
77 class CORE_EXPORT FrameLoaderClient : public FrameClient { 78 class CORE_EXPORT FrameLoaderClient : public FrameClient {
78 public: 79 public:
79 ~FrameLoaderClient() override {} 80 ~FrameLoaderClient() override {}
80 81
81 virtual bool hasWebView() const = 0; // mainly for assertions 82 virtual bool hasWebView() const = 0; // mainly for assertions
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
154 // Called before plugin creation in order to ask the embedder whether a 155 // Called before plugin creation in order to ask the embedder whether a
155 // placeholder should be substituted instead. 156 // placeholder should be substituted instead.
156 virtual PassOwnPtrWillBeRawPtr<PluginPlaceholder> createPluginPlaceholder(Do cument&, const KURL&, const Vector<String>& paramNames, const Vector<String>& pa ramValues, const String& mimeType, bool loadManually) = 0; 157 virtual PassOwnPtrWillBeRawPtr<PluginPlaceholder> createPluginPlaceholder(Do cument&, const KURL&, const Vector<String>& paramNames, const Vector<String>& pa ramValues, const String& mimeType, bool loadManually) = 0;
157 158
158 virtual PassRefPtrWillBeRawPtr<Widget> createPlugin(HTMLPlugInElement*, cons t KURL&, const Vector<String>&, const Vector<String>&, const String&, bool loadM anually, DetachedPluginPolicy) = 0; 159 virtual PassRefPtrWillBeRawPtr<Widget> createPlugin(HTMLPlugInElement*, cons t KURL&, const Vector<String>&, const Vector<String>&, const String&, bool loadM anually, DetachedPluginPolicy) = 0;
159 160
160 virtual PassRefPtrWillBeRawPtr<Widget> createJavaAppletWidget(HTMLAppletElem ent*, const KURL& baseURL, const Vector<String>& paramNames, const Vector<String >& paramValues) = 0; 161 virtual PassRefPtrWillBeRawPtr<Widget> createJavaAppletWidget(HTMLAppletElem ent*, const KURL& baseURL, const Vector<String>& paramNames, const Vector<String >& paramValues) = 0;
161 162
162 virtual PassOwnPtr<WebMediaPlayer> createWebMediaPlayer(HTMLMediaElement&, c onst WebURL&, WebMediaPlayerClient*) = 0; 163 virtual PassOwnPtr<WebMediaPlayer> createWebMediaPlayer(HTMLMediaElement&, c onst WebURL&, WebMediaPlayerClient*) = 0;
163 164
165 virtual PassOwnPtr<WebMediaSession> createWebMediaSession() = 0;
166
164 virtual ObjectContentType objectContentType(const KURL&, const String& mimeT ype, bool shouldPreferPlugInsForImages) = 0; 167 virtual ObjectContentType objectContentType(const KURL&, const String& mimeT ype, bool shouldPreferPlugInsForImages) = 0;
165 168
166 virtual void didCreateNewDocument() = 0; 169 virtual void didCreateNewDocument() = 0;
167 virtual void dispatchDidClearWindowObjectInMainWorld() = 0; 170 virtual void dispatchDidClearWindowObjectInMainWorld() = 0;
168 virtual void documentElementAvailable() = 0; 171 virtual void documentElementAvailable() = 0;
169 172
170 virtual v8::Local<v8::Value> createTestInterface(const AtomicString& name) = 0; 173 virtual v8::Local<v8::Value> createTestInterface(const AtomicString& name) = 0;
171 174
172 virtual void didCreateScriptContext(v8::Local<v8::Context>, int extensionGro up, int worldId) = 0; 175 virtual void didCreateScriptContext(v8::Local<v8::Context>, int extensionGro up, int worldId) = 0;
173 virtual void willReleaseScriptContext(v8::Local<v8::Context>, int worldId) = 0; 176 virtual void willReleaseScriptContext(v8::Local<v8::Context>, int worldId) = 0;
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
241 BeforeUnloadHandler, 244 BeforeUnloadHandler,
242 UnloadHandler, 245 UnloadHandler,
243 }; 246 };
244 virtual void suddenTerminationDisablerChanged(bool present, SuddenTerminatio nDisablerType) { } 247 virtual void suddenTerminationDisablerChanged(bool present, SuddenTerminatio nDisablerType) { }
245 248
246 }; 249 };
247 250
248 } // namespace blink 251 } // namespace blink
249 252
250 #endif // FrameLoaderClient_h 253 #endif // FrameLoaderClient_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698