OLD | NEW |
---|---|
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 #include "content/renderer/scheduler/task_queue_manager.h" | 5 #include "content/renderer/scheduler/task_queue_manager.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/debug/trace_event.h" | |
Primiano Tucci (use gerrit)
2015/02/03 14:35:10
Just adding some context for the OWNERS (no action
| |
9 #include "base/debug/trace_event_argument.h" | |
10 #include "base/trace_event/trace_event.h" | 8 #include "base/trace_event/trace_event.h" |
11 #include "base/trace_event/trace_event_argument.h" | 9 #include "base/trace_event/trace_event_argument.h" |
12 #include "content/renderer/scheduler/task_queue_selector.h" | 10 #include "content/renderer/scheduler/task_queue_selector.h" |
13 | 11 |
14 namespace content { | 12 namespace content { |
15 namespace internal { | 13 namespace internal { |
16 | 14 |
17 class TaskQueue : public base::SingleThreadTaskRunner { | 15 class TaskQueue : public base::SingleThreadTaskRunner { |
18 public: | 16 public: |
19 TaskQueue(TaskQueueManager* task_queue_manager); | 17 TaskQueue(TaskQueueManager* task_queue_manager); |
(...skipping 382 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
402 state->EndArray(); | 400 state->EndArray(); |
403 state->BeginDictionary("selector"); | 401 state->BeginDictionary("selector"); |
404 selector_->AsValueInto(state.get()); | 402 selector_->AsValueInto(state.get()); |
405 state->EndDictionary(); | 403 state->EndDictionary(); |
406 if (should_run) | 404 if (should_run) |
407 state->SetInteger("selected_queue", selected_queue); | 405 state->SetInteger("selected_queue", selected_queue); |
408 return state; | 406 return state; |
409 } | 407 } |
410 | 408 |
411 } // namespace content | 409 } // namespace content |
OLD | NEW |