Chromium Code Reviews| 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 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 99 | 99 |
| 100 // Return the intent service installed at |index|. | 100 // Return the intent service installed at |index|. |
| 101 const InstalledService& GetInstalledServiceAt(size_t index) const; | 101 const InstalledService& GetInstalledServiceAt(size_t index) const; |
| 102 | 102 |
| 103 // Return the intent service that uses |url| as its service url, or NULL. | 103 // Return the intent service that uses |url| as its service url, or NULL. |
| 104 const InstalledService* GetInstalledServiceWithURL(const GURL& url) const; | 104 const InstalledService* GetInstalledServiceWithURL(const GURL& url) const; |
| 105 | 105 |
| 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 favicon for the intent service with service URL |url| to |image|. |
|
James Hawkins
2012/10/17 03:38:39
Updates
| |
| 110 void UpdateFaviconAt(size_t index, 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 // Return the suggested extension at |index|. | 116 // Return the suggested extension at |index|. |
| 117 const SuggestedExtension& GetSuggestedExtensionAt(size_t index) const; | 117 const SuggestedExtension& GetSuggestedExtensionAt(size_t index) const; |
| 118 | 118 |
| 119 // 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. |
| 120 const SuggestedExtension* GetSuggestedExtensionWithId( | 120 const SuggestedExtension* GetSuggestedExtensionWithId( |
| (...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 247 ExtensionInstallPrompt::Delegate* pending_extension_install_delegate_; | 247 ExtensionInstallPrompt::Delegate* pending_extension_install_delegate_; |
| 248 scoped_ptr<ExtensionInstallPrompt::Prompt> pending_extension_install_prompt_; | 248 scoped_ptr<ExtensionInstallPrompt::Prompt> pending_extension_install_prompt_; |
| 249 | 249 |
| 250 // Indicates the use-another-service control should be shown. | 250 // Indicates the use-another-service control should be shown. |
| 251 bool show_use_another_service_; | 251 bool show_use_another_service_; |
| 252 | 252 |
| 253 DISALLOW_COPY_AND_ASSIGN(WebIntentPickerModel); | 253 DISALLOW_COPY_AND_ASSIGN(WebIntentPickerModel); |
| 254 }; | 254 }; |
| 255 | 255 |
| 256 #endif // CHROME_BROWSER_UI_INTENTS_WEB_INTENT_PICKER_MODEL_H_ | 256 #endif // CHROME_BROWSER_UI_INTENTS_WEB_INTENT_PICKER_MODEL_H_ |
| OLD | NEW |