| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2011 Google Inc. All rights reserved. | 2 * Copyright (c) 2011 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 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 117 token->setPauseInDebugger(); | 117 token->setPauseInDebugger(); |
| 118 // Wait for continue or step command. | 118 // Wait for continue or step command. |
| 119 m_clientMessageLoop->run(pausedFrame); | 119 m_clientMessageLoop->run(pausedFrame); |
| 120 } | 120 } |
| 121 | 121 |
| 122 void MainThreadDebugger::quitMessageLoopOnPause() | 122 void MainThreadDebugger::quitMessageLoopOnPause() |
| 123 { | 123 { |
| 124 m_clientMessageLoop->quitNow(); | 124 m_clientMessageLoop->quitNow(); |
| 125 } | 125 } |
| 126 | 126 |
| 127 bool MainThreadDebugger::canAccessContext(v8::Local<v8::Context> context) | 127 bool MainThreadDebugger::callingContextCanAccessContext(v8::Local<v8::Context> c
ontext) |
| 128 { | 128 { |
| 129 if (context.IsEmpty()) | 129 if (context.IsEmpty()) |
| 130 return false; | 130 return false; |
| 131 DOMWindow* window = toDOMWindow(context->GetIsolate(), context->Global()); | 131 DOMWindow* window = toDOMWindow(context->GetIsolate(), context->Global()); |
| 132 return window && BindingSecurity::shouldAllowAccessTo(context->GetIsolate(),
callingDOMWindow(context->GetIsolate()), window, DoNotReportSecurityError); | 132 return window && BindingSecurity::shouldAllowAccessTo(context->GetIsolate(),
callingDOMWindow(context->GetIsolate()), window, DoNotReportSecurityError); |
| 133 } | 133 } |
| 134 | 134 |
| 135 } // namespace blink | 135 } // namespace blink |
| OLD | NEW |