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

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

Issue 2367393002: Migrating MediaSession messages to mojo (Closed)
Patch Set: rebase onto new mojo types Created 4 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
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 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 class ResourceResponse; 70 class ResourceResponse;
71 class SecurityOrigin; 71 class SecurityOrigin;
72 class SharedWorkerRepositoryClient; 72 class SharedWorkerRepositoryClient;
73 class SubstituteData; 73 class SubstituteData;
74 class WebApplicationCacheHost; 74 class WebApplicationCacheHost;
75 class WebApplicationCacheHostClient; 75 class WebApplicationCacheHostClient;
76 class WebCookieJar; 76 class WebCookieJar;
77 class WebMediaPlayer; 77 class WebMediaPlayer;
78 class WebMediaPlayerClient; 78 class WebMediaPlayerClient;
79 class WebMediaPlayerSource; 79 class WebMediaPlayerSource;
80 class WebMediaSession;
81 class WebMediaStream; 80 class WebMediaStream;
82 class WebRTCPeerConnectionHandler; 81 class WebRTCPeerConnectionHandler;
83 class WebServiceWorkerProvider; 82 class WebServiceWorkerProvider;
84 class WebSocketHandle; 83 class WebSocketHandle;
85 class Widget; 84 class Widget;
86 85
87 class CORE_EXPORT FrameLoaderClient : public FrameClient { 86 class CORE_EXPORT FrameLoaderClient : public FrameClient {
88 public: 87 public:
89 ~FrameLoaderClient() override {} 88 ~FrameLoaderClient() override {}
90 89
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
166 // Whether or not plugin creation should fail if the HTMLPlugInElement isn't in the DOM after plugin initialization. 165 // Whether or not plugin creation should fail if the HTMLPlugInElement isn't in the DOM after plugin initialization.
167 enum DetachedPluginPolicy { 166 enum DetachedPluginPolicy {
168 FailOnDetachedPlugin, 167 FailOnDetachedPlugin,
169 AllowDetachedPlugin, 168 AllowDetachedPlugin,
170 }; 169 };
171 virtual bool canCreatePluginWithoutRenderer(const String& mimeType) const = 0; 170 virtual bool canCreatePluginWithoutRenderer(const String& mimeType) const = 0;
172 virtual Widget* createPlugin(HTMLPlugInElement*, const KURL&, const Vector<S tring>&, const Vector<String>&, const String&, bool loadManually, DetachedPlugin Policy) = 0; 171 virtual Widget* createPlugin(HTMLPlugInElement*, const KURL&, const Vector<S tring>&, const Vector<String>&, const String&, bool loadManually, DetachedPlugin Policy) = 0;
173 172
174 virtual std::unique_ptr<WebMediaPlayer> createWebMediaPlayer(HTMLMediaElemen t&, const WebMediaPlayerSource&, WebMediaPlayerClient*) = 0; 173 virtual std::unique_ptr<WebMediaPlayer> createWebMediaPlayer(HTMLMediaElemen t&, const WebMediaPlayerSource&, WebMediaPlayerClient*) = 0;
175 174
176 virtual std::unique_ptr<WebMediaSession> createWebMediaSession() = 0;
177
178 virtual ObjectContentType getObjectContentType(const KURL&, const String& mi meType, bool shouldPreferPlugInsForImages) = 0; 175 virtual ObjectContentType getObjectContentType(const KURL&, const String& mi meType, bool shouldPreferPlugInsForImages) = 0;
179 176
180 virtual void didCreateNewDocument() = 0; 177 virtual void didCreateNewDocument() = 0;
181 virtual void dispatchDidClearWindowObjectInMainWorld() = 0; 178 virtual void dispatchDidClearWindowObjectInMainWorld() = 0;
182 virtual void documentElementAvailable() = 0; 179 virtual void documentElementAvailable() = 0;
183 virtual void runScriptsAtDocumentElementAvailable() = 0; 180 virtual void runScriptsAtDocumentElementAvailable() = 0;
184 virtual void runScriptsAtDocumentReady(bool documentIsEmpty) = 0; 181 virtual void runScriptsAtDocumentReady(bool documentIsEmpty) = 0;
185 182
186 virtual void didCreateScriptContext(v8::Local<v8::Context>, int extensionGro up, int worldId) = 0; 183 virtual void didCreateScriptContext(v8::Local<v8::Context>, int extensionGro up, int worldId) = 0;
187 virtual void willReleaseScriptContext(v8::Local<v8::Context>, int worldId) = 0; 184 virtual void willReleaseScriptContext(v8::Local<v8::Context>, int worldId) = 0;
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
271 virtual WebEffectiveConnectionType getEffectiveConnectionType() { return Web EffectiveConnectionType::TypeUnknown; } 268 virtual WebEffectiveConnectionType getEffectiveConnectionType() { return Web EffectiveConnectionType::TypeUnknown; }
272 269
273 // Overwrites the given URL to use an HTML5 embed if possible. 270 // Overwrites the given URL to use an HTML5 embed if possible.
274 // An empty URL is returned if the URL is not overriden. 271 // An empty URL is returned if the URL is not overriden.
275 virtual KURL overrideFlashEmbedWithHTML(const KURL&) { return KURL(); } 272 virtual KURL overrideFlashEmbedWithHTML(const KURL&) { return KURL(); }
276 }; 273 };
277 274
278 } // namespace blink 275 } // namespace blink
279 276
280 #endif // FrameLoaderClient_h 277 #endif // FrameLoaderClient_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698