| 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/renderer/user_script_set_manager.h" | 5 #include "extensions/renderer/user_script_set_manager.h" |
| 6 | 6 |
| 7 #include "base/memory/ptr_util.h" |
| 7 #include "components/crx_file/id_util.h" | 8 #include "components/crx_file/id_util.h" |
| 8 #include "content/public/renderer/render_thread.h" | 9 #include "content/public/renderer/render_thread.h" |
| 9 #include "extensions/common/extension_messages.h" | 10 #include "extensions/common/extension_messages.h" |
| 10 #include "extensions/renderer/dispatcher.h" | 11 #include "extensions/renderer/dispatcher.h" |
| 11 #include "extensions/renderer/script_injection.h" | 12 #include "extensions/renderer/script_injection.h" |
| 12 #include "extensions/renderer/user_script_set.h" | 13 #include "extensions/renderer/user_script_set.h" |
| 13 #include "ipc/ipc_message.h" | 14 #include "ipc/ipc_message.h" |
| 14 #include "ipc/ipc_message_macros.h" | 15 #include "ipc/ipc_message_macros.h" |
| 15 | 16 |
| 16 namespace extensions { | 17 namespace extensions { |
| (...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 150 | 151 |
| 151 if (scripts->UpdateUserScripts(shared_memory, | 152 if (scripts->UpdateUserScripts(shared_memory, |
| 152 *effective_hosts, | 153 *effective_hosts, |
| 153 whitelisted_only)) { | 154 whitelisted_only)) { |
| 154 for (auto& observer : observers_) | 155 for (auto& observer : observers_) |
| 155 observer.OnUserScriptsUpdated(*effective_hosts); | 156 observer.OnUserScriptsUpdated(*effective_hosts); |
| 156 } | 157 } |
| 157 } | 158 } |
| 158 | 159 |
| 159 } // namespace extensions | 160 } // namespace extensions |
| OLD | NEW |