Chromium Code Reviews| 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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <list> | 9 #include <list> |
| 10 #include <map> | 10 #include <map> |
| (...skipping 359 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 370 | 370 |
| 371 CallbacksForPageLoad callbacks_for_page_load_; | 371 CallbacksForPageLoad callbacks_for_page_load_; |
| 372 | 372 |
| 373 scoped_refptr<extensions::WebRequestRulesRegistry> rules_registry_; | 373 scoped_refptr<extensions::WebRequestRulesRegistry> rules_registry_; |
| 374 | 374 |
| 375 DISALLOW_COPY_AND_ASSIGN(ExtensionWebRequestEventRouter); | 375 DISALLOW_COPY_AND_ASSIGN(ExtensionWebRequestEventRouter); |
| 376 }; | 376 }; |
| 377 | 377 |
| 378 class WebRequestAddEventListener : public SyncIOThreadExtensionFunction { | 378 class WebRequestAddEventListener : public SyncIOThreadExtensionFunction { |
| 379 public: | 379 public: |
| 380 DECLARE_EXTENSION_FUNCTION_NAME("webRequest.addEventListener"); | 380 DECLARE_EXTENSION_FUNCTION_NAME("webRequestInternal.addEventListener"); |
| 381 | 381 |
| 382 protected: | 382 protected: |
| 383 virtual ~WebRequestAddEventListener() {} | 383 virtual ~WebRequestAddEventListener() {} |
| 384 | 384 |
| 385 // ExtensionFunction: | 385 // ExtensionFunction: |
| 386 virtual bool RunImpl() OVERRIDE; | 386 virtual bool RunImpl() OVERRIDE; |
| 387 }; | 387 }; |
| 388 | 388 |
| 389 class WebRequestEventHandled : public SyncIOThreadExtensionFunction { | 389 class WebRequestEventHandled : public SyncIOThreadExtensionFunction { |
| 390 public: | 390 public: |
| 391 DECLARE_EXTENSION_FUNCTION_NAME("webRequest.eventHandled"); | 391 DECLARE_EXTENSION_FUNCTION_NAME("webRequest.eventHandled"); |
|
battre
2012/05/15 09:23:38
I think it would make sense to cover this function
vabr (Chromium)
2012/05/15 11:57:52
Done.
| |
| 392 | 392 |
| 393 protected: | 393 protected: |
| 394 virtual ~WebRequestEventHandled() {} | 394 virtual ~WebRequestEventHandled() {} |
| 395 | 395 |
| 396 // ExtensionFunction: | 396 // ExtensionFunction: |
| 397 virtual bool RunImpl() OVERRIDE; | 397 virtual bool RunImpl() OVERRIDE; |
| 398 }; | 398 }; |
| 399 | 399 |
| 400 class WebRequestHandlerBehaviorChanged : public SyncIOThreadExtensionFunction { | 400 class WebRequestHandlerBehaviorChanged : public SyncIOThreadExtensionFunction { |
| 401 public: | 401 public: |
| (...skipping 10 matching lines...) Expand all Loading... | |
| 412 virtual void OnQuotaExceeded() OVERRIDE; | 412 virtual void OnQuotaExceeded() OVERRIDE; |
| 413 virtual bool RunImpl() OVERRIDE; | 413 virtual bool RunImpl() OVERRIDE; |
| 414 }; | 414 }; |
| 415 | 415 |
| 416 // Send updates to |host| with information about what webRequest-related | 416 // Send updates to |host| with information about what webRequest-related |
| 417 // extensions are installed. | 417 // extensions are installed. |
| 418 // TODO(mpcomplete): remove. http://crbug.com/100411 | 418 // TODO(mpcomplete): remove. http://crbug.com/100411 |
| 419 void SendExtensionWebRequestStatusToHost(content::RenderProcessHost* host); | 419 void SendExtensionWebRequestStatusToHost(content::RenderProcessHost* host); |
| 420 | 420 |
| 421 #endif // CHROME_BROWSER_EXTENSIONS_API_WEB_REQUEST_WEB_REQUEST_API_H_ | 421 #endif // CHROME_BROWSER_EXTENSIONS_API_WEB_REQUEST_WEB_REQUEST_API_H_ |
| OLD | NEW |