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 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
192 void OnUpdateTabSpecificPermissions(const GURL& visible_url, | 192 void OnUpdateTabSpecificPermissions(const GURL& visible_url, |
193 const std::string& extension_id, | 193 const std::string& extension_id, |
194 const URLPatternSet& new_hosts, | 194 const URLPatternSet& new_hosts, |
195 bool update_origin_whitelist, | 195 bool update_origin_whitelist, |
196 int tab_id); | 196 int tab_id); |
197 void OnClearTabSpecificPermissions( | 197 void OnClearTabSpecificPermissions( |
198 const std::vector<std::string>& extension_ids, | 198 const std::vector<std::string>& extension_ids, |
199 bool update_origin_whitelist, | 199 bool update_origin_whitelist, |
200 int tab_id); | 200 int tab_id); |
201 void OnUsingWebRequestAPI(bool webrequest_used); | 201 void OnUsingWebRequestAPI(bool webrequest_used); |
| 202 void OnGuestContentWindowReady(const IPC::Message& message); |
202 | 203 |
203 // UserScriptSetManager::Observer implementation. | 204 // UserScriptSetManager::Observer implementation. |
204 void OnUserScriptsUpdated(const std::set<std::string>& changed_extensions, | 205 void OnUserScriptsUpdated(const std::set<std::string>& changed_extensions, |
205 const std::vector<UserScript*>& scripts) override; | 206 const std::vector<UserScript*>& scripts) override; |
206 | 207 |
207 void UpdateActiveExtensions(); | 208 void UpdateActiveExtensions(); |
208 | 209 |
209 // Sets up the host permissions for |extension|. | 210 // Sets up the host permissions for |extension|. |
210 void InitOriginPermissions(const Extension* extension); | 211 void InitOriginPermissions(const Extension* extension); |
211 | 212 |
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
324 | 325 |
325 // Status of webrequest usage. | 326 // Status of webrequest usage. |
326 bool webrequest_used_; | 327 bool webrequest_used_; |
327 | 328 |
328 DISALLOW_COPY_AND_ASSIGN(Dispatcher); | 329 DISALLOW_COPY_AND_ASSIGN(Dispatcher); |
329 }; | 330 }; |
330 | 331 |
331 } // namespace extensions | 332 } // namespace extensions |
332 | 333 |
333 #endif // EXTENSIONS_RENDERER_DISPATCHER_H_ | 334 #endif // EXTENSIONS_RENDERER_DISPATCHER_H_ |
OLD | NEW |