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 #include "extensions/renderer/wake_event_page.h" | 5 #include "extensions/renderer/wake_event_page.h" |
6 | 6 |
7 #include <utility> | 7 #include <utility> |
8 | 8 |
9 #include "base/atomic_sequence_num.h" | 9 #include "base/atomic_sequence_num.h" |
10 #include "base/bind.h" | 10 #include "base/bind.h" |
11 #include "base/bind_helpers.h" | 11 #include "base/bind_helpers.h" |
12 #include "base/lazy_instance.h" | 12 #include "base/lazy_instance.h" |
13 #include "base/logging.h" | 13 #include "base/logging.h" |
| 14 #include "base/macros.h" |
14 #include "base/memory/scoped_ptr.h" | 15 #include "base/memory/scoped_ptr.h" |
15 #include "content/public/child/worker_thread.h" | 16 #include "content/public/child/worker_thread.h" |
16 #include "content/public/renderer/render_thread.h" | 17 #include "content/public/renderer/render_thread.h" |
17 #include "extensions/common/extension_messages.h" | 18 #include "extensions/common/extension_messages.h" |
18 #include "extensions/renderer/object_backed_native_handler.h" | 19 #include "extensions/renderer/object_backed_native_handler.h" |
19 #include "extensions/renderer/script_context.h" | 20 #include "extensions/renderer/script_context.h" |
20 #include "extensions/renderer/v8_helpers.h" | 21 #include "extensions/renderer/v8_helpers.h" |
21 #include "ipc/ipc_message.h" | 22 #include "ipc/ipc_message.h" |
22 #include "ipc/ipc_message_macros.h" | 23 #include "ipc/ipc_message_macros.h" |
23 | 24 |
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
190 // call immediately. | 191 // call immediately. |
191 request_data->on_response.Run(success); | 192 request_data->on_response.Run(success); |
192 } else { | 193 } else { |
193 content::WorkerThread::PostTask( | 194 content::WorkerThread::PostTask( |
194 request_data->thread_id, | 195 request_data->thread_id, |
195 base::Bind(request_data->on_response, success)); | 196 base::Bind(request_data->on_response, success)); |
196 } | 197 } |
197 } | 198 } |
198 | 199 |
199 } // namespace extensions | 200 } // namespace extensions |
OLD | NEW |