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 "extensions/browser/api/messaging/native_message_host.h" | 5 #include "extensions/browser/api/messaging/native_message_host.h" |
6 | 6 |
7 #include <memory> | 7 #include <memory> |
8 #include <string> | 8 #include <string> |
9 #include <utility> | 9 #include <utility> |
10 | 10 |
11 #include "base/bind.h" | 11 #include "base/bind.h" |
12 #include "base/bind_helpers.h" | 12 #include "base/bind_helpers.h" |
13 #include "base/json/json_reader.h" | 13 #include "base/json/json_reader.h" |
14 #include "base/json/json_writer.h" | 14 #include "base/json/json_writer.h" |
15 #include "base/location.h" | 15 #include "base/location.h" |
16 #include "base/macros.h" | 16 #include "base/macros.h" |
17 #include "base/thread_task_runner_handle.h" | 17 #include "base/threading/thread_task_runner_handle.h" |
18 #include "base/thread_task_runner_handle.h" | |
19 #include "base/values.h" | 18 #include "base/values.h" |
20 #include "chrome/browser/browser_process.h" | 19 #include "chrome/browser/browser_process.h" |
21 #include "chrome/browser/chromeos/arc/arc_support_host.h" | 20 #include "chrome/browser/chromeos/arc/arc_support_host.h" |
22 #include "chrome/browser/extensions/api/messaging/native_messaging_test_util.h" | 21 #include "chrome/browser/extensions/api/messaging/native_messaging_test_util.h" |
23 #include "components/policy/core/common/policy_service.h" | 22 #include "components/policy/core/common/policy_service.h" |
24 #include "content/public/browser/browser_thread.h" | 23 #include "content/public/browser/browser_thread.h" |
25 #include "extensions/common/constants.h" | 24 #include "extensions/common/constants.h" |
26 #include "extensions/common/url_pattern.h" | 25 #include "extensions/common/url_pattern.h" |
27 #include "net/url_request/url_request_context_getter.h" | 26 #include "net/url_request/url_request_context_getter.h" |
28 #include "remoting/host/chromoting_host_context.h" | 27 #include "remoting/host/chromoting_host_context.h" |
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
172 } | 171 } |
173 *error = kForbiddenError; | 172 *error = kForbiddenError; |
174 return nullptr; | 173 return nullptr; |
175 } | 174 } |
176 } | 175 } |
177 *error = kNotFoundError; | 176 *error = kNotFoundError; |
178 return nullptr; | 177 return nullptr; |
179 } | 178 } |
180 | 179 |
181 } // namespace extensions | 180 } // namespace extensions |
OLD | NEW |