| 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 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 419 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 430 DECLARE_EXTENSION_FUNCTION_NAME("webRequest.handlerBehaviorChanged"); | 430 DECLARE_EXTENSION_FUNCTION_NAME("webRequest.handlerBehaviorChanged"); |
| 431 | 431 |
| 432 protected: | 432 protected: |
| 433 virtual ~WebRequestHandlerBehaviorChanged() {} | 433 virtual ~WebRequestHandlerBehaviorChanged() {} |
| 434 | 434 |
| 435 // ExtensionFunction: | 435 // ExtensionFunction: |
| 436 virtual void GetQuotaLimitHeuristics( | 436 virtual void GetQuotaLimitHeuristics( |
| 437 QuotaLimitHeuristics* heuristics) const OVERRIDE; | 437 QuotaLimitHeuristics* heuristics) const OVERRIDE; |
| 438 // Handle quota exceeded gracefully: Only warn the user but still execute the | 438 // Handle quota exceeded gracefully: Only warn the user but still execute the |
| 439 // function. | 439 // function. |
| 440 virtual void OnQuotaExceeded() OVERRIDE; | 440 virtual void OnQuotaExceeded(const std::string& error) OVERRIDE; |
| 441 virtual bool RunImpl() OVERRIDE; | 441 virtual bool RunImpl() OVERRIDE; |
| 442 }; | 442 }; |
| 443 | 443 |
| 444 // Send updates to |host| with information about what webRequest-related | 444 // Send updates to |host| with information about what webRequest-related |
| 445 // extensions are installed. | 445 // extensions are installed. |
| 446 // TODO(mpcomplete): remove. http://crbug.com/100411 | 446 // TODO(mpcomplete): remove. http://crbug.com/100411 |
| 447 void SendExtensionWebRequestStatusToHost(content::RenderProcessHost* host); | 447 void SendExtensionWebRequestStatusToHost(content::RenderProcessHost* host); |
| 448 | 448 |
| 449 #endif // CHROME_BROWSER_EXTENSIONS_API_WEB_REQUEST_WEB_REQUEST_API_H_ | 449 #endif // CHROME_BROWSER_EXTENSIONS_API_WEB_REQUEST_WEB_REQUEST_API_H_ |
| OLD | NEW |