| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2010, 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2010, 2012 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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 44 // after script execution on a worker has been scheduled to terminate. | 44 // after script execution on a worker has been scheduled to terminate. |
| 45 // | 45 // |
| 46 // Should only be created, used, and destroyed on the script execution | 46 // Should only be created, used, and destroyed on the script execution |
| 47 // context thread. | 47 // context thread. |
| 48 class CORE_EXPORT ActiveDOMCallback : public ContextLifecycleObserver { | 48 class CORE_EXPORT ActiveDOMCallback : public ContextLifecycleObserver { |
| 49 public: | 49 public: |
| 50 explicit ActiveDOMCallback(ExecutionContext*); | 50 explicit ActiveDOMCallback(ExecutionContext*); |
| 51 virtual ~ActiveDOMCallback(); | 51 virtual ~ActiveDOMCallback(); |
| 52 | 52 |
| 53 bool canInvokeCallback() const; | 53 bool canInvokeCallback() const; |
| 54 bool isScriptControllerTerminating() const; | |
| 55 }; | 54 }; |
| 56 | 55 |
| 57 } // namespace blink | 56 } // namespace blink |
| 58 | 57 |
| 59 #endif // ActiveDOMCallback_h | 58 #endif // ActiveDOMCallback_h |
| OLD | NEW |