OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_INTENTS_WEB_INTENT_PICKER_MODEL_H_ | 5 #ifndef CHROME_BROWSER_UI_INTENTS_WEB_INTENT_PICKER_MODEL_H_ |
6 #define CHROME_BROWSER_UI_INTENTS_WEB_INTENT_PICKER_MODEL_H_ | 6 #define CHROME_BROWSER_UI_INTENTS_WEB_INTENT_PICKER_MODEL_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
106 // Return the number of intent services in the picker. | 106 // Return the number of intent services in the picker. |
107 size_t GetInstalledServiceCount() const; | 107 size_t GetInstalledServiceCount() const; |
108 | 108 |
109 // Update the favicon for the intent service at |index| to |image|. | 109 // Update the favicon for the intent service at |index| to |image|. |
110 void UpdateFaviconAt(size_t index, const gfx::Image& image); | 110 void UpdateFaviconAt(size_t index, const gfx::Image& image); |
111 | 111 |
112 // Add a list of suggested extensions to the model. | 112 // Add a list of suggested extensions to the model. |
113 void AddSuggestedExtensions( | 113 void AddSuggestedExtensions( |
114 const std::vector<SuggestedExtension>& suggestions); | 114 const std::vector<SuggestedExtension>& suggestions); |
115 | 115 |
| 116 // Remove the suggested extension with this id. |
| 117 void RemoveSuggestedExtension(const std::string& id); |
| 118 |
116 // Return the suggested extension at |index|. | 119 // Return the suggested extension at |index|. |
117 const SuggestedExtension& GetSuggestedExtensionAt(size_t index) const; | 120 const SuggestedExtension& GetSuggestedExtensionAt(size_t index) const; |
118 | 121 |
119 // Return the suggested extension for the given id or NULL if none. | 122 // Return the suggested extension for the given id or NULL if none. |
120 const SuggestedExtension* GetSuggestedExtensionWithId( | 123 const SuggestedExtension* GetSuggestedExtensionWithId( |
121 const std::string& id) const; | 124 const std::string& id) const; |
122 | 125 |
123 // Return the number of suggested extensions to be displayed. | 126 // Return the number of suggested extensions to be displayed. |
124 size_t GetSuggestedExtensionCount() const; | 127 size_t GetSuggestedExtensionCount() const; |
125 | 128 |
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
247 ExtensionInstallPrompt::Delegate* pending_extension_install_delegate_; | 250 ExtensionInstallPrompt::Delegate* pending_extension_install_delegate_; |
248 scoped_ptr<ExtensionInstallPrompt::Prompt> pending_extension_install_prompt_; | 251 scoped_ptr<ExtensionInstallPrompt::Prompt> pending_extension_install_prompt_; |
249 | 252 |
250 // Indicates the use-another-service control should be shown. | 253 // Indicates the use-another-service control should be shown. |
251 bool show_use_another_service_; | 254 bool show_use_another_service_; |
252 | 255 |
253 DISALLOW_COPY_AND_ASSIGN(WebIntentPickerModel); | 256 DISALLOW_COPY_AND_ASSIGN(WebIntentPickerModel); |
254 }; | 257 }; |
255 | 258 |
256 #endif // CHROME_BROWSER_UI_INTENTS_WEB_INTENT_PICKER_MODEL_H_ | 259 #endif // CHROME_BROWSER_UI_INTENTS_WEB_INTENT_PICKER_MODEL_H_ |
OLD | NEW |