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_OPTIONS_OPTIONS_UI_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS_OPTIONS_UI_H_ |
6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS_OPTIONS_UI_H_ | 6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS_OPTIONS_UI_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
125 // Takes the suggestions from |result| and adds them to |suggestions| so that | 125 // Takes the suggestions from |result| and adds them to |suggestions| so that |
126 // they can be passed to a JavaScript function. | 126 // they can be passed to a JavaScript function. |
127 static void ProcessAutocompleteSuggestions( | 127 static void ProcessAutocompleteSuggestions( |
128 const AutocompleteResult& result, | 128 const AutocompleteResult& result, |
129 base::ListValue* const suggestions); | 129 base::ListValue* const suggestions); |
130 | 130 |
131 // Overridden from content::WebContentsObserver: | 131 // Overridden from content::WebContentsObserver: |
132 void DidStartProvisionalLoadForFrame( | 132 void DidStartProvisionalLoadForFrame( |
133 content::RenderFrameHost* render_frame_host, | 133 content::RenderFrameHost* render_frame_host, |
134 const GURL& validated_url, | 134 const GURL& validated_url, |
135 bool is_error_page, | 135 bool is_error_page) override; |
136 bool is_iframe_srcdoc) override; | |
137 void DocumentLoadedInFrame( | 136 void DocumentLoadedInFrame( |
138 content::RenderFrameHost *render_frame_host) override; | 137 content::RenderFrameHost *render_frame_host) override; |
139 void DocumentOnLoadCompletedInMainFrame() override; | 138 void DocumentOnLoadCompletedInMainFrame() override; |
140 | 139 |
141 // Overridden from OptionsPageUIHandlerHost: | 140 // Overridden from OptionsPageUIHandlerHost: |
142 void InitializeHandlers() override; | 141 void InitializeHandlers() override; |
143 void OnFinishedLoading() override; | 142 void OnFinishedLoading() override; |
144 | 143 |
145 private: | 144 private: |
146 // Adds OptionsPageUiHandler to the handlers list if handler is enabled. | 145 // Adds OptionsPageUiHandler to the handlers list if handler is enabled. |
(...skipping 11 matching lines...) Expand all Loading... |
158 #endif | 157 #endif |
159 | 158 |
160 base::Time load_start_time_; | 159 base::Time load_start_time_; |
161 | 160 |
162 DISALLOW_COPY_AND_ASSIGN(OptionsUI); | 161 DISALLOW_COPY_AND_ASSIGN(OptionsUI); |
163 }; | 162 }; |
164 | 163 |
165 } // namespace options | 164 } // namespace options |
166 | 165 |
167 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_OPTIONS_UI_H_ | 166 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_OPTIONS_UI_H_ |
OLD | NEW |