OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/browser/child_process_security_policy_impl.h" | 5 #include "content/browser/child_process_security_policy_impl.h" |
6 | 6 |
7 #include <utility> | 7 #include <utility> |
8 | 8 |
9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
10 #include "base/files/file_path.h" | 10 #include "base/files/file_path.h" |
11 #include "base/logging.h" | 11 #include "base/logging.h" |
12 #include "base/macros.h" | 12 #include "base/macros.h" |
13 #include "base/metrics/histogram.h" | 13 #include "base/metrics/histogram.h" |
14 #include "base/stl_util.h" | 14 #include "base/stl_util.h" |
15 #include "base/strings/string_util.h" | 15 #include "base/strings/string_util.h" |
16 #include "build/build_config.h" | 16 #include "build/build_config.h" |
17 #include "content/browser/plugin_process_host.h" | |
18 #include "content/browser/site_instance_impl.h" | 17 #include "content/browser/site_instance_impl.h" |
19 #include "content/common/site_isolation_policy.h" | 18 #include "content/common/site_isolation_policy.h" |
20 #include "content/public/browser/child_process_data.h" | 19 #include "content/public/browser/child_process_data.h" |
21 #include "content/public/browser/content_browser_client.h" | 20 #include "content/public/browser/content_browser_client.h" |
22 #include "content/public/browser/render_process_host.h" | 21 #include "content/public/browser/render_process_host.h" |
23 #include "content/public/common/bindings_policy.h" | 22 #include "content/public/common/bindings_policy.h" |
24 #include "content/public/common/url_constants.h" | 23 #include "content/public/common/url_constants.h" |
25 #include "net/base/filename_util.h" | 24 #include "net/base/filename_util.h" |
26 #include "net/url_request/url_request.h" | 25 #include "net/url_request/url_request.h" |
27 #include "storage/browser/fileapi/file_permission_policy.h" | 26 #include "storage/browser/fileapi/file_permission_policy.h" |
(...skipping 840 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
868 base::AutoLock lock(lock_); | 867 base::AutoLock lock(lock_); |
869 | 868 |
870 SecurityStateMap::iterator state = security_state_.find(child_id); | 869 SecurityStateMap::iterator state = security_state_.find(child_id); |
871 if (state == security_state_.end()) | 870 if (state == security_state_.end()) |
872 return false; | 871 return false; |
873 | 872 |
874 return state->second->can_send_midi_sysex(); | 873 return state->second->can_send_midi_sysex(); |
875 } | 874 } |
876 | 875 |
877 } // namespace content | 876 } // namespace content |
OLD | NEW |