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

Side by Side Diff: Source/core/dom/ExecutionContext.cpp

Issue 585873002: Show a warning when using sync xhr. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Updated patch with reset -expected.txt files. Created 6 years, 2 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) 2008 Apple Inc. All Rights Reserved. 2 * Copyright (C) 2008 Apple Inc. All Rights Reserved.
3 * Copyright (C) 2012 Google Inc. All Rights Reserved. 3 * Copyright (C) 2012 Google 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 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. 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 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 String m_sourceURL; 65 String m_sourceURL;
66 RefPtrWillBeMember<ScriptCallStack> m_callStack; 66 RefPtrWillBeMember<ScriptCallStack> m_callStack;
67 }; 67 };
68 68
69 ExecutionContext::ExecutionContext() 69 ExecutionContext::ExecutionContext()
70 : m_sandboxFlags(SandboxNone) 70 : m_sandboxFlags(SandboxNone)
71 , m_circularSequentialID(0) 71 , m_circularSequentialID(0)
72 , m_inDispatchErrorEvent(false) 72 , m_inDispatchErrorEvent(false)
73 , m_activeDOMObjectsAreSuspended(false) 73 , m_activeDOMObjectsAreSuspended(false)
74 , m_activeDOMObjectsAreStopped(false) 74 , m_activeDOMObjectsAreStopped(false)
75 , m_inBeforeUnloadEvent(false)
75 { 76 {
76 } 77 }
77 78
78 ExecutionContext::~ExecutionContext() 79 ExecutionContext::~ExecutionContext()
79 { 80 {
80 } 81 }
81 82
82 bool ExecutionContext::hasPendingActivity() 83 bool ExecutionContext::hasPendingActivity()
83 { 84 {
84 return lifecycleNotifier().hasPendingActivity(); 85 return lifecycleNotifier().hasPendingActivity();
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after
267 void ExecutionContext::trace(Visitor* visitor) 268 void ExecutionContext::trace(Visitor* visitor)
268 { 269 {
269 #if ENABLE(OILPAN) 270 #if ENABLE(OILPAN)
270 visitor->trace(m_pendingExceptions); 271 visitor->trace(m_pendingExceptions);
271 HeapSupplementable<ExecutionContext>::trace(visitor); 272 HeapSupplementable<ExecutionContext>::trace(visitor);
272 #endif 273 #endif
273 LifecycleContext<ExecutionContext>::trace(visitor); 274 LifecycleContext<ExecutionContext>::trace(visitor);
274 } 275 }
275 276
276 } // namespace blink 277 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698