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 <list> | 8 #include <list> |
9 #include <map> | 9 #include <map> |
10 #include <set> | 10 #include <set> |
(...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
254 // Dispatches an onErrorOccurred event. | 254 // Dispatches an onErrorOccurred event. |
255 void OnErrorOccurred(void* browser_context, | 255 void OnErrorOccurred(void* browser_context, |
256 const extensions::InfoMap* extension_info_map, | 256 const extensions::InfoMap* extension_info_map, |
257 net::URLRequest* request, | 257 net::URLRequest* request, |
258 bool started); | 258 bool started); |
259 | 259 |
260 // Notifications when objects are going away. | 260 // Notifications when objects are going away. |
261 void OnURLRequestDestroyed(void* browser_context, | 261 void OnURLRequestDestroyed(void* browser_context, |
262 const net::URLRequest* request); | 262 const net::URLRequest* request); |
263 | 263 |
| 264 // See https://crbug.com/289715. |
| 265 void OnURLRequestJobOrphaned(void* browser_context, |
| 266 const net::URLRequest* request); |
| 267 |
264 // Called when an event listener handles a blocking event and responds. | 268 // Called when an event listener handles a blocking event and responds. |
265 void OnEventHandled(void* browser_context, | 269 void OnEventHandled(void* browser_context, |
266 const std::string& extension_id, | 270 const std::string& extension_id, |
267 const std::string& event_name, | 271 const std::string& event_name, |
268 const std::string& sub_event_name, | 272 const std::string& sub_event_name, |
269 uint64_t request_id, | 273 uint64_t request_id, |
270 EventResponse* response); | 274 EventResponse* response); |
271 | 275 |
272 // Adds a listener to the given event. |event_name| specifies the event being | 276 // Adds a listener to the given event. |event_name| specifies the event being |
273 // listened to. |sub_event_name| is an internal event uniquely generated in | 277 // listened to. |sub_event_name| is an internal event uniquely generated in |
(...skipping 278 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
552 extensions::QuotaLimitHeuristics* heuristics) const override; | 556 extensions::QuotaLimitHeuristics* heuristics) const override; |
553 // Handle quota exceeded gracefully: Only warn the user but still execute the | 557 // Handle quota exceeded gracefully: Only warn the user but still execute the |
554 // function. | 558 // function. |
555 void OnQuotaExceeded(const std::string& error) override; | 559 void OnQuotaExceeded(const std::string& error) override; |
556 bool RunSync() override; | 560 bool RunSync() override; |
557 }; | 561 }; |
558 | 562 |
559 } // namespace extensions | 563 } // namespace extensions |
560 | 564 |
561 #endif // EXTENSIONS_BROWSER_API_WEB_REQUEST_WEB_REQUEST_API_H_ | 565 #endif // EXTENSIONS_BROWSER_API_WEB_REQUEST_WEB_REQUEST_API_H_ |
OLD | NEW |