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

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

Issue 1370453002: Introduce WebMediaSession (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address review comments Created 5 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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 class ResourceRequest; 60 class ResourceRequest;
61 class ResourceResponse; 61 class ResourceResponse;
62 class SecurityOrigin; 62 class SecurityOrigin;
63 class SharedWorkerRepositoryClient; 63 class SharedWorkerRepositoryClient;
64 class SubstituteData; 64 class SubstituteData;
65 class WebApplicationCacheHost; 65 class WebApplicationCacheHost;
66 class WebApplicationCacheHostClient; 66 class WebApplicationCacheHostClient;
67 class WebCookieJar; 67 class WebCookieJar;
68 class WebMediaPlayer; 68 class WebMediaPlayer;
69 class WebMediaPlayerClient; 69 class WebMediaPlayerClient;
70 class WebMediaSession;
70 class WebRTCPeerConnectionHandler; 71 class WebRTCPeerConnectionHandler;
71 class WebServiceWorkerProvider; 72 class WebServiceWorkerProvider;
72 class WebSocketHandle; 73 class WebSocketHandle;
73 class Widget; 74 class Widget;
74 75
75 class CORE_EXPORT FrameLoaderClient : public FrameClient { 76 class CORE_EXPORT FrameLoaderClient : public FrameClient {
76 public: 77 public:
77 ~FrameLoaderClient() override {} 78 ~FrameLoaderClient() override {}
78 79
79 virtual bool hasWebView() const = 0; // mainly for assertions 80 virtual bool hasWebView() const = 0; // mainly for assertions
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
145 // Whether or not plugin creation should fail if the HTMLPlugInElement isn't in the DOM after plugin initialization. 146 // Whether or not plugin creation should fail if the HTMLPlugInElement isn't in the DOM after plugin initialization.
146 enum DetachedPluginPolicy { 147 enum DetachedPluginPolicy {
147 FailOnDetachedPlugin, 148 FailOnDetachedPlugin,
148 AllowDetachedPlugin, 149 AllowDetachedPlugin,
149 }; 150 };
150 virtual bool canCreatePluginWithoutRenderer(const String& mimeType) const = 0; 151 virtual bool canCreatePluginWithoutRenderer(const String& mimeType) const = 0;
151 virtual PassRefPtrWillBeRawPtr<Widget> createPlugin(HTMLPlugInElement*, cons t KURL&, const Vector<String>&, const Vector<String>&, const String&, bool loadM anually, DetachedPluginPolicy) = 0; 152 virtual PassRefPtrWillBeRawPtr<Widget> createPlugin(HTMLPlugInElement*, cons t KURL&, const Vector<String>&, const Vector<String>&, const String&, bool loadM anually, DetachedPluginPolicy) = 0;
152 153
153 virtual PassOwnPtr<WebMediaPlayer> createWebMediaPlayer(HTMLMediaElement&, c onst WebURL&, WebMediaPlayerClient*) = 0; 154 virtual PassOwnPtr<WebMediaPlayer> createWebMediaPlayer(HTMLMediaElement&, c onst WebURL&, WebMediaPlayerClient*) = 0;
154 155
156 virtual PassOwnPtr<WebMediaSession> createWebMediaSession() = 0;
157
155 virtual ObjectContentType objectContentType(const KURL&, const String& mimeT ype, bool shouldPreferPlugInsForImages) = 0; 158 virtual ObjectContentType objectContentType(const KURL&, const String& mimeT ype, bool shouldPreferPlugInsForImages) = 0;
156 159
157 virtual void didCreateNewDocument() = 0; 160 virtual void didCreateNewDocument() = 0;
158 virtual void dispatchDidClearWindowObjectInMainWorld() = 0; 161 virtual void dispatchDidClearWindowObjectInMainWorld() = 0;
159 virtual void documentElementAvailable() = 0; 162 virtual void documentElementAvailable() = 0;
160 163
161 virtual v8::Local<v8::Value> createTestInterface(const AtomicString& name) = 0; 164 virtual v8::Local<v8::Value> createTestInterface(const AtomicString& name) = 0;
162 165
163 virtual void didCreateScriptContext(v8::Local<v8::Context>, int extensionGro up, int worldId) = 0; 166 virtual void didCreateScriptContext(v8::Local<v8::Context>, int extensionGro up, int worldId) = 0;
164 virtual void willReleaseScriptContext(v8::Local<v8::Context>, int worldId) = 0; 167 virtual void willReleaseScriptContext(v8::Local<v8::Context>, int worldId) = 0;
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
232 BeforeUnloadHandler, 235 BeforeUnloadHandler,
233 UnloadHandler, 236 UnloadHandler,
234 }; 237 };
235 virtual void suddenTerminationDisablerChanged(bool present, SuddenTerminatio nDisablerType) { } 238 virtual void suddenTerminationDisablerChanged(bool present, SuddenTerminatio nDisablerType) { }
236 239
237 }; 240 };
238 241
239 } // namespace blink 242 } // namespace blink
240 243
241 #endif // FrameLoaderClient_h 244 #endif // FrameLoaderClient_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698