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

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

Issue 2480003002: [RemotePlayback] Keep track of source compatibility and reject prompt() correspondingly (Closed)
Patch Set: Fixed failing tests Created 4 years, 1 month 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 2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc. All rights
3 * reserved. 3 * reserved.
4 * Copyright (C) 2012 Google Inc. All rights reserved. 4 * Copyright (C) 2012 Google Inc. All rights reserved.
5 * 5 *
6 * Redistribution and use in source and binary forms, with or without 6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions 7 * modification, are permitted provided that the following conditions
8 * are met: 8 * are met:
9 * 9 *
10 * 1. Redistributions of source code must retain the above copyright 10 * 1. Redistributions of source code must retain the above copyright
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 class HTMLFrameElementBase; 62 class HTMLFrameElementBase;
63 class HTMLFrameOwnerElement; 63 class HTMLFrameOwnerElement;
64 class HTMLMediaElement; 64 class HTMLMediaElement;
65 class HTMLPlugInElement; 65 class HTMLPlugInElement;
66 class HistoryItem; 66 class HistoryItem;
67 class KURL; 67 class KURL;
68 class LocalFrame; 68 class LocalFrame;
69 class ResourceError; 69 class ResourceError;
70 class ResourceRequest; 70 class ResourceRequest;
71 class ResourceResponse; 71 class ResourceResponse;
72 class ScriptState;
72 class SecurityOrigin; 73 class SecurityOrigin;
73 class SharedWorkerRepositoryClient; 74 class SharedWorkerRepositoryClient;
74 class SubstituteData; 75 class SubstituteData;
75 class WebApplicationCacheHost; 76 class WebApplicationCacheHost;
76 class WebApplicationCacheHostClient; 77 class WebApplicationCacheHostClient;
77 class WebCookieJar; 78 class WebCookieJar;
78 class WebMediaPlayer; 79 class WebMediaPlayer;
79 class WebMediaPlayerClient; 80 class WebMediaPlayerClient;
80 class WebMediaPlayerSource; 81 class WebMediaPlayerSource;
82 class WebRemotePlaybackClient;
81 class WebRTCPeerConnectionHandler; 83 class WebRTCPeerConnectionHandler;
82 class WebServiceWorkerProvider; 84 class WebServiceWorkerProvider;
83 class Widget; 85 class Widget;
84 86
85 class CORE_EXPORT FrameLoaderClient : public FrameClient { 87 class CORE_EXPORT FrameLoaderClient : public FrameClient {
86 public: 88 public:
87 ~FrameLoaderClient() override {} 89 ~FrameLoaderClient() override {}
88 90
89 virtual bool hasWebView() const = 0; // mainly for assertions 91 virtual bool hasWebView() const = 0; // mainly for assertions
90 92
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
192 const Vector<String>&, 194 const Vector<String>&,
193 const Vector<String>&, 195 const Vector<String>&,
194 const String&, 196 const String&,
195 bool loadManually, 197 bool loadManually,
196 DetachedPluginPolicy) = 0; 198 DetachedPluginPolicy) = 0;
197 199
198 virtual std::unique_ptr<WebMediaPlayer> createWebMediaPlayer( 200 virtual std::unique_ptr<WebMediaPlayer> createWebMediaPlayer(
199 HTMLMediaElement&, 201 HTMLMediaElement&,
200 const WebMediaPlayerSource&, 202 const WebMediaPlayerSource&,
201 WebMediaPlayerClient*) = 0; 203 WebMediaPlayerClient*) = 0;
204 virtual WebRemotePlaybackClient* createWebRemotePlaybackClient(
205 HTMLMediaElement&,
206 ScriptState*) = 0;
haraken 2016/11/08 05:13:11 Nit: Put ScriptState* as the first parameter.
202 207
203 virtual ObjectContentType getObjectContentType( 208 virtual ObjectContentType getObjectContentType(
204 const KURL&, 209 const KURL&,
205 const String& mimeType, 210 const String& mimeType,
206 bool shouldPreferPlugInsForImages) = 0; 211 bool shouldPreferPlugInsForImages) = 0;
207 212
208 virtual void didCreateNewDocument() = 0; 213 virtual void didCreateNewDocument() = 0;
209 virtual void dispatchDidClearWindowObjectInMainWorld() = 0; 214 virtual void dispatchDidClearWindowObjectInMainWorld() = 0;
210 virtual void documentElementAvailable() = 0; 215 virtual void documentElementAvailable() = 0;
211 virtual void runScriptsAtDocumentElementAvailable() = 0; 216 virtual void runScriptsAtDocumentElementAvailable() = 0;
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
331 } 336 }
332 337
333 // Overwrites the given URL to use an HTML5 embed if possible. An empty URL is 338 // Overwrites the given URL to use an HTML5 embed if possible. An empty URL is
334 // returned if the URL is not overriden. 339 // returned if the URL is not overriden.
335 virtual KURL overrideFlashEmbedWithHTML(const KURL&) { return KURL(); } 340 virtual KURL overrideFlashEmbedWithHTML(const KURL&) { return KURL(); }
336 }; 341 };
337 342
338 } // namespace blink 343 } // namespace blink
339 344
340 #endif // FrameLoaderClient_h 345 #endif // FrameLoaderClient_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698