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

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

Issue 10871034: Make all quota-exceeding messages in the storage API explain what the failure (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: update... the other error message Created 8 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 | 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 419 matching lines...) Expand 10 before | Expand all | Expand 10 after
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_
OLDNEW
« no previous file with comments | « chrome/browser/extensions/api/test/test_api.cc ('k') | chrome/browser/extensions/api/web_request/web_request_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698