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

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

Issue 11826048: Revert 176015 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 7 years, 11 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 | Annotate | Revision Log
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 415 matching lines...) Expand 10 before | Expand all | Expand 10 after
426 public: 426 public:
427 DECLARE_EXTENSION_FUNCTION_NAME("webRequestInternal.eventHandled"); 427 DECLARE_EXTENSION_FUNCTION_NAME("webRequestInternal.eventHandled");
428 428
429 protected: 429 protected:
430 virtual ~WebRequestEventHandled() {} 430 virtual ~WebRequestEventHandled() {}
431 431
432 // ExtensionFunction: 432 // ExtensionFunction:
433 virtual bool RunImpl() OVERRIDE; 433 virtual bool RunImpl() OVERRIDE;
434 }; 434 };
435 435
436 class WebRequestHandlerBehaviorChangedFunction 436 class WebRequestHandlerBehaviorChanged : public SyncIOThreadExtensionFunction {
437 : public SyncIOThreadExtensionFunction {
438 public: 437 public:
439 DECLARE_EXTENSION_FUNCTION_NAME("webRequest.handlerBehaviorChanged"); 438 DECLARE_EXTENSION_FUNCTION_NAME("webRequest.handlerBehaviorChanged");
440 439
441 protected: 440 protected:
442 virtual ~WebRequestHandlerBehaviorChangedFunction() {} 441 virtual ~WebRequestHandlerBehaviorChanged() {}
443 442
444 // ExtensionFunction: 443 // ExtensionFunction:
445 virtual void GetQuotaLimitHeuristics( 444 virtual void GetQuotaLimitHeuristics(
446 QuotaLimitHeuristics* heuristics) const OVERRIDE; 445 QuotaLimitHeuristics* heuristics) const OVERRIDE;
447 // Handle quota exceeded gracefully: Only warn the user but still execute the 446 // Handle quota exceeded gracefully: Only warn the user but still execute the
448 // function. 447 // function.
449 virtual void OnQuotaExceeded(const std::string& error) OVERRIDE; 448 virtual void OnQuotaExceeded(const std::string& error) OVERRIDE;
450 virtual bool RunImpl() OVERRIDE; 449 virtual bool RunImpl() OVERRIDE;
451 }; 450 };
452 451
453 // Send updates to |host| with information about what webRequest-related 452 // Send updates to |host| with information about what webRequest-related
454 // extensions are installed. 453 // extensions are installed.
455 // TODO(mpcomplete): remove. http://crbug.com/100411 454 // TODO(mpcomplete): remove. http://crbug.com/100411
456 void SendExtensionWebRequestStatusToHost(content::RenderProcessHost* host); 455 void SendExtensionWebRequestStatusToHost(content::RenderProcessHost* host);
457 456
458 #endif // CHROME_BROWSER_EXTENSIONS_API_WEB_REQUEST_WEB_REQUEST_API_H_ 457 #endif // CHROME_BROWSER_EXTENSIONS_API_WEB_REQUEST_WEB_REQUEST_API_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698