| 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 #ifndef EXTENSIONS_RENDERER_SCRIPT_INJECTION_MANAGER_H_ | 5 #ifndef EXTENSIONS_RENDERER_SCRIPT_INJECTION_MANAGER_H_ |
| 6 #define EXTENSIONS_RENDERER_SCRIPT_INJECTION_MANAGER_H_ | 6 #define EXTENSIONS_RENDERER_SCRIPT_INJECTION_MANAGER_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <set> | 9 #include <set> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 92 // Handle the GrantInjectionPermission extension message. | 92 // Handle the GrantInjectionPermission extension message. |
| 93 void HandlePermitScriptInjection(int64 request_id); | 93 void HandlePermitScriptInjection(int64 request_id); |
| 94 | 94 |
| 95 // Extensions metadata, owned by Dispatcher (which owns this object). | 95 // Extensions metadata, owned by Dispatcher (which owns this object). |
| 96 const ExtensionSet* extensions_; | 96 const ExtensionSet* extensions_; |
| 97 | 97 |
| 98 // The map of active web frames to their corresponding statuses. The | 98 // The map of active web frames to their corresponding statuses. The |
| 99 // RunLocation of the frame corresponds to the last location that has ran. | 99 // RunLocation of the frame corresponds to the last location that has ran. |
| 100 FrameStatusMap frame_statuses_; | 100 FrameStatusMap frame_statuses_; |
| 101 | 101 |
| 102 // The frame currently being injected into, so long as that frame is valid. |
| 103 content::RenderFrame* valid_running_injection_frame_; |
| 104 |
| 102 // The collection of RFOHelpers. | 105 // The collection of RFOHelpers. |
| 103 ScopedVector<RFOHelper> rfo_helpers_; | 106 ScopedVector<RFOHelper> rfo_helpers_; |
| 104 | 107 |
| 105 // The set of UserScripts associated with extensions. Owned by the Dispatcher. | 108 // The set of UserScripts associated with extensions. Owned by the Dispatcher. |
| 106 UserScriptSetManager* user_script_set_manager_; | 109 UserScriptSetManager* user_script_set_manager_; |
| 107 | 110 |
| 108 // Pending injections which are waiting for either the proper run location or | 111 // Pending injections which are waiting for either the proper run location or |
| 109 // user consent. | 112 // user consent. |
| 110 ScopedVector<ScriptInjection> pending_injections_; | 113 ScopedVector<ScriptInjection> pending_injections_; |
| 111 | 114 |
| 112 // Running injections which are waiting for async callbacks from blink. | 115 // Running injections which are waiting for async callbacks from blink. |
| 113 ScopedVector<ScriptInjection> running_injections_; | 116 ScopedVector<ScriptInjection> running_injections_; |
| 114 | 117 |
| 115 ScopedObserver<UserScriptSetManager, UserScriptSetManager::Observer> | 118 ScopedObserver<UserScriptSetManager, UserScriptSetManager::Observer> |
| 116 user_script_set_manager_observer_; | 119 user_script_set_manager_observer_; |
| 117 | 120 |
| 118 DISALLOW_COPY_AND_ASSIGN(ScriptInjectionManager); | 121 DISALLOW_COPY_AND_ASSIGN(ScriptInjectionManager); |
| 119 }; | 122 }; |
| 120 | 123 |
| 121 } // namespace extensions | 124 } // namespace extensions |
| 122 | 125 |
| 123 #endif // EXTENSIONS_RENDERER_SCRIPT_INJECTION_MANAGER_H_ | 126 #endif // EXTENSIONS_RENDERER_SCRIPT_INJECTION_MANAGER_H_ |
| OLD | NEW |