| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2010 Google Inc. All rights reserved. | 2 * Copyright (C) 2010 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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 48 | 48 |
| 49 namespace probe { | 49 namespace probe { |
| 50 | 50 |
| 51 class CORE_EXPORT AsyncTask { | 51 class CORE_EXPORT AsyncTask { |
| 52 STACK_ALLOCATED(); | 52 STACK_ALLOCATED(); |
| 53 | 53 |
| 54 public: | 54 public: |
| 55 AsyncTask(ExecutionContext*, | 55 AsyncTask(ExecutionContext*, |
| 56 void* task, | 56 void* task, |
| 57 const char* step = nullptr, | 57 const char* step = nullptr, |
| 58 bool enabled = true); | 58 bool enabled = true, |
| 59 bool optional = false); |
| 59 ~AsyncTask(); | 60 ~AsyncTask(); |
| 60 | 61 |
| 61 private: | 62 private: |
| 62 ThreadDebugger* debugger_; | 63 ThreadDebugger* debugger_; |
| 63 void* task_; | 64 void* task_; |
| 64 bool recurring_; | 65 bool recurring_; |
| 65 }; | 66 }; |
| 66 | 67 |
| 67 // Called from generated instrumentation code. | 68 // Called from generated instrumentation code. |
| 68 inline CoreProbeSink* ToCoreProbeSink(LocalFrame* frame) { | 69 inline CoreProbeSink* ToCoreProbeSink(LocalFrame* frame) { |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 112 unsigned long identifier, | 113 unsigned long identifier, |
| 113 const ResourceResponse&, | 114 const ResourceResponse&, |
| 114 Resource*); | 115 Resource*); |
| 115 | 116 |
| 116 } // namespace probe | 117 } // namespace probe |
| 117 } // namespace blink | 118 } // namespace blink |
| 118 | 119 |
| 119 #include "core/CoreProbesInl.h" | 120 #include "core/CoreProbesInl.h" |
| 120 | 121 |
| 121 #endif // !defined(CoreProbes_h) | 122 #endif // !defined(CoreProbes_h) |
| OLD | NEW |