Chromium Code Reviews| 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 WebScriptCallback; | |
| 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 asyncExecuteScriptAndReturnValue( | |
| 116 const WebScriptSource&, WebScriptCallback*) override; | |
| 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 asyncExecuteScriptInIsolatedWorld( | |
| 121 int worldID, const WebScriptSource* sourceIn, unsigned numSources, | |
| 122 int extensionGroup, WebScriptCallback*) override; | |
| 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 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 243 | 250 |
| 244 // If the frame hosts a PluginDocument, this method returns the WebPluginCon tainerImpl | 251 // If the frame hosts a PluginDocument, this method returns the WebPluginCon tainerImpl |
| 245 // that hosts the plugin. | 252 // that hosts the plugin. |
| 246 static WebPluginContainerImpl* pluginContainerFromFrame(LocalFrame*); | 253 static WebPluginContainerImpl* pluginContainerFromFrame(LocalFrame*); |
| 247 | 254 |
| 248 // If the frame hosts a PluginDocument, this method returns the WebPluginCon tainerImpl | 255 // If the frame hosts a PluginDocument, this method returns the WebPluginCon tainerImpl |
| 249 // that hosts the plugin. If the provided node is a plugin, then it runs its | 256 // that hosts the plugin. If the provided node is a plugin, then it runs its |
| 250 // WebPluginContainerImpl. | 257 // WebPluginContainerImpl. |
| 251 static WebPluginContainerImpl* pluginContainerFromNode(LocalFrame*, const We bNode&); | 258 static WebPluginContainerImpl* pluginContainerFromNode(LocalFrame*, const We bNode&); |
| 252 | 259 |
| 260 static Vector<ScriptSourceCode> createSourcesVector(const WebScriptSource* s ourcesIn, unsigned numSources); | |
|
vsevik
2014/10/20 16:50:37
This could be made file static in .cpp file.
kozyatinskiy1
2014/10/21 12:46:47
Done.
| |
| 261 | |
| 253 WebViewImpl* viewImpl() const; | 262 WebViewImpl* viewImpl() const; |
| 254 | 263 |
| 255 FrameView* frameView() const { return frame() ? frame()->view() : 0; } | 264 FrameView* frameView() const { return frame() ? frame()->view() : 0; } |
| 256 | 265 |
| 257 // Getters for the impls corresponding to Get(Provisional)DataSource. They | 266 // Getters for the impls corresponding to Get(Provisional)DataSource. They |
| 258 // may return 0 if there is no corresponding data source. | 267 // may return 0 if there is no corresponding data source. |
| 259 WebDataSourceImpl* dataSourceImpl() const; | 268 WebDataSourceImpl* dataSourceImpl() const; |
| 260 WebDataSourceImpl* provisionalDataSourceImpl() const; | 269 WebDataSourceImpl* provisionalDataSourceImpl() const; |
| 261 | 270 |
| 262 // Returns which frame has an active match. This function should only be | 271 // Returns which frame has an active match. This function should only be |
| (...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 359 GC_PLUGIN_IGNORE("340522") | 368 GC_PLUGIN_IGNORE("340522") |
| 360 Persistent<WebLocalFrameImpl> m_selfKeepAlive; | 369 Persistent<WebLocalFrameImpl> m_selfKeepAlive; |
| 361 #endif | 370 #endif |
| 362 }; | 371 }; |
| 363 | 372 |
| 364 DEFINE_TYPE_CASTS(WebLocalFrameImpl, WebFrame, frame, frame->isWebLocalFrame(), frame.isWebLocalFrame()); | 373 DEFINE_TYPE_CASTS(WebLocalFrameImpl, WebFrame, frame, frame->isWebLocalFrame(), frame.isWebLocalFrame()); |
| 365 | 374 |
| 366 } // namespace blink | 375 } // namespace blink |
| 367 | 376 |
| 368 #endif | 377 #endif |
| OLD | NEW |