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_DISPATCHER_H_ | 5 #ifndef EXTENSIONS_RENDERER_DISPATCHER_H_ |
6 #define EXTENSIONS_RENDERER_DISPATCHER_H_ | 6 #define EXTENSIONS_RENDERER_DISPATCHER_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <set> | 9 #include <set> |
10 #include <string> | 10 #include <string> |
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
184 void OnUpdateTabSpecificPermissions(const GURL& visible_url, | 184 void OnUpdateTabSpecificPermissions(const GURL& visible_url, |
185 const std::string& extension_id, | 185 const std::string& extension_id, |
186 const URLPatternSet& new_hosts, | 186 const URLPatternSet& new_hosts, |
187 bool update_origin_whitelist, | 187 bool update_origin_whitelist, |
188 int tab_id); | 188 int tab_id); |
189 void OnClearTabSpecificPermissions( | 189 void OnClearTabSpecificPermissions( |
190 const std::vector<std::string>& extension_ids, | 190 const std::vector<std::string>& extension_ids, |
191 bool update_origin_whitelist, | 191 bool update_origin_whitelist, |
192 int tab_id); | 192 int tab_id); |
193 void OnUsingWebRequestAPI(bool webrequest_used); | 193 void OnUsingWebRequestAPI(bool webrequest_used); |
| 194 void OnGuestContentWindowReady(const IPC::Message& message); |
194 | 195 |
195 // UserScriptSetManager::Observer implementation. | 196 // UserScriptSetManager::Observer implementation. |
196 void OnUserScriptsUpdated(const std::set<HostID>& changed_hosts, | 197 void OnUserScriptsUpdated(const std::set<HostID>& changed_hosts, |
197 const std::vector<UserScript*>& scripts) override; | 198 const std::vector<UserScript*>& scripts) override; |
198 | 199 |
199 void UpdateActiveExtensions(); | 200 void UpdateActiveExtensions(); |
200 | 201 |
201 // Sets up the host permissions for |extension|. | 202 // Sets up the host permissions for |extension|. |
202 void InitOriginPermissions(const Extension* extension); | 203 void InitOriginPermissions(const Extension* extension); |
203 | 204 |
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
311 | 312 |
312 // Status of webrequest usage. | 313 // Status of webrequest usage. |
313 bool webrequest_used_; | 314 bool webrequest_used_; |
314 | 315 |
315 DISALLOW_COPY_AND_ASSIGN(Dispatcher); | 316 DISALLOW_COPY_AND_ASSIGN(Dispatcher); |
316 }; | 317 }; |
317 | 318 |
318 } // namespace extensions | 319 } // namespace extensions |
319 | 320 |
320 #endif // EXTENSIONS_RENDERER_DISPATCHER_H_ | 321 #endif // EXTENSIONS_RENDERER_DISPATCHER_H_ |
OLD | NEW |