OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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_DEV_MODE_BUBBLE_CONTROLLER_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_DEV_MODE_BUBBLE_CONTROLLER_H_ |
6 #define CHROME_BROWSER_EXTENSIONS_DEV_MODE_BUBBLE_CONTROLLER_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_DEV_MODE_BUBBLE_CONTROLLER_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "chrome/browser/extensions/extension_message_bubble_controller.h" | 10 #include "chrome/browser/extensions/extension_message_bubble_controller.h" |
(...skipping 12 matching lines...) Expand all Loading... |
23 static bool IsDevModeExtension(const Extension* extension); | 23 static bool IsDevModeExtension(const Extension* extension); |
24 | 24 |
25 explicit DevModeBubbleController(Profile* profile); | 25 explicit DevModeBubbleController(Profile* profile); |
26 virtual ~DevModeBubbleController(); | 26 virtual ~DevModeBubbleController(); |
27 | 27 |
28 // Whether the controller knows of extensions to list in the bubble. Returns | 28 // Whether the controller knows of extensions to list in the bubble. Returns |
29 // true if so. | 29 // true if so. |
30 bool ShouldShow(); | 30 bool ShouldShow(); |
31 | 31 |
32 // ExtensionMessageBubbleController methods. | 32 // ExtensionMessageBubbleController methods. |
33 virtual void Show(ExtensionMessageBubble* bubble) OVERRIDE; | 33 virtual void Show(ExtensionMessageBubble* bubble) override; |
34 | 34 |
35 private: | 35 private: |
36 // A weak pointer to the profile we are associated with. Not owned by us. | 36 // A weak pointer to the profile we are associated with. Not owned by us. |
37 Profile* profile_; | 37 Profile* profile_; |
38 | 38 |
39 DISALLOW_COPY_AND_ASSIGN(DevModeBubbleController); | 39 DISALLOW_COPY_AND_ASSIGN(DevModeBubbleController); |
40 }; | 40 }; |
41 | 41 |
42 } // namespace extensions | 42 } // namespace extensions |
43 | 43 |
44 #endif // CHROME_BROWSER_EXTENSIONS_DEV_MODE_BUBBLE_CONTROLLER_H_ | 44 #endif // CHROME_BROWSER_EXTENSIONS_DEV_MODE_BUBBLE_CONTROLLER_H_ |
OLD | NEW |