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

Side by Side Diff: third_party/WebKit/Source/core/frame/LocalFrameClient.h

Issue 2722953003: Part 1 to rename platform/Widget to platform/FrameViewBase. (Closed)
Patch Set: Created 3 years, 9 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 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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 #include "public/platform/WebLoadingBehaviorFlag.h" 54 #include "public/platform/WebLoadingBehaviorFlag.h"
55 #include "v8/include/v8.h" 55 #include "v8/include/v8.h"
56 #include "wtf/Forward.h" 56 #include "wtf/Forward.h"
57 #include "wtf/Vector.h" 57 #include "wtf/Vector.h"
58 58
59 namespace blink { 59 namespace blink {
60 60
61 class Document; 61 class Document;
62 class DocumentLoader; 62 class DocumentLoader;
63 struct FrameLoadRequest; 63 struct FrameLoadRequest;
64 class FrameViewBase;
64 class HTMLFormElement; 65 class HTMLFormElement;
65 class HTMLFrameElementBase; 66 class HTMLFrameElementBase;
66 class HTMLFrameOwnerElement; 67 class HTMLFrameOwnerElement;
67 class HTMLMediaElement; 68 class HTMLMediaElement;
68 class HTMLPlugInElement; 69 class HTMLPlugInElement;
69 class HistoryItem; 70 class HistoryItem;
70 class KURL; 71 class KURL;
71 class LocalFrame; 72 class LocalFrame;
72 class ResourceError; 73 class ResourceError;
73 class ResourceRequest; 74 class ResourceRequest;
74 class ResourceResponse; 75 class ResourceResponse;
75 class SecurityOrigin; 76 class SecurityOrigin;
76 class SharedWorkerRepositoryClient; 77 class SharedWorkerRepositoryClient;
77 class SubstituteData; 78 class SubstituteData;
78 class WebApplicationCacheHost; 79 class WebApplicationCacheHost;
79 class WebApplicationCacheHostClient; 80 class WebApplicationCacheHostClient;
80 class WebCookieJar; 81 class WebCookieJar;
81 class WebMediaPlayer; 82 class WebMediaPlayer;
82 class WebMediaPlayerClient; 83 class WebMediaPlayerClient;
83 class WebMediaPlayerSource; 84 class WebMediaPlayerSource;
84 class WebRemotePlaybackClient; 85 class WebRemotePlaybackClient;
85 class WebRTCPeerConnectionHandler; 86 class WebRTCPeerConnectionHandler;
86 class WebServiceWorkerProvider; 87 class WebServiceWorkerProvider;
87 class Widget;
88 88
89 class CORE_EXPORT LocalFrameClient : public FrameClient { 89 class CORE_EXPORT LocalFrameClient : public FrameClient {
90 public: 90 public:
91 ~LocalFrameClient() override {} 91 ~LocalFrameClient() override {}
92 92
93 virtual bool hasWebView() const = 0; // mainly for assertions 93 virtual bool hasWebView() const = 0; // mainly for assertions
94 94
95 virtual void dispatchWillSendRequest(ResourceRequest&) = 0; 95 virtual void dispatchWillSendRequest(ResourceRequest&) = 0;
96 virtual void dispatchDidReceiveResponse(const ResourceResponse&) = 0; 96 virtual void dispatchDidReceiveResponse(const ResourceResponse&) = 0;
97 virtual void dispatchDidLoadResourceFromMemoryCache( 97 virtual void dispatchDidLoadResourceFromMemoryCache(
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
186 virtual LocalFrame* createFrame(const FrameLoadRequest&, 186 virtual LocalFrame* createFrame(const FrameLoadRequest&,
187 const AtomicString& name, 187 const AtomicString& name,
188 HTMLFrameOwnerElement*) = 0; 188 HTMLFrameOwnerElement*) = 0;
189 // Whether or not plugin creation should fail if the HTMLPlugInElement isn't 189 // Whether or not plugin creation should fail if the HTMLPlugInElement isn't
190 // in the DOM after plugin initialization. 190 // in the DOM after plugin initialization.
191 enum DetachedPluginPolicy { 191 enum DetachedPluginPolicy {
192 FailOnDetachedPlugin, 192 FailOnDetachedPlugin,
193 AllowDetachedPlugin, 193 AllowDetachedPlugin,
194 }; 194 };
195 virtual bool canCreatePluginWithoutRenderer(const String& mimeType) const = 0; 195 virtual bool canCreatePluginWithoutRenderer(const String& mimeType) const = 0;
196 virtual Widget* createPlugin(HTMLPlugInElement*, 196 virtual FrameViewBase* createPlugin(HTMLPlugInElement*,
197 const KURL&, 197 const KURL&,
198 const Vector<String>&, 198 const Vector<String>&,
199 const Vector<String>&, 199 const Vector<String>&,
200 const String&, 200 const String&,
201 bool loadManually, 201 bool loadManually,
202 DetachedPluginPolicy) = 0; 202 DetachedPluginPolicy) = 0;
203 203
204 virtual std::unique_ptr<WebMediaPlayer> createWebMediaPlayer( 204 virtual std::unique_ptr<WebMediaPlayer> createWebMediaPlayer(
205 HTMLMediaElement&, 205 HTMLMediaElement&,
206 const WebMediaPlayerSource&, 206 const WebMediaPlayerSource&,
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
341 virtual KURL overrideFlashEmbedWithHTML(const KURL&) { return KURL(); } 341 virtual KURL overrideFlashEmbedWithHTML(const KURL&) { return KURL(); }
342 342
343 virtual BlameContext* frameBlameContext() { return nullptr; } 343 virtual BlameContext* frameBlameContext() { return nullptr; }
344 344
345 virtual void setHasReceivedUserGesture() {} 345 virtual void setHasReceivedUserGesture() {}
346 }; 346 };
347 347
348 } // namespace blink 348 } // namespace blink
349 349
350 #endif // LocalFrameClient_h 350 #endif // LocalFrameClient_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698