| OLD | NEW |
| 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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 #include "platform/weborigin/Referrer.h" | 42 #include "platform/weborigin/Referrer.h" |
| 43 #include "wtf/Forward.h" | 43 #include "wtf/Forward.h" |
| 44 #include "wtf/Vector.h" | 44 #include "wtf/Vector.h" |
| 45 #include <v8.h> | 45 #include <v8.h> |
| 46 | 46 |
| 47 namespace blink { | 47 namespace blink { |
| 48 | 48 |
| 49 class Document; | 49 class Document; |
| 50 class DocumentLoader; | 50 class DocumentLoader; |
| 51 class FetchRequest; | 51 class FetchRequest; |
| 52 class HTMLAppletElement; | |
| 53 class HTMLFormElement; | 52 class HTMLFormElement; |
| 54 class HTMLFrameOwnerElement; | 53 class HTMLFrameOwnerElement; |
| 55 class HTMLMediaElement; | 54 class HTMLMediaElement; |
| 56 class HTMLPlugInElement; | 55 class HTMLPlugInElement; |
| 57 class HistoryItem; | 56 class HistoryItem; |
| 58 class KURL; | 57 class KURL; |
| 59 class LocalFrame; | 58 class LocalFrame; |
| 60 class ResourceError; | 59 class ResourceError; |
| 61 class ResourceRequest; | 60 class ResourceRequest; |
| 62 class ResourceResponse; | 61 class ResourceResponse; |
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 146 | 145 |
| 147 virtual PassRefPtrWillBeRawPtr<LocalFrame> createFrame(const FrameLoadReques
t&, const AtomicString& name, HTMLFrameOwnerElement*) = 0; | 146 virtual PassRefPtrWillBeRawPtr<LocalFrame> createFrame(const FrameLoadReques
t&, const AtomicString& name, HTMLFrameOwnerElement*) = 0; |
| 148 // Whether or not plugin creation should fail if the HTMLPlugInElement isn't
in the DOM after plugin initialization. | 147 // Whether or not plugin creation should fail if the HTMLPlugInElement isn't
in the DOM after plugin initialization. |
| 149 enum DetachedPluginPolicy { | 148 enum DetachedPluginPolicy { |
| 150 FailOnDetachedPlugin, | 149 FailOnDetachedPlugin, |
| 151 AllowDetachedPlugin, | 150 AllowDetachedPlugin, |
| 152 }; | 151 }; |
| 153 virtual bool canCreatePluginWithoutRenderer(const String& mimeType) const =
0; | 152 virtual bool canCreatePluginWithoutRenderer(const String& mimeType) const =
0; |
| 154 virtual PassRefPtrWillBeRawPtr<Widget> createPlugin(HTMLPlugInElement*, cons
t KURL&, const Vector<String>&, const Vector<String>&, const String&, bool loadM
anually, DetachedPluginPolicy) = 0; | 153 virtual PassRefPtrWillBeRawPtr<Widget> createPlugin(HTMLPlugInElement*, cons
t KURL&, const Vector<String>&, const Vector<String>&, const String&, bool loadM
anually, DetachedPluginPolicy) = 0; |
| 155 | 154 |
| 156 virtual PassRefPtrWillBeRawPtr<Widget> createJavaAppletWidget(HTMLAppletElem
ent*, const KURL& baseURL, const Vector<String>& paramNames, const Vector<String
>& paramValues) = 0; | |
| 157 | |
| 158 virtual PassOwnPtr<WebMediaPlayer> createWebMediaPlayer(HTMLMediaElement&, c
onst WebURL&, WebMediaPlayerClient*) = 0; | 155 virtual PassOwnPtr<WebMediaPlayer> createWebMediaPlayer(HTMLMediaElement&, c
onst WebURL&, WebMediaPlayerClient*) = 0; |
| 159 | 156 |
| 160 virtual ObjectContentType objectContentType(const KURL&, const String& mimeT
ype, bool shouldPreferPlugInsForImages) = 0; | 157 virtual ObjectContentType objectContentType(const KURL&, const String& mimeT
ype, bool shouldPreferPlugInsForImages) = 0; |
| 161 | 158 |
| 162 virtual void didCreateNewDocument() = 0; | 159 virtual void didCreateNewDocument() = 0; |
| 163 virtual void dispatchDidClearWindowObjectInMainWorld() = 0; | 160 virtual void dispatchDidClearWindowObjectInMainWorld() = 0; |
| 164 virtual void documentElementAvailable() = 0; | 161 virtual void documentElementAvailable() = 0; |
| 165 | 162 |
| 166 virtual v8::Local<v8::Value> createTestInterface(const AtomicString& name) =
0; | 163 virtual v8::Local<v8::Value> createTestInterface(const AtomicString& name) =
0; |
| 167 | 164 |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 237 BeforeUnloadHandler, | 234 BeforeUnloadHandler, |
| 238 UnloadHandler, | 235 UnloadHandler, |
| 239 }; | 236 }; |
| 240 virtual void suddenTerminationDisablerChanged(bool present, SuddenTerminatio
nDisablerType) { } | 237 virtual void suddenTerminationDisablerChanged(bool present, SuddenTerminatio
nDisablerType) { } |
| 241 | 238 |
| 242 }; | 239 }; |
| 243 | 240 |
| 244 } // namespace blink | 241 } // namespace blink |
| 245 | 242 |
| 246 #endif // FrameLoaderClient_h | 243 #endif // FrameLoaderClient_h |
| OLD | NEW |