Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(113)

Side by Side Diff: chrome/browser/ui/webui/options2/browser_options_handler.h

Issue 10836031: Remove Instant v1 API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Update history, title, favicon Created 8 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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_HANDLER_H_ 5 #ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS2_BROWSER_OPTIONS_HANDLER_H_
6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS2_BROWSER_OPTIONS_HANDLER_H_ 6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS2_BROWSER_OPTIONS_HANDLER_H_
7 7
8 #include "base/memory/ref_counted.h" 8 #include "base/memory/ref_counted.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "base/memory/weak_ptr.h" 10 #include "base/memory/weak_ptr.h"
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 virtual void TouchpadExists(bool exists) OVERRIDE; 81 virtual void TouchpadExists(bool exists) OVERRIDE;
82 virtual void MouseExists(bool exists) OVERRIDE; 82 virtual void MouseExists(bool exists) OVERRIDE;
83 #endif 83 #endif
84 84
85 // Makes this the default browser. Called from WebUI. 85 // Makes this the default browser. Called from WebUI.
86 void BecomeDefaultBrowser(const base::ListValue* args); 86 void BecomeDefaultBrowser(const base::ListValue* args);
87 87
88 // Sets the search engine at the given index to be default. Called from WebUI. 88 // Sets the search engine at the given index to be default. Called from WebUI.
89 void SetDefaultSearchEngine(const base::ListValue* args); 89 void SetDefaultSearchEngine(const base::ListValue* args);
90 90
91 // Enables/disables Instant.
92 void EnableInstant(const base::ListValue* args);
93 void DisableInstant(const base::ListValue* args);
94
95 // Enables/disables auto-launching of Chrome on computer startup. 91 // Enables/disables auto-launching of Chrome on computer startup.
96 void ToggleAutoLaunch(const base::ListValue* args); 92 void ToggleAutoLaunch(const base::ListValue* args);
97 93
98 // Checks (on the file thread) whether the user is in the auto-launch trial 94 // Checks (on the file thread) whether the user is in the auto-launch trial
99 // and whether Chrome is set to auto-launch at login. Gets a reply on the UI 95 // and whether Chrome is set to auto-launch at login. Gets a reply on the UI
100 // thread (see CheckAutoLaunchCallback). A weak pointer to this is passed in 96 // thread (see CheckAutoLaunchCallback). A weak pointer to this is passed in
101 // as a parameter to avoid the need to lock between this function and the 97 // as a parameter to avoid the need to lock between this function and the
102 // destructor. |profile_path| is the full path to the current profile. 98 // destructor. |profile_path| is the full path to the current profile.
103 void CheckAutoLaunch(base::WeakPtr<BrowserOptionsHandler> weak_this, 99 void CheckAutoLaunch(base::WeakPtr<BrowserOptionsHandler> weak_this,
104 const FilePath& profile_path); 100 const FilePath& profile_path);
(...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after
321 #if !defined(OS_CHROMEOS) 317 #if !defined(OS_CHROMEOS)
322 scoped_ptr<PrefSetObserver> proxy_prefs_; 318 scoped_ptr<PrefSetObserver> proxy_prefs_;
323 #endif // !defined(OS_CHROMEOS) 319 #endif // !defined(OS_CHROMEOS)
324 320
325 DISALLOW_COPY_AND_ASSIGN(BrowserOptionsHandler); 321 DISALLOW_COPY_AND_ASSIGN(BrowserOptionsHandler);
326 }; 322 };
327 323
328 } // namespace options2 324 } // namespace options2
329 325
330 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS2_BROWSER_OPTIONS_HANDLER_H_ 326 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS2_BROWSER_OPTIONS_HANDLER_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/instant_ui.cc ('k') | chrome/browser/ui/webui/options2/browser_options_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698