| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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/guest_view/web_view/web_view_content_script_manager
.h" | 5 #include "extensions/browser/guest_view/web_view/web_view_content_script_manager
.h" |
| 6 | 6 |
| 7 #include "base/lazy_instance.h" | 7 #include "base/lazy_instance.h" |
| 8 #include "base/memory/linked_ptr.h" | 8 #include "base/memory/linked_ptr.h" |
| 9 #include "components/guest_view/browser/guest_view_manager.h" |
| 9 #include "content/public/browser/browser_context.h" | 10 #include "content/public/browser/browser_context.h" |
| 10 #include "content/public/browser/browser_thread.h" | 11 #include "content/public/browser/browser_thread.h" |
| 11 #include "content/public/browser/navigation_details.h" | 12 #include "content/public/browser/navigation_details.h" |
| 12 #include "content/public/browser/render_process_host.h" | 13 #include "content/public/browser/render_process_host.h" |
| 13 #include "content/public/browser/web_contents.h" | 14 #include "content/public/browser/web_contents.h" |
| 14 #include "content/public/browser/web_contents_observer.h" | 15 #include "content/public/browser/web_contents_observer.h" |
| 15 #include "extensions/browser/declarative_user_script_manager.h" | 16 #include "extensions/browser/declarative_user_script_manager.h" |
| 16 #include "extensions/browser/declarative_user_script_master.h" | 17 #include "extensions/browser/declarative_user_script_master.h" |
| 17 #include "extensions/browser/extension_system.h" | 18 #include "extensions/browser/extension_system.h" |
| 18 #include "extensions/browser/guest_view/guest_view_manager.h" | |
| 19 #include "extensions/browser/guest_view/web_view/web_view_constants.h" | 19 #include "extensions/browser/guest_view/web_view/web_view_constants.h" |
| 20 #include "extensions/browser/guest_view/web_view/web_view_guest.h" | 20 #include "extensions/browser/guest_view/web_view/web_view_guest.h" |
| 21 #include "extensions/browser/guest_view/web_view/web_view_renderer_state.h" | 21 #include "extensions/browser/guest_view/web_view/web_view_renderer_state.h" |
| 22 | 22 |
| 23 using content::BrowserThread; | 23 using content::BrowserThread; |
| 24 | 24 |
| 25 namespace extensions { | 25 namespace extensions { |
| 26 | 26 |
| 27 // This observer ensures that the content scripts added by the guest are removed | 27 // This observer ensures that the content scripts added by the guest are removed |
| 28 // when its embedder goes away. | 28 // when its embedder goes away. |
| (...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 261 if (iter == guest_content_script_map_.end()) | 261 if (iter == guest_content_script_map_.end()) |
| 262 return ids; | 262 return ids; |
| 263 const ContentScriptMap& map = iter->second; | 263 const ContentScriptMap& map = iter->second; |
| 264 for (const auto& pair : map) | 264 for (const auto& pair : map) |
| 265 ids.insert(pair.second.id()); | 265 ids.insert(pair.second.id()); |
| 266 | 266 |
| 267 return ids; | 267 return ids; |
| 268 } | 268 } |
| 269 | 269 |
| 270 } // namespace extensions | 270 } // namespace extensions |
| OLD | NEW |