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

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

Issue 7337007: Introduce a field trial for Instant. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Added opt-out histogram Created 9 years, 5 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_OPTIONS_BROWSER_OPTIONS_HANDLER_H_ 5 #ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS_BROWSER_OPTIONS_HANDLER_H_
6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS_BROWSER_OPTIONS_HANDLER_H_ 6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS_BROWSER_OPTIONS_HANDLER_H_
7 #pragma once 7 #pragma once
8 8
9 #include "chrome/browser/autocomplete/autocomplete_controller_delegate.h" 9 #include "chrome/browser/autocomplete/autocomplete_controller_delegate.h"
10 #include "chrome/browser/prefs/pref_change_registrar.h" 10 #include "chrome/browser/prefs/pref_change_registrar.h"
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 void DragDropStartupPage(const ListValue* args); 83 void DragDropStartupPage(const ListValue* args);
84 84
85 // Gets autocomplete suggestions asychronously for the given string. 85 // Gets autocomplete suggestions asychronously for the given string.
86 // Called from WebUI. 86 // Called from WebUI.
87 void RequestAutocompleteSuggestions(const ListValue* args); 87 void RequestAutocompleteSuggestions(const ListValue* args);
88 88
89 // Called when the 'Always show the bookmarks bar' checkbox is toggled. 89 // Called when the 'Always show the bookmarks bar' checkbox is toggled.
90 // Notifies any listeners interested in this event. |args| is ignored. 90 // Notifies any listeners interested in this event. |args| is ignored.
91 void ToggleShowBookmarksBar(const ListValue* args); 91 void ToggleShowBookmarksBar(const ListValue* args);
92 92
93 // Enables/disables instant.
94 void EnableInstant(const ListValue* args);
95 void DisableInstant(const ListValue* args);
96
97 // Called to request information about the Instant field trial.
98 void IsInstantFieldTrialExperimentGroup(const ListValue* args);
99
93 // Returns the string ID for the given default browser state. 100 // Returns the string ID for the given default browser state.
94 int StatusStringIdForState(ShellIntegration::DefaultWebClientState state); 101 int StatusStringIdForState(ShellIntegration::DefaultWebClientState state);
95 102
96 // Gets the current default browser state, and asynchronously reports it to 103 // Gets the current default browser state, and asynchronously reports it to
97 // the WebUI page. 104 // the WebUI page.
98 void UpdateDefaultBrowserState(); 105 void UpdateDefaultBrowserState();
99 106
100 // Updates the UI with the given state for the default browser. 107 // Updates the UI with the given state for the default browser.
101 void SetDefaultBrowserUIString(int status_string_id); 108 void SetDefaultBrowserUIString(int status_string_id);
102 109
(...skipping 22 matching lines...) Expand all
125 // CustomHomePagesTableModel, consider changing it to something more like 132 // CustomHomePagesTableModel, consider changing it to something more like
126 // TemplateURLService. 133 // TemplateURLService.
127 scoped_ptr<CustomHomePagesTableModel> startup_custom_pages_table_model_; 134 scoped_ptr<CustomHomePagesTableModel> startup_custom_pages_table_model_;
128 135
129 scoped_ptr<AutocompleteController> autocomplete_controller_; 136 scoped_ptr<AutocompleteController> autocomplete_controller_;
130 137
131 DISALLOW_COPY_AND_ASSIGN(BrowserOptionsHandler); 138 DISALLOW_COPY_AND_ASSIGN(BrowserOptionsHandler);
132 }; 139 };
133 140
134 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_BROWSER_OPTIONS_HANDLER_H_ 141 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_BROWSER_OPTIONS_HANDLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698