Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(32)

Side by Side Diff: extensions/browser/api/web_request/web_request_api.h

Issue 1465503002: Revert of CHECK that URLRequestJobs are not orphaned while blocked by extensions. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Make git do the revert Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
268 // Called when an event listener handles a blocking event and responds. 264 // Called when an event listener handles a blocking event and responds.
269 void OnEventHandled(void* browser_context, 265 void OnEventHandled(void* browser_context,
270 const std::string& extension_id, 266 const std::string& extension_id,
271 const std::string& event_name, 267 const std::string& event_name,
272 const std::string& sub_event_name, 268 const std::string& sub_event_name,
273 uint64_t request_id, 269 uint64_t request_id,
274 EventResponse* response); 270 EventResponse* response);
275 271
276 // Adds a listener to the given event. |event_name| specifies the event being 272 // Adds a listener to the given event. |event_name| specifies the event being
277 // listened to. |sub_event_name| is an internal event uniquely generated in 273 // listened to. |sub_event_name| is an internal event uniquely generated in
(...skipping 278 matching lines...) Expand 10 before | Expand all | Expand 10 after
556 extensions::QuotaLimitHeuristics* heuristics) const override; 552 extensions::QuotaLimitHeuristics* heuristics) const override;
557 // Handle quota exceeded gracefully: Only warn the user but still execute the 553 // Handle quota exceeded gracefully: Only warn the user but still execute the
558 // function. 554 // function.
559 void OnQuotaExceeded(const std::string& error) override; 555 void OnQuotaExceeded(const std::string& error) override;
560 bool RunSync() override; 556 bool RunSync() override;
561 }; 557 };
562 558
563 } // namespace extensions 559 } // namespace extensions
564 560
565 #endif // EXTENSIONS_BROWSER_API_WEB_REQUEST_WEB_REQUEST_API_H_ 561 #endif // EXTENSIONS_BROWSER_API_WEB_REQUEST_WEB_REQUEST_API_H_
OLDNEW
« no previous file with comments | « chrome/browser/net/chrome_network_delegate.cc ('k') | extensions/browser/api/web_request/web_request_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698