OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_API_WEB_REQUEST_WEB_REQUEST_API_H_ | 5 #ifndef EXTENSIONS_BROWSER_API_WEB_REQUEST_WEB_REQUEST_API_H_ |
6 #define EXTENSIONS_BROWSER_API_WEB_REQUEST_WEB_REQUEST_API_H_ | 6 #define EXTENSIONS_BROWSER_API_WEB_REQUEST_WEB_REQUEST_API_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <list> | 10 #include <list> |
(...skipping 256 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
267 const std::string& extension_name, | 267 const std::string& extension_name, |
268 events::HistogramValue histogram_value, | 268 events::HistogramValue histogram_value, |
269 const std::string& event_name, | 269 const std::string& event_name, |
270 const std::string& sub_event_name, | 270 const std::string& sub_event_name, |
271 const RequestFilter& filter, | 271 const RequestFilter& filter, |
272 int extra_info_spec, | 272 int extra_info_spec, |
273 int embedder_process_id, | 273 int embedder_process_id, |
274 int web_view_instance_id, | 274 int web_view_instance_id, |
275 base::WeakPtr<IPC::Sender> ipc_sender); | 275 base::WeakPtr<IPC::Sender> ipc_sender); |
276 | 276 |
| 277 // Get the number of listeners - for testing only. |
| 278 int GetListenerCountForTesting(void* browser_context, |
| 279 const std::string& event_name); |
| 280 |
277 // Removes the listener for the given sub-event. | 281 // Removes the listener for the given sub-event. |
278 void RemoveEventListener( | 282 void RemoveEventListener( |
279 void* browser_context, | 283 void* browser_context, |
280 const std::string& extension_id, | 284 const std::string& extension_id, |
281 const std::string& sub_event_name, | 285 const std::string& sub_event_name, |
282 int embedder_process_id, | 286 int embedder_process_id, |
283 int web_view_instance_id); | 287 int web_view_instance_id); |
284 | 288 |
285 // Removes the listeners for a given <webview>. | 289 // Removes the listeners for a given <webview>. |
286 void RemoveWebViewEventListeners( | 290 void RemoveWebViewEventListeners( |
(...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
535 extensions::QuotaLimitHeuristics* heuristics) const override; | 539 extensions::QuotaLimitHeuristics* heuristics) const override; |
536 // Handle quota exceeded gracefully: Only warn the user but still execute the | 540 // Handle quota exceeded gracefully: Only warn the user but still execute the |
537 // function. | 541 // function. |
538 void OnQuotaExceeded(const std::string& error) override; | 542 void OnQuotaExceeded(const std::string& error) override; |
539 bool RunSync() override; | 543 bool RunSync() override; |
540 }; | 544 }; |
541 | 545 |
542 } // namespace extensions | 546 } // namespace extensions |
543 | 547 |
544 #endif // EXTENSIONS_BROWSER_API_WEB_REQUEST_WEB_REQUEST_API_H_ | 548 #endif // EXTENSIONS_BROWSER_API_WEB_REQUEST_WEB_REQUEST_API_H_ |
OLD | NEW |