| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef THIRD_PARTY_WEBKIT_SOURCE_PLATFORM_SCHEDULER_CHILD_SCHEDULER_HELPER_H_ | 5 #ifndef THIRD_PARTY_WEBKIT_SOURCE_PLATFORM_SCHEDULER_CHILD_SCHEDULER_HELPER_H_ |
| 6 #define THIRD_PARTY_WEBKIT_SOURCE_PLATFORM_SCHEDULER_CHILD_SCHEDULER_HELPER_H_ | 6 #define THIRD_PARTY_WEBKIT_SOURCE_PLATFORM_SCHEDULER_CHILD_SCHEDULER_HELPER_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 // Common scheduler functionality for default tasks. | 24 // Common scheduler functionality for default tasks. |
| 25 class BLINK_PLATFORM_EXPORT SchedulerHelper | 25 class BLINK_PLATFORM_EXPORT SchedulerHelper |
| 26 : public TaskQueueManager::Observer { | 26 : public TaskQueueManager::Observer { |
| 27 public: | 27 public: |
| 28 // Category strings must have application lifetime (statics or | 28 // Category strings must have application lifetime (statics or |
| 29 // literals). They may not include " chars. | 29 // literals). They may not include " chars. |
| 30 SchedulerHelper( | 30 SchedulerHelper( |
| 31 scoped_refptr<SchedulerTqmDelegate> task_queue_manager_delegate, | 31 scoped_refptr<SchedulerTqmDelegate> task_queue_manager_delegate, |
| 32 const char* tracing_category, | 32 const char* tracing_category, |
| 33 const char* disabled_by_default_tracing_category, | 33 const char* disabled_by_default_tracing_category, |
| 34 const char* disabled_by_default_verbose_tracing_category, | 34 const char* disabled_by_default_verbose_tracing_category); |
| 35 bool set_crash_keys = false); | |
| 36 ~SchedulerHelper() override; | 35 ~SchedulerHelper() override; |
| 37 | 36 |
| 38 // TaskQueueManager::Observer implementation: | 37 // TaskQueueManager::Observer implementation: |
| 39 void OnUnregisterTaskQueue(const scoped_refptr<TaskQueue>& queue) override; | 38 void OnUnregisterTaskQueue(const scoped_refptr<TaskQueue>& queue) override; |
| 40 void OnTriedToExecuteBlockedTask(const TaskQueue& queue, | 39 void OnTriedToExecuteBlockedTask(const TaskQueue& queue, |
| 41 const base::PendingTask& task) override; | 40 const base::PendingTask& task) override; |
| 42 | 41 |
| 43 // Returns the default task runner. | 42 // Returns the default task runner. |
| 44 scoped_refptr<TaskQueue> DefaultTaskRunner(); | 43 scoped_refptr<TaskQueue> DefaultTaskRunner(); |
| 45 | 44 |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 118 const char* tracing_category_; | 117 const char* tracing_category_; |
| 119 const char* disabled_by_default_tracing_category_; | 118 const char* disabled_by_default_tracing_category_; |
| 120 | 119 |
| 121 DISALLOW_COPY_AND_ASSIGN(SchedulerHelper); | 120 DISALLOW_COPY_AND_ASSIGN(SchedulerHelper); |
| 122 }; | 121 }; |
| 123 | 122 |
| 124 } // namespace scheduler | 123 } // namespace scheduler |
| 125 } // namespace blink | 124 } // namespace blink |
| 126 | 125 |
| 127 #endif // THIRD_PARTY_WEBKIT_SOURCE_PLATFORM_SCHEDULER_CHILD_SCHEDULER_HELPER_H
_ | 126 #endif // THIRD_PARTY_WEBKIT_SOURCE_PLATFORM_SCHEDULER_CHILD_SCHEDULER_HELPER_H
_ |
| OLD | NEW |