| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 #include "wtf/RefCounted.h" | 43 #include "wtf/RefCounted.h" |
| 44 #include "wtf/text/WTFString.h" | 44 #include "wtf/text/WTFString.h" |
| 45 | 45 |
| 46 namespace blink { | 46 namespace blink { |
| 47 | 47 |
| 48 class ChromePrintContext; | 48 class ChromePrintContext; |
| 49 class GeolocationClientProxy; | 49 class GeolocationClientProxy; |
| 50 class IntSize; | 50 class IntSize; |
| 51 class KURL; | 51 class KURL; |
| 52 class Range; | 52 class Range; |
| 53 class ScriptSourceCode; |
| 53 class SharedWorkerRepositoryClientImpl; | 54 class SharedWorkerRepositoryClientImpl; |
| 54 class TextFinder; | 55 class TextFinder; |
| 55 class WebDataSourceImpl; | 56 class WebDataSourceImpl; |
| 56 class WebFrameClient; | 57 class WebFrameClient; |
| 57 class WebPerformance; | 58 class WebPerformance; |
| 58 class WebPlugin; | 59 class WebPlugin; |
| 59 class WebPluginContainerImpl; | 60 class WebPluginContainerImpl; |
| 61 class WebScriptExecutionCallback; |
| 60 class WebView; | 62 class WebView; |
| 61 class WebViewImpl; | 63 class WebViewImpl; |
| 62 struct FrameLoadRequest; | 64 struct FrameLoadRequest; |
| 63 struct WebPrintParams; | 65 struct WebPrintParams; |
| 64 | 66 |
| 65 template <typename T> class WebVector; | 67 template <typename T> class WebVector; |
| 66 | 68 |
| 67 // Implementation of WebFrame, note that this is a reference counted object. | 69 // Implementation of WebFrame, note that this is a reference counted object. |
| 68 class WebLocalFrameImpl final : public RefCountedWillBeGarbageCollectedFinalized
<WebLocalFrameImpl>, public WebLocalFrame { | 70 class WebLocalFrameImpl final : public RefCountedWillBeGarbageCollectedFinalized
<WebLocalFrameImpl>, public WebLocalFrame { |
| 69 public: | 71 public: |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 103 int worldID, const WebScriptSource* sources, unsigned numSources, | 105 int worldID, const WebScriptSource* sources, unsigned numSources, |
| 104 int extensionGroup) override; | 106 int extensionGroup) override; |
| 105 virtual void setIsolatedWorldSecurityOrigin(int worldID, const WebSecurityOr
igin&) override; | 107 virtual void setIsolatedWorldSecurityOrigin(int worldID, const WebSecurityOr
igin&) override; |
| 106 virtual void setIsolatedWorldContentSecurityPolicy(int worldID, const WebStr
ing&) override; | 108 virtual void setIsolatedWorldContentSecurityPolicy(int worldID, const WebStr
ing&) override; |
| 107 virtual void setIsolatedWorldHumanReadableName(int worldID, const WebString&
) override; | 109 virtual void setIsolatedWorldHumanReadableName(int worldID, const WebString&
) override; |
| 108 virtual void addMessageToConsole(const WebConsoleMessage&) override; | 110 virtual void addMessageToConsole(const WebConsoleMessage&) override; |
| 109 virtual void collectGarbage() override; | 111 virtual void collectGarbage() override; |
| 110 virtual bool checkIfRunInsecureContent(const WebURL&) const override; | 112 virtual bool checkIfRunInsecureContent(const WebURL&) const override; |
| 111 virtual v8::Handle<v8::Value> executeScriptAndReturnValue( | 113 virtual v8::Handle<v8::Value> executeScriptAndReturnValue( |
| 112 const WebScriptSource&) override; | 114 const WebScriptSource&) override; |
| 115 virtual void requestExecuteScriptAndReturnValue( |
| 116 const WebScriptSource&, bool userGesture, WebScriptExecutionCallback*) o
verride; |
| 113 virtual void executeScriptInIsolatedWorld( | 117 virtual void executeScriptInIsolatedWorld( |
| 114 int worldID, const WebScriptSource* sourcesIn, unsigned numSources, | 118 int worldID, const WebScriptSource* sourcesIn, unsigned numSources, |
| 115 int extensionGroup, WebVector<v8::Local<v8::Value> >* results) override; | 119 int extensionGroup, WebVector<v8::Local<v8::Value> >* results) override; |
| 120 virtual void requestExecuteScriptInIsolatedWorld( |
| 121 int worldID, const WebScriptSource* sourceIn, unsigned numSources, |
| 122 int extensionGroup, bool userGesture, WebScriptExecutionCallback*) overr
ide; |
| 116 virtual v8::Handle<v8::Value> callFunctionEvenIfScriptDisabled( | 123 virtual v8::Handle<v8::Value> callFunctionEvenIfScriptDisabled( |
| 117 v8::Handle<v8::Function>, | 124 v8::Handle<v8::Function>, |
| 118 v8::Handle<v8::Value>, | 125 v8::Handle<v8::Value>, |
| 119 int argc, | 126 int argc, |
| 120 v8::Handle<v8::Value> argv[]) override; | 127 v8::Handle<v8::Value> argv[]) override; |
| 121 virtual v8::Local<v8::Context> mainWorldScriptContext() const override; | 128 virtual v8::Local<v8::Context> mainWorldScriptContext() const override; |
| 122 virtual void reload(bool ignoreCache) override; | 129 virtual void reload(bool ignoreCache) override; |
| 123 virtual void reloadWithOverrideURL(const WebURL& overrideUrl, bool ignoreCac
he) override; | 130 virtual void reloadWithOverrideURL(const WebURL& overrideUrl, bool ignoreCac
he) override; |
| 124 virtual void loadRequest(const WebURLRequest&) override; | 131 virtual void loadRequest(const WebURLRequest&) override; |
| 125 virtual void loadHistoryItem(const WebHistoryItem&, WebHistoryLoadType, WebU
RLRequest::CachePolicy) override; | 132 virtual void loadHistoryItem(const WebHistoryItem&, WebHistoryLoadType, WebU
RLRequest::CachePolicy) override; |
| (...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 360 GC_PLUGIN_IGNORE("340522") | 367 GC_PLUGIN_IGNORE("340522") |
| 361 Persistent<WebLocalFrameImpl> m_selfKeepAlive; | 368 Persistent<WebLocalFrameImpl> m_selfKeepAlive; |
| 362 #endif | 369 #endif |
| 363 }; | 370 }; |
| 364 | 371 |
| 365 DEFINE_TYPE_CASTS(WebLocalFrameImpl, WebFrame, frame, frame->isWebLocalFrame(),
frame.isWebLocalFrame()); | 372 DEFINE_TYPE_CASTS(WebLocalFrameImpl, WebFrame, frame, frame->isWebLocalFrame(),
frame.isWebLocalFrame()); |
| 366 | 373 |
| 367 } // namespace blink | 374 } // namespace blink |
| 368 | 375 |
| 369 #endif | 376 #endif |
| OLD | NEW |