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

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

Issue 319543006: Move c/b/e/api/api_resource_manager_unittest.cc to (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: use TestBrowserThreadBundle instead Created 6 years, 6 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
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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 class URLRequest; 50 class URLRequest;
51 } 51 }
52 52
53 namespace extensions { 53 namespace extensions {
54 54
55 class InfoMap; 55 class InfoMap;
56 class WebRequestRulesRegistry; 56 class WebRequestRulesRegistry;
57 57
58 // Support class for the WebRequest API. Lives on the UI thread. Most of the 58 // Support class for the WebRequest API. Lives on the UI thread. Most of the
59 // work is done by ExtensionWebRequestEventRouter below. This class observes 59 // work is done by ExtensionWebRequestEventRouter below. This class observes
60 // extension::EventRouter to deal with event listeners. There is one instance 60 // extensions::EventRouter to deal with event listeners. There is one instance
61 // per BrowserContext which is shared with incognito. 61 // per BrowserContext which is shared with incognito.
62 class WebRequestAPI : public BrowserContextKeyedAPI, 62 class WebRequestAPI : public BrowserContextKeyedAPI,
63 public EventRouter::Observer { 63 public EventRouter::Observer {
64 public: 64 public:
65 explicit WebRequestAPI(content::BrowserContext* context); 65 explicit WebRequestAPI(content::BrowserContext* context);
66 virtual ~WebRequestAPI(); 66 virtual ~WebRequestAPI();
67 67
68 // BrowserContextKeyedAPI support: 68 // BrowserContextKeyedAPI support:
69 static BrowserContextKeyedAPIFactory<WebRequestAPI>* GetFactoryInstance(); 69 static BrowserContextKeyedAPIFactory<WebRequestAPI>* GetFactoryInstance();
70 70
(...skipping 450 matching lines...) Expand 10 before | Expand all | Expand 10 after
521 virtual void OnQuotaExceeded(const std::string& error) OVERRIDE; 521 virtual void OnQuotaExceeded(const std::string& error) OVERRIDE;
522 virtual bool RunSync() OVERRIDE; 522 virtual bool RunSync() OVERRIDE;
523 }; 523 };
524 524
525 // Send updates to |host| with information about what webRequest-related 525 // Send updates to |host| with information about what webRequest-related
526 // extensions are installed. 526 // extensions are installed.
527 // TODO(mpcomplete): remove. http://crbug.com/100411 527 // TODO(mpcomplete): remove. http://crbug.com/100411
528 void SendExtensionWebRequestStatusToHost(content::RenderProcessHost* host); 528 void SendExtensionWebRequestStatusToHost(content::RenderProcessHost* host);
529 529
530 #endif // CHROME_BROWSER_EXTENSIONS_API_WEB_REQUEST_WEB_REQUEST_API_H_ 530 #endif // CHROME_BROWSER_EXTENSIONS_API_WEB_REQUEST_WEB_REQUEST_API_H_
OLDNEW
« no previous file with comments | « chrome/browser/extensions/api/api_resource_manager_unittest.cc ('k') | chrome/chrome_tests_unit.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698