OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_TEST_BASE_EXTENSION_LOAD_WAITER_ONE_SHOT_H_ | 5 #ifndef CHROME_TEST_BASE_EXTENSION_LOAD_WAITER_ONE_SHOT_H_ |
6 #define CHROME_TEST_BASE_EXTENSION_LOAD_WAITER_ONE_SHOT_H_ | 6 #define CHROME_TEST_BASE_EXTENSION_LOAD_WAITER_ONE_SHOT_H_ |
7 | 7 |
8 #include "base/callback_forward.h" | 8 #include "base/callback_forward.h" |
| 9 #include "base/macros.h" |
9 #include "content/public/browser/notification_observer.h" | 10 #include "content/public/browser/notification_observer.h" |
10 #include "content/public/browser/notification_registrar.h" | 11 #include "content/public/browser/notification_registrar.h" |
11 #include "content/public/test/test_utils.h" | 12 #include "content/public/test/test_utils.h" |
12 | 13 |
13 namespace content { | 14 namespace content { |
14 class BrowserContext; | 15 class BrowserContext; |
15 } // namespace content | 16 } // namespace content |
16 | 17 |
17 // A class used to wait for an extension to load. Callers provide a load | 18 // A class used to wait for an extension to load. Callers provide a load |
18 // callback and can block until the extension loads. | 19 // callback and can block until the extension loads. |
(...skipping 21 matching lines...) Expand all Loading... |
40 private: | 41 private: |
41 content::NotificationRegistrar registrar_; | 42 content::NotificationRegistrar registrar_; |
42 scoped_refptr<content::MessageLoopRunner> load_looper_; | 43 scoped_refptr<content::MessageLoopRunner> load_looper_; |
43 const char* extension_id_; | 44 const char* extension_id_; |
44 content::BrowserContext* browser_context_; | 45 content::BrowserContext* browser_context_; |
45 | 46 |
46 DISALLOW_COPY_AND_ASSIGN(ExtensionLoadWaiterOneShot); | 47 DISALLOW_COPY_AND_ASSIGN(ExtensionLoadWaiterOneShot); |
47 }; | 48 }; |
48 | 49 |
49 #endif // CHROME_TEST_BASE_EXTENSION_LOAD_WAITER_ONE_SHOT_H_ | 50 #endif // CHROME_TEST_BASE_EXTENSION_LOAD_WAITER_ONE_SHOT_H_ |
OLD | NEW |