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

Side by Side Diff: WebCore/bindings/v8/ScriptController.cpp

Issue 2159006: Merge 59866 - 20100520 Justin Schuh <jschuh@chromium.org>... (Closed) Base URL: svn://svn.chromium.org/chrome/branches/WebKit/375/
Patch Set: '' Created 10 years, 7 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 | « WebCore/bindings/v8/ScriptController.h ('k') | WebCore/html/HTMLFrameElementBase.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 /* 1 /*
2 * Copyright (C) 2008, 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2008, 2009 Google Inc. All rights reserved.
3 * Copyright (C) 2009 Apple Inc. All rights reserved. 3 * Copyright (C) 2009 Apple 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 are 6 * modification, are permitted provided that the following conditions are
7 * met: 7 * met:
8 * 8 *
9 * * Redistributions of source code must retain the above copyright 9 * * 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 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 Frame* ScriptController::retrieveFrameForEnteredContext() 80 Frame* ScriptController::retrieveFrameForEnteredContext()
81 { 81 {
82 return V8Proxy::retrieveFrameForEnteredContext(); 82 return V8Proxy::retrieveFrameForEnteredContext();
83 } 83 }
84 84
85 Frame* ScriptController::retrieveFrameForCurrentContext() 85 Frame* ScriptController::retrieveFrameForCurrentContext()
86 { 86 {
87 return V8Proxy::retrieveFrameForCurrentContext(); 87 return V8Proxy::retrieveFrameForCurrentContext();
88 } 88 }
89 89
90 bool ScriptController::canAccessFromCurrentOrigin(Frame *frame)
91 {
92 return !v8::Context::InContext() || V8BindingSecurity::canAccessFrame(V8Bind ingState::Only(), frame, true);
93 }
94
90 bool ScriptController::isSafeScript(Frame* target) 95 bool ScriptController::isSafeScript(Frame* target)
91 { 96 {
92 return V8BindingSecurity::canAccessFrame(V8BindingState::Only(), target, tru e); 97 return V8BindingSecurity::canAccessFrame(V8BindingState::Only(), target, tru e);
93 } 98 }
94 99
95 void ScriptController::gcProtectJSWrapper(void* domObject) 100 void ScriptController::gcProtectJSWrapper(void* domObject)
96 { 101 {
97 V8GCController::gcProtect(domObject); 102 V8GCController::gcProtect(domObject);
98 } 103 }
99 104
(...skipping 337 matching lines...) Expand 10 before | Expand all | Expand 10 after
437 { 442 {
438 notImplemented(); 443 notImplemented();
439 } 444 }
440 445
441 void ScriptController::updateDocument() 446 void ScriptController::updateDocument()
442 { 447 {
443 m_proxy->windowShell()->updateDocument(); 448 m_proxy->windowShell()->updateDocument();
444 } 449 }
445 450
446 } // namespace WebCore 451 } // namespace WebCore
OLDNEW
« no previous file with comments | « WebCore/bindings/v8/ScriptController.h ('k') | WebCore/html/HTMLFrameElementBase.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698