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_WEB_UI_USER_SCRIPT_LOADER_H_ | 5 #ifndef EXTENSIONS_BROWSER_WEB_UI_USER_SCRIPT_LOADER_H_ |
6 #define EXTENSIONS_BROWSER_WEB_UI_USER_SCRIPT_LOADER_H_ | 6 #define EXTENSIONS_BROWSER_WEB_UI_USER_SCRIPT_LOADER_H_ |
7 | 7 |
| 8 #include <stddef.h> |
| 9 |
8 #include <vector> | 10 #include <vector> |
9 | 11 |
10 #include "base/callback.h" | 12 #include "base/callback.h" |
| 13 #include "base/macros.h" |
11 #include "base/memory/scoped_ptr.h" | 14 #include "base/memory/scoped_ptr.h" |
12 #include "extensions/browser/user_script_loader.h" | 15 #include "extensions/browser/user_script_loader.h" |
13 | 16 |
14 class WebUIURLFetcher; | 17 class WebUIURLFetcher; |
15 | 18 |
16 namespace content { | 19 namespace content { |
17 class BrowserContext; | 20 class BrowserContext; |
18 } | 21 } |
19 | 22 |
20 // UserScriptLoader for WebUI. | 23 // UserScriptLoader for WebUI. |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
64 scoped_ptr<extensions::UserScriptList> user_scripts_cache_; | 67 scoped_ptr<extensions::UserScriptList> user_scripts_cache_; |
65 | 68 |
66 LoadScriptsCallback scripts_loaded_callback_; | 69 LoadScriptsCallback scripts_loaded_callback_; |
67 | 70 |
68 std::vector<scoped_ptr<WebUIURLFetcher>> fetchers_; | 71 std::vector<scoped_ptr<WebUIURLFetcher>> fetchers_; |
69 | 72 |
70 DISALLOW_COPY_AND_ASSIGN(WebUIUserScriptLoader); | 73 DISALLOW_COPY_AND_ASSIGN(WebUIUserScriptLoader); |
71 }; | 74 }; |
72 | 75 |
73 #endif // EXTENSIONS_BROWSER_WEB_UI_USER_SCRIPT_LOADER_H_ | 76 #endif // EXTENSIONS_BROWSER_WEB_UI_USER_SCRIPT_LOADER_H_ |
OLD | NEW |