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