| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_UI_EXTENSIONS_EXTENSION_MESSAGE_BUBBLE_FACTORY_H_ | 5 #ifndef CHROME_BROWSER_UI_EXTENSIONS_EXTENSION_MESSAGE_BUBBLE_FACTORY_H_ |
| 6 #define CHROME_BROWSER_UI_EXTENSIONS_EXTENSION_MESSAGE_BUBBLE_FACTORY_H_ | 6 #define CHROME_BROWSER_UI_EXTENSIONS_EXTENSION_MESSAGE_BUBBLE_FACTORY_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
| 10 | 10 |
| (...skipping 16 matching lines...) Expand all Loading... |
| 27 }; | 27 }; |
| 28 | 28 |
| 29 explicit ExtensionMessageBubbleFactory(Browser* browser); | 29 explicit ExtensionMessageBubbleFactory(Browser* browser); |
| 30 ~ExtensionMessageBubbleFactory(); | 30 ~ExtensionMessageBubbleFactory(); |
| 31 | 31 |
| 32 // Returns the controller for the bubble that should be shown, if any. | 32 // Returns the controller for the bubble that should be shown, if any. |
| 33 scoped_ptr<extensions::ExtensionMessageBubbleController> GetController(); | 33 scoped_ptr<extensions::ExtensionMessageBubbleController> GetController(); |
| 34 | 34 |
| 35 // Overrides the default behavior for testing. | 35 // Overrides the default behavior for testing. |
| 36 static void set_override_for_tests(OverrideForTesting override); | 36 static void set_override_for_tests(OverrideForTesting override); |
| 37 static bool is_enabled_for_testing(); | |
| 38 | 37 |
| 39 private: | 38 private: |
| 40 Browser* browser_; | 39 Browser* browser_; |
| 41 | 40 |
| 42 DISALLOW_COPY_AND_ASSIGN(ExtensionMessageBubbleFactory); | 41 DISALLOW_COPY_AND_ASSIGN(ExtensionMessageBubbleFactory); |
| 43 }; | 42 }; |
| 44 | 43 |
| 45 #endif // CHROME_BROWSER_UI_EXTENSIONS_EXTENSION_MESSAGE_BUBBLE_FACTORY_H_ | 44 #endif // CHROME_BROWSER_UI_EXTENSIONS_EXTENSION_MESSAGE_BUBBLE_FACTORY_H_ |
| OLD | NEW |