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_TEST_EXTENSION_SYSTEM_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_TEST_EXTENSION_SYSTEM_H_ |
6 #define CHROME_BROWSER_EXTENSIONS_TEST_EXTENSION_SYSTEM_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_TEST_EXTENSION_SYSTEM_H_ |
7 | 7 |
8 #include "extensions/browser/extension_system.h" | 8 #include "extensions/browser/extension_system.h" |
9 #include "extensions/common/one_shot_event.h" | 9 #include "extensions/common/one_shot_event.h" |
10 | 10 |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
70 virtual InfoMap* info_map() OVERRIDE; | 70 virtual InfoMap* info_map() OVERRIDE; |
71 virtual LazyBackgroundTaskQueue* lazy_background_task_queue() OVERRIDE; | 71 virtual LazyBackgroundTaskQueue* lazy_background_task_queue() OVERRIDE; |
72 void SetEventRouter(scoped_ptr<EventRouter> event_router); | 72 void SetEventRouter(scoped_ptr<EventRouter> event_router); |
73 virtual EventRouter* event_router() OVERRIDE; | 73 virtual EventRouter* event_router() OVERRIDE; |
74 virtual ExtensionWarningService* warning_service() OVERRIDE; | 74 virtual ExtensionWarningService* warning_service() OVERRIDE; |
75 virtual Blacklist* blacklist() OVERRIDE; | 75 virtual Blacklist* blacklist() OVERRIDE; |
76 virtual ErrorConsole* error_console() OVERRIDE; | 76 virtual ErrorConsole* error_console() OVERRIDE; |
77 virtual InstallVerifier* install_verifier() OVERRIDE; | 77 virtual InstallVerifier* install_verifier() OVERRIDE; |
78 virtual QuotaService* quota_service() OVERRIDE; | 78 virtual QuotaService* quota_service() OVERRIDE; |
79 virtual const OneShotEvent& ready() const OVERRIDE; | 79 virtual const OneShotEvent& ready() const OVERRIDE; |
| 80 virtual ContentVerifier* content_verifier() OVERRIDE; |
80 | 81 |
81 void SetReady() { | 82 void SetReady() { |
82 LOG(INFO) << "SetReady()"; | 83 LOG(INFO) << "SetReady()"; |
83 ready_.Signal(); | 84 ready_.Signal(); |
84 } | 85 } |
85 | 86 |
86 // Factory method for tests to use with SetTestingProfile. | 87 // Factory method for tests to use with SetTestingProfile. |
87 static KeyedService* Build(content::BrowserContext* profile); | 88 static KeyedService* Build(content::BrowserContext* profile); |
88 | 89 |
89 protected: | 90 protected: |
(...skipping 14 matching lines...) Expand all Loading... |
104 scoped_ptr<EventRouter> event_router_; | 105 scoped_ptr<EventRouter> event_router_; |
105 scoped_ptr<ErrorConsole> error_console_; | 106 scoped_ptr<ErrorConsole> error_console_; |
106 scoped_ptr<InstallVerifier> install_verifier_; | 107 scoped_ptr<InstallVerifier> install_verifier_; |
107 scoped_ptr<QuotaService> quota_service_; | 108 scoped_ptr<QuotaService> quota_service_; |
108 OneShotEvent ready_; | 109 OneShotEvent ready_; |
109 }; | 110 }; |
110 | 111 |
111 } // namespace extensions | 112 } // namespace extensions |
112 | 113 |
113 #endif // CHROME_BROWSER_EXTENSIONS_TEST_EXTENSION_SYSTEM_H_ | 114 #endif // CHROME_BROWSER_EXTENSIONS_TEST_EXTENSION_SYSTEM_H_ |
OLD | NEW |