| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |