OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 "chrome/browser/chromeos/arc/extensions/arc_support_message_host.h" | 5 #include "chrome/browser/chromeos/arc/extensions/arc_support_message_host.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 | 8 |
9 #include "base/json/json_reader.h" | 9 #include "base/json/json_reader.h" |
10 #include "base/json/json_writer.h" | 10 #include "base/json/json_writer.h" |
| 11 #include "base/single_thread_task_runner.h" |
11 #include "base/threading/thread_task_runner_handle.h" | 12 #include "base/threading/thread_task_runner_handle.h" |
12 #include "chrome/browser/chromeos/arc/arc_session_manager.h" | 13 #include "chrome/browser/chromeos/arc/arc_session_manager.h" |
13 #include "chrome/browser/chromeos/arc/arc_support_host.h" | 14 #include "chrome/browser/chromeos/arc/arc_support_host.h" |
14 | 15 |
15 namespace arc { | 16 namespace arc { |
16 | 17 |
17 // static | 18 // static |
18 const char ArcSupportMessageHost::kHostName[] = "com.google.arc_support"; | 19 const char ArcSupportMessageHost::kHostName[] = "com.google.arc_support"; |
19 | 20 |
20 // static | 21 // static |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
81 | 82 |
82 observer_->OnMessage(*message); | 83 observer_->OnMessage(*message); |
83 } | 84 } |
84 | 85 |
85 scoped_refptr<base::SingleThreadTaskRunner> ArcSupportMessageHost::task_runner() | 86 scoped_refptr<base::SingleThreadTaskRunner> ArcSupportMessageHost::task_runner() |
86 const { | 87 const { |
87 return base::ThreadTaskRunnerHandle::Get(); | 88 return base::ThreadTaskRunnerHandle::Get(); |
88 } | 89 } |
89 | 90 |
90 } // namespace arc | 91 } // namespace arc |
OLD | NEW |