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 #include "chrome/browser/extensions/api/profile_keyed_api_factory.h" | 9 #include "chrome/browser/extensions/api/profile_keyed_api_factory.h" |
10 #include "chrome/browser/extensions/extension_message_bubble_controller.h" | 10 #include "chrome/browser/extensions/extension_message_bubble_controller.h" |
(...skipping 26 matching lines...) Expand all Loading... |
37 | 37 |
38 // Returns true if the extension is considered a Developer Mode extension. | 38 // Returns true if the extension is considered a Developer Mode extension. |
39 bool IsDevModeExtension(const Extension* extension) const; | 39 bool IsDevModeExtension(const Extension* extension) const; |
40 | 40 |
41 // ExtensionMessageBubbleController::Delegate methods. | 41 // ExtensionMessageBubbleController::Delegate methods. |
42 virtual bool ShouldIncludeExtension(const std::string& extension_id) OVERRIDE; | 42 virtual bool ShouldIncludeExtension(const std::string& extension_id) OVERRIDE; |
43 virtual void AcknowledgeExtension( | 43 virtual void AcknowledgeExtension( |
44 const std::string& extension_id, | 44 const std::string& extension_id, |
45 ExtensionMessageBubbleController::BubbleAction user_action) OVERRIDE; | 45 ExtensionMessageBubbleController::BubbleAction user_action) OVERRIDE; |
46 virtual void PerformAction(const ExtensionIdList& list) OVERRIDE; | 46 virtual void PerformAction(const ExtensionIdList& list) OVERRIDE; |
47 virtual string16 GetTitle() const OVERRIDE; | 47 virtual base::string16 GetTitle() const OVERRIDE; |
48 virtual string16 GetMessageBody() const OVERRIDE; | 48 virtual base::string16 GetMessageBody() const OVERRIDE; |
49 virtual string16 GetOverflowText( | 49 virtual base::string16 GetOverflowText( |
50 const string16& overflow_count) const OVERRIDE; | 50 const base::string16& overflow_count) const OVERRIDE; |
51 virtual string16 GetLearnMoreLabel() const OVERRIDE; | 51 virtual base::string16 GetLearnMoreLabel() const OVERRIDE; |
52 virtual GURL GetLearnMoreUrl() const OVERRIDE; | 52 virtual GURL GetLearnMoreUrl() const OVERRIDE; |
53 virtual string16 GetActionButtonLabel() const OVERRIDE; | 53 virtual base::string16 GetActionButtonLabel() const OVERRIDE; |
54 virtual string16 GetDismissButtonLabel() const OVERRIDE; | 54 virtual base::string16 GetDismissButtonLabel() const OVERRIDE; |
55 virtual bool ShouldShowExtensionList() const OVERRIDE; | 55 virtual bool ShouldShowExtensionList() const OVERRIDE; |
56 virtual std::vector<string16> GetExtensions() OVERRIDE; | 56 virtual std::vector<base::string16> GetExtensions() OVERRIDE; |
57 virtual void LogExtensionCount(size_t count) OVERRIDE; | 57 virtual void LogExtensionCount(size_t count) OVERRIDE; |
58 virtual void LogAction( | 58 virtual void LogAction( |
59 ExtensionMessageBubbleController::BubbleAction action) OVERRIDE; | 59 ExtensionMessageBubbleController::BubbleAction action) OVERRIDE; |
60 | 60 |
61 private: | 61 private: |
62 friend class ProfileKeyedAPIFactory<DevModeBubbleController>; | 62 friend class ProfileKeyedAPIFactory<DevModeBubbleController>; |
63 | 63 |
64 // ProfileKeyedAPI implementation. | 64 // ProfileKeyedAPI implementation. |
65 static const char* service_name() { | 65 static const char* service_name() { |
66 return "DevModeBubbleController"; | 66 return "DevModeBubbleController"; |
(...skipping 10 matching lines...) Expand all Loading... |
77 DISALLOW_COPY_AND_ASSIGN(DevModeBubbleController); | 77 DISALLOW_COPY_AND_ASSIGN(DevModeBubbleController); |
78 }; | 78 }; |
79 | 79 |
80 template <> | 80 template <> |
81 void ProfileKeyedAPIFactory< | 81 void ProfileKeyedAPIFactory< |
82 DevModeBubbleController>::DeclareFactoryDependencies(); | 82 DevModeBubbleController>::DeclareFactoryDependencies(); |
83 | 83 |
84 } // namespace extensions | 84 } // namespace extensions |
85 | 85 |
86 #endif // CHROME_BROWSER_EXTENSIONS_DEV_MODE_BUBBLE_CONTROLLER_H_ | 86 #endif // CHROME_BROWSER_EXTENSIONS_DEV_MODE_BUBBLE_CONTROLLER_H_ |
OLD | NEW |