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 | |
281 // Removes the listener for the given sub-event. | 277 // Removes the listener for the given sub-event. |
282 void RemoveEventListener( | 278 void RemoveEventListener( |
283 void* browser_context, | 279 void* browser_context, |
284 const std::string& extension_id, | 280 const std::string& extension_id, |
285 const std::string& sub_event_name, | 281 const std::string& sub_event_name, |
286 int embedder_process_id, | 282 int embedder_process_id, |
287 int web_view_instance_id); | 283 int web_view_instance_id); |
288 | 284 |
289 // Removes the listeners for a given <webview>. | 285 // Removes the listeners for a given <webview>. |
290 void RemoveWebViewEventListeners( | 286 void RemoveWebViewEventListeners( |
(...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
539 extensions::QuotaLimitHeuristics* heuristics) const override; | 535 extensions::QuotaLimitHeuristics* heuristics) const override; |
540 // Handle quota exceeded gracefully: Only warn the user but still execute the | 536 // Handle quota exceeded gracefully: Only warn the user but still execute the |
541 // function. | 537 // function. |
542 void OnQuotaExceeded(const std::string& error) override; | 538 void OnQuotaExceeded(const std::string& error) override; |
543 bool RunSync() override; | 539 bool RunSync() override; |
544 }; | 540 }; |
545 | 541 |
546 } // namespace extensions | 542 } // namespace extensions |
547 | 543 |
548 #endif // EXTENSIONS_BROWSER_API_WEB_REQUEST_WEB_REQUEST_API_H_ | 544 #endif // EXTENSIONS_BROWSER_API_WEB_REQUEST_WEB_REQUEST_API_H_ |
OLD | NEW |