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

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

Issue 589153002: Remove void* in WebRequestEventRouterDelegate (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase. Created 6 years, 3 months 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 CHROME_BROWSER_EXTENSIONS_API_WEB_REQUEST_WEB_REQUEST_API_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_WEB_REQUEST_WEB_REQUEST_API_H_
6 #define CHROME_BROWSER_EXTENSIONS_API_WEB_REQUEST_WEB_REQUEST_API_H_ 6 #define CHROME_BROWSER_EXTENSIONS_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 360 matching lines...) Expand 10 before | Expand all | Expand 10 after
371 // method requested by the extension with the highest precedence. Precedence 371 // method requested by the extension with the highest precedence. Precedence
372 // is decided by extension install time. If |response| is non-NULL, this 372 // is decided by extension install time. If |response| is non-NULL, this
373 // method assumes ownership. 373 // method assumes ownership.
374 void DecrementBlockCount( 374 void DecrementBlockCount(
375 void* browser_context, 375 void* browser_context,
376 const std::string& extension_id, 376 const std::string& extension_id,
377 const std::string& event_name, 377 const std::string& event_name,
378 uint64 request_id, 378 uint64 request_id,
379 EventResponse* response); 379 EventResponse* response);
380 380
381 // Logs an extension action.
382 void LogExtensionActivity(
383 void* browser_context_id,
384 bool is_incognito,
385 const std::string& extension_id,
386 const GURL& url,
387 const std::string& api_call,
388 scoped_ptr<base::DictionaryValue> details);
389
381 // Processes the generated deltas from blocked_requests_ on the specified 390 // Processes the generated deltas from blocked_requests_ on the specified
382 // request. If |call_back| is true, the callback registered in 391 // request. If |call_back| is true, the callback registered in
383 // |blocked_requests_| is called. 392 // |blocked_requests_| is called.
384 // The function returns the error code for the network request. This is 393 // The function returns the error code for the network request. This is
385 // mostly relevant in case the caller passes |call_callback| = false 394 // mostly relevant in case the caller passes |call_callback| = false
386 // and wants to return the correct network error code himself. 395 // and wants to return the correct network error code himself.
387 int ExecuteDeltas( 396 int ExecuteDeltas(
388 void* browser_context, uint64 request_id, bool call_callback); 397 void* browser_context, uint64 request_id, bool call_callback);
389 398
390 // Evaluates the rules of the declarative webrequest API and stores 399 // Evaluates the rules of the declarative webrequest API and stores
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
528 // ExtensionFunction: 537 // ExtensionFunction:
529 virtual void GetQuotaLimitHeuristics( 538 virtual void GetQuotaLimitHeuristics(
530 extensions::QuotaLimitHeuristics* heuristics) const OVERRIDE; 539 extensions::QuotaLimitHeuristics* heuristics) const OVERRIDE;
531 // Handle quota exceeded gracefully: Only warn the user but still execute the 540 // Handle quota exceeded gracefully: Only warn the user but still execute the
532 // function. 541 // function.
533 virtual void OnQuotaExceeded(const std::string& error) OVERRIDE; 542 virtual void OnQuotaExceeded(const std::string& error) OVERRIDE;
534 virtual bool RunSync() OVERRIDE; 543 virtual bool RunSync() OVERRIDE;
535 }; 544 };
536 545
537 #endif // CHROME_BROWSER_EXTENSIONS_API_WEB_REQUEST_WEB_REQUEST_API_H_ 546 #endif // CHROME_BROWSER_EXTENSIONS_API_WEB_REQUEST_WEB_REQUEST_API_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698