| 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_WEBUI_OPTIONS2_BROWSER_OPTIONS_HANDLER2_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS2_BROWSER_OPTIONS_HANDLER2_H_ |
| 6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS2_BROWSER_OPTIONS_HANDLER2_H_ | 6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS2_BROWSER_OPTIONS_HANDLER2_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
| 10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| (...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 115 // iconURL: "chrome://path/to/icon/image", | 115 // iconURL: "chrome://path/to/icon/image", |
| 116 // filePath: "/path/to/profile/data/on/disk", | 116 // filePath: "/path/to/profile/data/on/disk", |
| 117 // isCurrentProfile: false | 117 // isCurrentProfile: false |
| 118 // }; | 118 // }; |
| 119 void SendProfilesInfo(); | 119 void SendProfilesInfo(); |
| 120 | 120 |
| 121 // Asynchronously opens a new browser window to create a new profile. | 121 // Asynchronously opens a new browser window to create a new profile. |
| 122 // |args| is not used. | 122 // |args| is not used. |
| 123 void CreateProfile(const ListValue* args); | 123 void CreateProfile(const ListValue* args); |
| 124 | 124 |
| 125 scoped_refptr<ShellIntegration::DefaultBrowserWorker> | 125 void ObserveThemeChanged(); |
| 126 default_browser_worker_; | 126 void ThemesReset(const ListValue* args); |
| 127 #if defined(TOOLKIT_GTK) |
| 128 void ThemesSetGTK(const ListValue* args); |
| 129 #endif |
| 130 |
| 131 #if defined(OS_CHROMEOS) |
| 132 void UpdateAccountPicture(); |
| 133 #endif |
| 134 |
| 135 scoped_refptr<ShellIntegration::DefaultBrowserWorker> default_browser_worker_; |
| 127 | 136 |
| 128 StringPrefMember homepage_; | 137 StringPrefMember homepage_; |
| 129 BooleanPrefMember default_browser_policy_; | 138 BooleanPrefMember default_browser_policy_; |
| 130 | 139 |
| 131 // Used to observe updates to the preference of the list of URLs to load | 140 // Used to observe updates to the preference of the list of URLs to load |
| 132 // on startup, which can be updated via sync. | 141 // on startup, which can be updated via sync. |
| 133 PrefChangeRegistrar pref_change_registrar_; | 142 PrefChangeRegistrar pref_change_registrar_; |
| 134 | 143 |
| 135 TemplateURLService* template_url_service_; // Weak. | 144 TemplateURLService* template_url_service_; // Weak. |
| 136 | 145 |
| 137 scoped_ptr<AutocompleteController> autocomplete_controller_; | 146 scoped_ptr<AutocompleteController> autocomplete_controller_; |
| 138 | 147 |
| 139 // Used to get |weak_ptr_| to self for use on the File thread. | 148 // Used to get |weak_ptr_| to self for use on the File thread. |
| 140 base::WeakPtrFactory<BrowserOptionsHandler> weak_ptr_factory_for_file_; | 149 base::WeakPtrFactory<BrowserOptionsHandler> weak_ptr_factory_for_file_; |
| 141 // Used to post update tasks to the UI thread. | 150 // Used to post update tasks to the UI thread. |
| 142 base::WeakPtrFactory<BrowserOptionsHandler> weak_ptr_factory_for_ui_; | 151 base::WeakPtrFactory<BrowserOptionsHandler> weak_ptr_factory_for_ui_; |
| 143 | 152 |
| 144 // True if the multiprofiles switch is enabled. | 153 // True if the multiprofiles switch is enabled. |
| 145 bool multiprofile_; | 154 bool multiprofile_; |
| 146 | 155 |
| 147 DISALLOW_COPY_AND_ASSIGN(BrowserOptionsHandler); | 156 DISALLOW_COPY_AND_ASSIGN(BrowserOptionsHandler); |
| 148 }; | 157 }; |
| 149 | 158 |
| 150 } // namespace options2 | 159 } // namespace options2 |
| 151 | 160 |
| 152 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS2_BROWSER_OPTIONS_HANDLER2_H_ | 161 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS2_BROWSER_OPTIONS_HANDLER2_H_ |
| OLD | NEW |