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

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

Issue 10310028: Making webRequest.addEventListener internal (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Implicit internal permissions for webRequest Created 8 years, 7 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 #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
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
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_
OLDNEW
« no previous file with comments | « no previous file | chrome/common/extensions/api/extension_api.cc » ('j') | chrome/common/extensions/api/web_request_internal.json » ('J')

Powered by Google App Engine
This is Rietveld 408576698