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

Side by Side Diff: Source/web/WebRemoteFrameImpl.h

Issue 1331213002: Expose the V8 script context from WebRemoteFrame. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Changes based on Daniel's review. Created 5 years, 3 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | Source/web/WebRemoteFrameImpl.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef WebRemoteFrameImpl_h 5 #ifndef WebRemoteFrameImpl_h
6 #define WebRemoteFrameImpl_h 6 #define WebRemoteFrameImpl_h
7 7
8 #include "core/frame/FrameOwner.h" 8 #include "core/frame/FrameOwner.h"
9 #include "platform/heap/Handle.h" 9 #include "platform/heap/Handle.h"
10 #include "public/web/WebRemoteFrame.h" 10 #include "public/web/WebRemoteFrame.h"
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 const WebScriptSource&) override; 67 const WebScriptSource&) override;
68 void executeScriptInIsolatedWorld( 68 void executeScriptInIsolatedWorld(
69 int worldID, const WebScriptSource* sourcesIn, unsigned numSources, 69 int worldID, const WebScriptSource* sourcesIn, unsigned numSources,
70 int extensionGroup, WebVector<v8::Local<v8::Value>>* results) override; 70 int extensionGroup, WebVector<v8::Local<v8::Value>>* results) override;
71 v8::Local<v8::Value> callFunctionEvenIfScriptDisabled( 71 v8::Local<v8::Value> callFunctionEvenIfScriptDisabled(
72 v8::Local<v8::Function>, 72 v8::Local<v8::Function>,
73 v8::Local<v8::Value>, 73 v8::Local<v8::Value>,
74 int argc, 74 int argc,
75 v8::Local<v8::Value> argv[]) override; 75 v8::Local<v8::Value> argv[]) override;
76 v8::Local<v8::Context> mainWorldScriptContext() const override; 76 v8::Local<v8::Context> mainWorldScriptContext() const override;
77 v8::Local<v8::Context> deprecatedMainWorldScriptContext() const override;
77 void reload(bool ignoreCache) override; 78 void reload(bool ignoreCache) override;
78 void reloadWithOverrideURL(const WebURL& overrideUrl, bool ignoreCache) over ride; 79 void reloadWithOverrideURL(const WebURL& overrideUrl, bool ignoreCache) over ride;
79 void loadRequest(const WebURLRequest&) override; 80 void loadRequest(const WebURLRequest&) override;
80 void loadHistoryItem(const WebHistoryItem&, WebHistoryLoadType, WebURLReques t::CachePolicy) override; 81 void loadHistoryItem(const WebHistoryItem&, WebHistoryLoadType, WebURLReques t::CachePolicy) override;
81 void loadData( 82 void loadData(
82 const WebData&, const WebString& mimeType, const WebString& textEncoding , 83 const WebData&, const WebString& mimeType, const WebString& textEncoding ,
83 const WebURL& baseURL, const WebURL& unreachableURL, bool replace) overr ide; 84 const WebURL& baseURL, const WebURL& unreachableURL, bool replace) overr ide;
84 void loadHTMLString( 85 void loadHTMLString(
85 const WebData& html, const WebURL& baseURL, const WebURL& unreachableURL , 86 const WebData& html, const WebURL& baseURL, const WebURL& unreachableURL ,
86 bool replace) override; 87 bool replace) override;
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
207 // cleared upon close(). 208 // cleared upon close().
208 SelfKeepAlive<WebRemoteFrameImpl> m_selfKeepAlive; 209 SelfKeepAlive<WebRemoteFrameImpl> m_selfKeepAlive;
209 #endif 210 #endif
210 }; 211 };
211 212
212 DEFINE_TYPE_CASTS(WebRemoteFrameImpl, WebFrame, frame, frame->isWebRemoteFrame() , frame.isWebRemoteFrame()); 213 DEFINE_TYPE_CASTS(WebRemoteFrameImpl, WebFrame, frame, frame->isWebRemoteFrame() , frame.isWebRemoteFrame());
213 214
214 } // namespace blink 215 } // namespace blink
215 216
216 #endif // WebRemoteFrameImpl_h 217 #endif // WebRemoteFrameImpl_h
OLDNEW
« no previous file with comments | « no previous file | Source/web/WebRemoteFrameImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698