| 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 #ifndef EXTENSIONS_BROWSER_GUEST_VIEW_WEB_VIEW_WEB_VIEW_CONTENT_SCRIPT_MANAGER_H | 5 #ifndef EXTENSIONS_BROWSER_GUEST_VIEW_WEB_VIEW_WEB_VIEW_CONTENT_SCRIPT_MANAGER_H |
| 6 #define EXTENSIONS_BROWSER_GUEST_VIEW_WEB_VIEW_WEB_VIEW_CONTENT_SCRIPT_MANAGER_H | 6 #define EXTENSIONS_BROWSER_GUEST_VIEW_WEB_VIEW_WEB_VIEW_CONTENT_SCRIPT_MANAGER_H |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <set> | 9 #include <set> |
| 10 #include <string> | 10 #include <string> |
| 11 #include <vector> | 11 #include <vector> |
| 12 | 12 |
| 13 #include "base/callback.h" | 13 #include "base/callback.h" |
| 14 #include "base/macros.h" | 14 #include "base/macros.h" |
| 15 #include "base/supports_user_data.h" | 15 #include "base/supports_user_data.h" |
| 16 #include "extensions/browser/user_script_loader.h" | 16 #include "extensions/browser/user_script_loader.h" |
| 17 | 17 |
| 18 struct HostID; | 18 struct HostID; |
| 19 | 19 |
| 20 namespace content { | 20 namespace content { |
| 21 class BrowserContext; | 21 class BrowserContext; |
| 22 class RenderFrameHost; | 22 class RenderFrameHost; |
| 23 class WebContents; | |
| 24 } | 23 } |
| 25 | 24 |
| 26 namespace extensions { | 25 namespace extensions { |
| 27 class UserScript; | |
| 28 | 26 |
| 29 // WebViewContentScriptManager manages the content scripts that each webview | 27 // WebViewContentScriptManager manages the content scripts that each webview |
| 30 // guest adds and removes programmatically. | 28 // guest adds and removes programmatically. |
| 31 class WebViewContentScriptManager : public base::SupportsUserData::Data, | 29 class WebViewContentScriptManager : public base::SupportsUserData::Data, |
| 32 public UserScriptLoader::Observer { | 30 public UserScriptLoader::Observer { |
| 33 public: | 31 public: |
| 34 explicit WebViewContentScriptManager( | 32 explicit WebViewContentScriptManager( |
| 35 content::BrowserContext* browser_context); | 33 content::BrowserContext* browser_context); |
| 36 ~WebViewContentScriptManager() override; | 34 ~WebViewContentScriptManager() override; |
| 37 | 35 |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 101 std::vector<base::Closure> pending_scripts_loading_callbacks_; | 99 std::vector<base::Closure> pending_scripts_loading_callbacks_; |
| 102 | 100 |
| 103 content::BrowserContext* browser_context_; | 101 content::BrowserContext* browser_context_; |
| 104 | 102 |
| 105 DISALLOW_COPY_AND_ASSIGN(WebViewContentScriptManager); | 103 DISALLOW_COPY_AND_ASSIGN(WebViewContentScriptManager); |
| 106 }; | 104 }; |
| 107 | 105 |
| 108 } // namespace extensions | 106 } // namespace extensions |
| 109 | 107 |
| 110 #endif // EXTENSIONS_BROWSER_GUEST_VIEW_WEB_VIEW_WEB_VIEW_CONTENT_SCRIPT_MANAGE
R_H | 108 #endif // EXTENSIONS_BROWSER_GUEST_VIEW_WEB_VIEW_WEB_VIEW_CONTENT_SCRIPT_MANAGE
R_H |
| OLD | NEW |