| 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 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 74 void EnableInstant(const base::ListValue* args); | 74 void EnableInstant(const base::ListValue* args); |
| 75 void DisableInstant(const base::ListValue* args); | 75 void DisableInstant(const base::ListValue* args); |
| 76 | 76 |
| 77 // Enables/disables auto-launching of Chrome on computer startup. | 77 // Enables/disables auto-launching of Chrome on computer startup. |
| 78 void ToggleAutoLaunch(const base::ListValue* args); | 78 void ToggleAutoLaunch(const base::ListValue* args); |
| 79 | 79 |
| 80 // Checks (on the file thread) whether the user is in the auto-launch trial | 80 // Checks (on the file thread) whether the user is in the auto-launch trial |
| 81 // and whether Chrome is set to auto-launch at login. Gets a reply on the UI | 81 // and whether Chrome is set to auto-launch at login. Gets a reply on the UI |
| 82 // thread (see CheckAutoLaunchCallback). A weak pointer to this is passed in | 82 // thread (see CheckAutoLaunchCallback). A weak pointer to this is passed in |
| 83 // as a parameter to avoid the need to lock between this function and the | 83 // as a parameter to avoid the need to lock between this function and the |
| 84 // destructor. | 84 // destructor. |profile_path| is the full path to the current profile. |
| 85 void CheckAutoLaunch(base::WeakPtr<BrowserOptionsHandler> weak_this, |
| 86 const FilePath& profile_path); |
| 85 | 87 |
| 86 void CheckAutoLaunch(base::WeakPtr<BrowserOptionsHandler> weak_this); | |
| 87 // Sets up (on the UI thread) the necessary bindings for toggling auto-launch | 88 // Sets up (on the UI thread) the necessary bindings for toggling auto-launch |
| 88 // (if the user is part of the auto-launch and makes sure the HTML UI knows | 89 // (if the user is part of the auto-launch and makes sure the HTML UI knows |
| 89 // whether Chrome will auto-launch at login. | 90 // whether Chrome will auto-launch at login. |
| 90 void CheckAutoLaunchCallback(bool is_in_auto_launch_group, | 91 void CheckAutoLaunchCallback(bool is_in_auto_launch_group, |
| 91 bool will_launch_at_login); | 92 bool will_launch_at_login); |
| 92 | 93 |
| 93 // Called to request information about the Instant field trial. | 94 // Called to request information about the Instant field trial. |
| 94 void GetInstantFieldTrialStatus(const base::ListValue* args); | 95 void GetInstantFieldTrialStatus(const base::ListValue* args); |
| 95 | 96 |
| 96 // Returns the string ID for the given default browser state. | 97 // Returns the string ID for the given default browser state. |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 159 | 160 |
| 160 // True if the multiprofiles switch is enabled. | 161 // True if the multiprofiles switch is enabled. |
| 161 bool multiprofile_; | 162 bool multiprofile_; |
| 162 | 163 |
| 163 DISALLOW_COPY_AND_ASSIGN(BrowserOptionsHandler); | 164 DISALLOW_COPY_AND_ASSIGN(BrowserOptionsHandler); |
| 164 }; | 165 }; |
| 165 | 166 |
| 166 } // namespace options2 | 167 } // namespace options2 |
| 167 | 168 |
| 168 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS2_BROWSER_OPTIONS_HANDLER2_H_ | 169 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS2_BROWSER_OPTIONS_HANDLER2_H_ |
| OLD | NEW |