| 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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 45 #include "core/inspector/InspectorInstrumentation.h" | 45 #include "core/inspector/InspectorInstrumentation.h" |
| 46 #include "core/inspector/InspectorTraceEvents.h" | 46 #include "core/inspector/InspectorTraceEvents.h" |
| 47 #include "core/inspector/ScriptDebugListener.h" | 47 #include "core/inspector/ScriptDebugListener.h" |
| 48 #include "core/page/Page.h" | 48 #include "core/page/Page.h" |
| 49 #include "wtf/OwnPtr.h" | 49 #include "wtf/OwnPtr.h" |
| 50 #include "wtf/PassOwnPtr.h" | 50 #include "wtf/PassOwnPtr.h" |
| 51 #include "wtf/StdLibExtras.h" | 51 #include "wtf/StdLibExtras.h" |
| 52 #include "wtf/TemporaryChange.h" | 52 #include "wtf/TemporaryChange.h" |
| 53 #include "wtf/text/StringBuilder.h" | 53 #include "wtf/text/StringBuilder.h" |
| 54 | 54 |
| 55 namespace WebCore { | 55 namespace blink { |
| 56 | 56 |
| 57 static LocalFrame* retrieveFrameWithGlobalObjectCheck(v8::Handle<v8::Context> co
ntext) | 57 static LocalFrame* retrieveFrameWithGlobalObjectCheck(v8::Handle<v8::Context> co
ntext) |
| 58 { | 58 { |
| 59 if (context.IsEmpty()) | 59 if (context.IsEmpty()) |
| 60 return 0; | 60 return 0; |
| 61 | 61 |
| 62 // FIXME: This is a temporary hack for crbug.com/345014. | 62 // FIXME: This is a temporary hack for crbug.com/345014. |
| 63 // Currently it's possible that V8 can trigger Debugger::ProcessDebugEvent f
or a context | 63 // Currently it's possible that V8 can trigger Debugger::ProcessDebugEvent f
or a context |
| 64 // that is being initialized (i.e., inside Context::New() of the context). | 64 // that is being initialized (i.e., inside Context::New() of the context). |
| 65 // We should fix the V8 side so that it won't trigger the event for a half-b
aked context | 65 // We should fix the V8 side so that it won't trigger the event for a half-b
aked context |
| (...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 313 FrameConsole::mute(); | 313 FrameConsole::mute(); |
| 314 UseCounter::muteForInspector(); | 314 UseCounter::muteForInspector(); |
| 315 } | 315 } |
| 316 | 316 |
| 317 void PageScriptDebugServer::unmuteWarningsAndDeprecations() | 317 void PageScriptDebugServer::unmuteWarningsAndDeprecations() |
| 318 { | 318 { |
| 319 FrameConsole::unmute(); | 319 FrameConsole::unmute(); |
| 320 UseCounter::unmuteForInspector(); | 320 UseCounter::unmuteForInspector(); |
| 321 } | 321 } |
| 322 | 322 |
| 323 } // namespace WebCore | 323 } // namespace blink |
| OLD | NEW |