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

Side by Side Diff: chrome/browser/extensions/extension_webrequest_api.h

Issue 8491033: Extension Settings API: throttle the API in the same way that the Bookmarks API (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: sync Created 9 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_EXTENSION_WEBREQUEST_API_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_WEBREQUEST_API_H_
6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_WEBREQUEST_API_H_ 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_WEBREQUEST_API_H_
7 #pragma once 7 #pragma once
8 8
9 #include <list> 9 #include <list>
10 #include <map> 10 #include <map>
(...skipping 342 matching lines...) Expand 10 before | Expand all | Expand 10 after
353 }; 353 };
354 354
355 class WebRequestHandlerBehaviorChanged : public SyncIOThreadExtensionFunction { 355 class WebRequestHandlerBehaviorChanged : public SyncIOThreadExtensionFunction {
356 public: 356 public:
357 virtual bool RunImpl(); 357 virtual bool RunImpl();
358 DECLARE_EXTENSION_FUNCTION_NAME( 358 DECLARE_EXTENSION_FUNCTION_NAME(
359 "experimental.webRequest.handlerBehaviorChanged"); 359 "experimental.webRequest.handlerBehaviorChanged");
360 360
361 private: 361 private:
362 virtual void GetQuotaLimitHeuristics( 362 virtual void GetQuotaLimitHeuristics(
363 std::list<QuotaLimitHeuristic*>* heuristics) const OVERRIDE; 363 QuotaLimitHeuristics* heuristics) const OVERRIDE;
364 // Handle quota exceeded gracefully: Only warn the user but still execute the 364 // Handle quota exceeded gracefully: Only warn the user but still execute the
365 // function. 365 // function.
366 virtual void OnQuotaExceeded() OVERRIDE; 366 virtual void OnQuotaExceeded() OVERRIDE;
367 }; 367 };
368 368
369 // Send updates to |host| with information about what webRequest-related 369 // Send updates to |host| with information about what webRequest-related
370 // extensions are installed. 370 // extensions are installed.
371 // TODO(mpcomplete): remove. http://crbug.com/100411 371 // TODO(mpcomplete): remove. http://crbug.com/100411
372 void SendExtensionWebRequestStatusToHost(content::RenderProcessHost* host); 372 void SendExtensionWebRequestStatusToHost(content::RenderProcessHost* host);
373 373
374 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_WEBREQUEST_API_H_ 374 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_WEBREQUEST_API_H_
OLDNEW
« no previous file with comments | « chrome/browser/extensions/extension_function.h ('k') | chrome/browser/extensions/extension_webrequest_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698