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