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 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
173 const std::string& font_size); | 173 const std::string& font_size); |
174 void OnShouldSuspend(const std::string& extension_id, int sequence_id); | 174 void OnShouldSuspend(const std::string& extension_id, int sequence_id); |
175 void OnSuspend(const std::string& extension_id); | 175 void OnSuspend(const std::string& extension_id); |
176 void OnTransferBlobs(const std::vector<std::string>& blob_uuids); | 176 void OnTransferBlobs(const std::vector<std::string>& blob_uuids); |
177 void OnUnloaded(const std::string& id); | 177 void OnUnloaded(const std::string& id); |
178 void OnUpdatePermissions(const ExtensionMsg_UpdatePermissions_Params& params); | 178 void OnUpdatePermissions(const ExtensionMsg_UpdatePermissions_Params& params); |
179 void OnUpdateTabSpecificPermissions(int page_id, | 179 void OnUpdateTabSpecificPermissions(int page_id, |
180 int tab_id, | 180 int tab_id, |
181 const std::string& extension_id, | 181 const std::string& extension_id, |
182 const URLPatternSet& origin_set); | 182 const URLPatternSet& origin_set); |
183 void OnUpdateUserScripts(base::SharedMemoryHandle scripts); | 183 void OnUpdateUserScripts(base::SharedMemoryHandle scripts, |
| 184 const std::set<std::string>& extension_ids); |
184 void OnUsingWebRequestAPI(bool adblock, | 185 void OnUsingWebRequestAPI(bool adblock, |
185 bool adblock_plus, | 186 bool adblock_plus, |
186 bool other_webrequest); | 187 bool other_webrequest); |
187 | 188 |
188 void UpdateActiveExtensions(); | 189 void UpdateActiveExtensions(); |
189 | 190 |
190 // Sets up the host permissions for |extension|. | 191 // Sets up the host permissions for |extension|. |
191 void InitOriginPermissions(const Extension* extension, | 192 void InitOriginPermissions(const Extension* extension, |
192 Feature::Context context_type); | 193 Feature::Context context_type); |
193 void UpdateOriginPermissions(UpdatedExtensionPermissionsInfo::Reason reason, | 194 void UpdateOriginPermissions(UpdatedExtensionPermissionsInfo::Reason reason, |
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
285 | 286 |
286 // True once WebKit has been initialized (and it is therefore safe to poke). | 287 // True once WebKit has been initialized (and it is therefore safe to poke). |
287 bool is_webkit_initialized_; | 288 bool is_webkit_initialized_; |
288 | 289 |
289 DISALLOW_COPY_AND_ASSIGN(Dispatcher); | 290 DISALLOW_COPY_AND_ASSIGN(Dispatcher); |
290 }; | 291 }; |
291 | 292 |
292 } // namespace extensions | 293 } // namespace extensions |
293 | 294 |
294 #endif // EXTENSIONS_RENDERER_DISPATCHER_H_ | 295 #endif // EXTENSIONS_RENDERER_DISPATCHER_H_ |
OLD | NEW |