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 favicon for the intent service with service URL |url| to |image|. | 109 // Update favicon for the intent service with service URL |url| to |image|. |
110 void UpdateFaviconForServiceWithURL(const GURL& url, const gfx::Image& image); | 110 void UpdateFaviconForServiceWithURL(const GURL& url, 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 | |
119 // Return the suggested extension at |index|. | 116 // Return the suggested extension at |index|. |
120 const SuggestedExtension& GetSuggestedExtensionAt(size_t index) const; | 117 const SuggestedExtension& GetSuggestedExtensionAt(size_t index) const; |
121 | 118 |
122 // Return the suggested extension for the given id or NULL if none. | 119 // Return the suggested extension for the given id or NULL if none. |
123 const SuggestedExtension* GetSuggestedExtensionWithId( | 120 const SuggestedExtension* GetSuggestedExtensionWithId( |
124 const std::string& id) const; | 121 const std::string& id) const; |
125 | 122 |
126 // Return the number of suggested extensions to be displayed. | 123 // Return the number of suggested extensions to be displayed. |
127 size_t GetSuggestedExtensionCount() const; | 124 size_t GetSuggestedExtensionCount() const; |
128 | 125 |
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
250 ExtensionInstallPrompt::Delegate* pending_extension_install_delegate_; | 247 ExtensionInstallPrompt::Delegate* pending_extension_install_delegate_; |
251 scoped_ptr<ExtensionInstallPrompt::Prompt> pending_extension_install_prompt_; | 248 scoped_ptr<ExtensionInstallPrompt::Prompt> pending_extension_install_prompt_; |
252 | 249 |
253 // Indicates the use-another-service control should be shown. | 250 // Indicates the use-another-service control should be shown. |
254 bool show_use_another_service_; | 251 bool show_use_another_service_; |
255 | 252 |
256 DISALLOW_COPY_AND_ASSIGN(WebIntentPickerModel); | 253 DISALLOW_COPY_AND_ASSIGN(WebIntentPickerModel); |
257 }; | 254 }; |
258 | 255 |
259 #endif // CHROME_BROWSER_UI_INTENTS_WEB_INTENT_PICKER_MODEL_H_ | 256 #endif // CHROME_BROWSER_UI_INTENTS_WEB_INTENT_PICKER_MODEL_H_ |
OLD | NEW |