| 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_EXTENSIONS_EXTENSION_INSTALL_PROMPT_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_INSTALL_PROMPT_H_ |
| 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_INSTALL_PROMPT_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_INSTALL_PROMPT_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 160 void set_retained_files(const std::vector<base::FilePath>& retained_files) { | 160 void set_retained_files(const std::vector<base::FilePath>& retained_files) { |
| 161 retained_files_ = retained_files; | 161 retained_files_ = retained_files; |
| 162 } | 162 } |
| 163 | 163 |
| 164 const gfx::Image& icon() const { return icon_; } | 164 const gfx::Image& icon() const { return icon_; } |
| 165 void set_icon(const gfx::Image& icon) { icon_ = icon; } | 165 void set_icon(const gfx::Image& icon) { icon_ = icon; } |
| 166 | 166 |
| 167 bool has_webstore_data() const { return has_webstore_data_; } | 167 bool has_webstore_data() const { return has_webstore_data_; } |
| 168 | 168 |
| 169 const ExtensionInstallPromptExperiment* experiment() const { | 169 const ExtensionInstallPromptExperiment* experiment() const { |
| 170 return experiment_; | 170 return experiment_.get(); |
| 171 } | 171 } |
| 172 void set_experiment(ExtensionInstallPromptExperiment* experiment) { | 172 void set_experiment(ExtensionInstallPromptExperiment* experiment) { |
| 173 experiment_ = experiment; | 173 experiment_ = experiment; |
| 174 } | 174 } |
| 175 | 175 |
| 176 private: | 176 private: |
| 177 friend class base::RefCountedThreadSafe<Prompt>; | 177 friend class base::RefCountedThreadSafe<Prompt>; |
| 178 | 178 |
| 179 virtual ~Prompt(); | 179 virtual ~Prompt(); |
| 180 | 180 |
| (...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 418 Delegate* delegate_; | 418 Delegate* delegate_; |
| 419 | 419 |
| 420 // A pre-filled prompt. | 420 // A pre-filled prompt. |
| 421 scoped_refptr<Prompt> prompt_; | 421 scoped_refptr<Prompt> prompt_; |
| 422 | 422 |
| 423 // Used to show the confirm dialog. | 423 // Used to show the confirm dialog. |
| 424 ShowDialogCallback show_dialog_callback_; | 424 ShowDialogCallback show_dialog_callback_; |
| 425 }; | 425 }; |
| 426 | 426 |
| 427 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_INSTALL_PROMPT_H_ | 427 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_INSTALL_PROMPT_H_ |
| OLD | NEW |