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

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

Issue 1413543005: Use FrameTreeNode ID as frameId in extension APIs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Nits in #16, s/FindByFrameTreeNodeID/FindFrameByFrameTreeNodeID/ Created 5 years, 1 month 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 325 matching lines...) Expand 10 before | Expand all | Expand 10 after
336 // Ensures that future callbacks for |request| are ignored so that it can be 336 // Ensures that future callbacks for |request| are ignored so that it can be
337 // destroyed safely. 337 // destroyed safely.
338 void ClearPendingCallbacks(const net::URLRequest* request); 338 void ClearPendingCallbacks(const net::URLRequest* request);
339 339
340 bool DispatchEvent( 340 bool DispatchEvent(
341 void* browser_context, 341 void* browser_context,
342 net::URLRequest* request, 342 net::URLRequest* request,
343 const std::vector<const EventListener*>& listeners, 343 const std::vector<const EventListener*>& listeners,
344 const base::ListValue& args); 344 const base::ListValue& args);
345 345
346 void DispatchEventOnIO(void* browser_context,
347 scoped_ptr<std::vector<EventListener>> listeners,
348 base::DictionaryValue* dict);
349
346 // Returns a list of event listeners that care about the given event, based 350 // Returns a list of event listeners that care about the given event, based
347 // on their filter parameters. |extra_info_spec| will contain the combined 351 // on their filter parameters. |extra_info_spec| will contain the combined
348 // set of extra_info_spec flags that every matching listener asked for. 352 // set of extra_info_spec flags that every matching listener asked for.
349 std::vector<const EventListener*> GetMatchingListeners( 353 std::vector<const EventListener*> GetMatchingListeners(
350 void* browser_context, 354 void* browser_context,
351 const extensions::InfoMap* extension_info_map, 355 const extensions::InfoMap* extension_info_map,
352 const std::string& event_name, 356 const std::string& event_name,
353 const net::URLRequest* request, 357 const net::URLRequest* request,
354 int* extra_info_spec); 358 int* extra_info_spec);
355 359
(...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after
556 extensions::QuotaLimitHeuristics* heuristics) const override; 560 extensions::QuotaLimitHeuristics* heuristics) const override;
557 // Handle quota exceeded gracefully: Only warn the user but still execute the 561 // Handle quota exceeded gracefully: Only warn the user but still execute the
558 // function. 562 // function.
559 void OnQuotaExceeded(const std::string& error) override; 563 void OnQuotaExceeded(const std::string& error) override;
560 bool RunSync() override; 564 bool RunSync() override;
561 }; 565 };
562 566
563 } // namespace extensions 567 } // namespace extensions
564 568
565 #endif // EXTENSIONS_BROWSER_API_WEB_REQUEST_WEB_REQUEST_API_H_ 569 #endif // EXTENSIONS_BROWSER_API_WEB_REQUEST_WEB_REQUEST_API_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698