OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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_CHROME_EXTENSION_TEST_NOTIFICATION_OBSERVER_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_CHROME_EXTENSION_TEST_NOTIFICATION_OBSERVER_H_ |
6 #define CHROME_BROWSER_EXTENSIONS_CHROME_EXTENSION_TEST_NOTIFICATION_OBSERVER_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_CHROME_EXTENSION_TEST_NOTIFICATION_OBSERVER_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
11 #include "chrome/browser/extensions/api/extension_action/extension_action_api.h" | 11 #include "chrome/browser/extensions/api/extension_action/extension_action_api.h" |
12 #include "extensions/test/extension_test_notification_observer.h" | 12 #include "extensions/test/extension_test_notification_observer.h" |
13 | 13 |
14 class Browser; | 14 class Browser; |
15 | 15 |
16 namespace content { | 16 namespace content { |
17 class BrowserContext; | 17 class BrowserContext; |
18 class WindowedNotificationObserver; | |
19 } | 18 } |
20 | 19 |
21 // Test helper class for observing extension-related events. | 20 // Test helper class for observing extension-related events. |
22 // TODO(devlin): This should be in the extensions namespace. | 21 // TODO(devlin): This should be in the extensions namespace. |
23 class ChromeExtensionTestNotificationObserver | 22 class ChromeExtensionTestNotificationObserver |
24 : public ExtensionTestNotificationObserver, | 23 : public ExtensionTestNotificationObserver, |
25 public extensions::ExtensionActionAPI::Observer { | 24 public extensions::ExtensionActionAPI::Observer { |
26 public: | 25 public: |
27 explicit ChromeExtensionTestNotificationObserver(Browser* browser); | 26 explicit ChromeExtensionTestNotificationObserver(Browser* browser); |
28 ~ChromeExtensionTestNotificationObserver() override; | 27 ~ChromeExtensionTestNotificationObserver() override; |
(...skipping 18 matching lines...) Expand all Loading... |
47 | 46 |
48 // extensions::ExtensionActionAPI::Observer: | 47 // extensions::ExtensionActionAPI::Observer: |
49 void OnPageActionsUpdated(content::WebContents* contents) override; | 48 void OnPageActionsUpdated(content::WebContents* contents) override; |
50 | 49 |
51 Browser* browser_; | 50 Browser* browser_; |
52 | 51 |
53 DISALLOW_COPY_AND_ASSIGN(ChromeExtensionTestNotificationObserver); | 52 DISALLOW_COPY_AND_ASSIGN(ChromeExtensionTestNotificationObserver); |
54 }; | 53 }; |
55 | 54 |
56 #endif // CHROME_BROWSER_EXTENSIONS_CHROME_EXTENSION_TEST_NOTIFICATION_OBSERVER
_H_ | 55 #endif // CHROME_BROWSER_EXTENSIONS_CHROME_EXTENSION_TEST_NOTIFICATION_OBSERVER
_H_ |
OLD | NEW |