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

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

Issue 8662010: Rename chrome.experimental.webRequest to chrome.webRequest and chrome.webRequestBlocking (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Regenerated documentation Created 9 years 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
« no previous file with comments | « no previous file | chrome/browser/extensions/extension_webrequest_api.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 328 matching lines...) Expand 10 before | Expand all | Expand 10 after
339 scoped_ptr<ExtensionWebRequestTimeTracker> request_time_tracker_; 339 scoped_ptr<ExtensionWebRequestTimeTracker> request_time_tracker_;
340 340
341 CallbacksForPageLoad callbacks_for_page_load_; 341 CallbacksForPageLoad callbacks_for_page_load_;
342 342
343 DISALLOW_COPY_AND_ASSIGN(ExtensionWebRequestEventRouter); 343 DISALLOW_COPY_AND_ASSIGN(ExtensionWebRequestEventRouter);
344 }; 344 };
345 345
346 class WebRequestAddEventListener : public SyncIOThreadExtensionFunction { 346 class WebRequestAddEventListener : public SyncIOThreadExtensionFunction {
347 public: 347 public:
348 virtual bool RunImpl() OVERRIDE; 348 virtual bool RunImpl() OVERRIDE;
349 DECLARE_EXTENSION_FUNCTION_NAME("experimental.webRequest.addEventListener"); 349 DECLARE_EXTENSION_FUNCTION_NAME("webRequest.addEventListener");
350 }; 350 };
351 351
352 class WebRequestEventHandled : public SyncIOThreadExtensionFunction { 352 class WebRequestEventHandled : public SyncIOThreadExtensionFunction {
353 public: 353 public:
354 virtual bool RunImpl() OVERRIDE; 354 virtual bool RunImpl() OVERRIDE;
355 DECLARE_EXTENSION_FUNCTION_NAME("experimental.webRequest.eventHandled"); 355 DECLARE_EXTENSION_FUNCTION_NAME("webRequest.eventHandled");
356 }; 356 };
357 357
358 class WebRequestHandlerBehaviorChanged : public SyncIOThreadExtensionFunction { 358 class WebRequestHandlerBehaviorChanged : public SyncIOThreadExtensionFunction {
359 public: 359 public:
360 virtual bool RunImpl() OVERRIDE; 360 virtual bool RunImpl() OVERRIDE;
361 DECLARE_EXTENSION_FUNCTION_NAME( 361 DECLARE_EXTENSION_FUNCTION_NAME(
362 "experimental.webRequest.handlerBehaviorChanged"); 362 "webRequest.handlerBehaviorChanged");
363 363
364 private: 364 private:
365 virtual void GetQuotaLimitHeuristics( 365 virtual void GetQuotaLimitHeuristics(
366 QuotaLimitHeuristics* heuristics) const OVERRIDE; 366 QuotaLimitHeuristics* heuristics) const OVERRIDE;
367 // Handle quota exceeded gracefully: Only warn the user but still execute the 367 // Handle quota exceeded gracefully: Only warn the user but still execute the
368 // function. 368 // function.
369 virtual void OnQuotaExceeded() OVERRIDE; 369 virtual void OnQuotaExceeded() OVERRIDE;
370 }; 370 };
371 371
372 // Send updates to |host| with information about what webRequest-related 372 // Send updates to |host| with information about what webRequest-related
373 // extensions are installed. 373 // extensions are installed.
374 // TODO(mpcomplete): remove. http://crbug.com/100411 374 // TODO(mpcomplete): remove. http://crbug.com/100411
375 void SendExtensionWebRequestStatusToHost(content::RenderProcessHost* host); 375 void SendExtensionWebRequestStatusToHost(content::RenderProcessHost* host);
376 376
377 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_WEBREQUEST_API_H_ 377 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_WEBREQUEST_API_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/extensions/extension_webrequest_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698