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 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
178 void OnUpdateTabSpecificPermissions(const GURL& visible_url, | 178 void OnUpdateTabSpecificPermissions(const GURL& visible_url, |
179 const std::string& extension_id, | 179 const std::string& extension_id, |
180 const URLPatternSet& new_hosts, | 180 const URLPatternSet& new_hosts, |
181 bool update_origin_whitelist, | 181 bool update_origin_whitelist, |
182 int tab_id); | 182 int tab_id); |
183 void OnClearTabSpecificPermissions( | 183 void OnClearTabSpecificPermissions( |
184 const std::vector<std::string>& extension_ids, | 184 const std::vector<std::string>& extension_ids, |
185 bool update_origin_whitelist, | 185 bool update_origin_whitelist, |
186 int tab_id); | 186 int tab_id); |
187 void OnUsingWebRequestAPI(bool webrequest_used); | 187 void OnUsingWebRequestAPI(bool webrequest_used); |
| 188 void OnGuestReady(const IPC::Message& message); |
188 | 189 |
189 // UserScriptSetManager::Observer implementation. | 190 // UserScriptSetManager::Observer implementation. |
190 void OnUserScriptsUpdated(const std::set<HostID>& changed_hosts, | 191 void OnUserScriptsUpdated(const std::set<HostID>& changed_hosts, |
191 const std::vector<UserScript*>& scripts) override; | 192 const std::vector<UserScript*>& scripts) override; |
192 | 193 |
193 void UpdateActiveExtensions(); | 194 void UpdateActiveExtensions(); |
194 | 195 |
195 // Sets up the host permissions for |extension|. | 196 // Sets up the host permissions for |extension|. |
196 void InitOriginPermissions(const Extension* extension); | 197 void InitOriginPermissions(const Extension* extension); |
197 | 198 |
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
305 | 306 |
306 // Status of webrequest usage. | 307 // Status of webrequest usage. |
307 bool webrequest_used_; | 308 bool webrequest_used_; |
308 | 309 |
309 DISALLOW_COPY_AND_ASSIGN(Dispatcher); | 310 DISALLOW_COPY_AND_ASSIGN(Dispatcher); |
310 }; | 311 }; |
311 | 312 |
312 } // namespace extensions | 313 } // namespace extensions |
313 | 314 |
314 #endif // EXTENSIONS_RENDERER_DISPATCHER_H_ | 315 #endif // EXTENSIONS_RENDERER_DISPATCHER_H_ |
OLD | NEW |