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

Side by Side Diff: third_party/WebKit/Source/core/inspector/MainThreadDebugger.cpp

Issue 1636223002: DevTools: remove ScriptState/Value from the InjectedScript APIs. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: review comments addressed Created 4 years, 10 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
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698