| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_DOM_UI_ADD_STARTUP_PAGE_HANDLER_H_ | 5 #ifndef CHROME_BROWSER_DOM_UI_ADD_STARTUP_PAGE_HANDLER_H_ |
| 6 #define CHROME_BROWSER_DOM_UI_ADD_STARTUP_PAGE_HANDLER_H_ | 6 #define CHROME_BROWSER_DOM_UI_ADD_STARTUP_PAGE_HANDLER_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "app/table_model_observer.h" | 9 #include "app/table_model_observer.h" |
| 10 #include "base/basictypes.h" |
| 10 #include "chrome/browser/dom_ui/options_ui.h" | 11 #include "chrome/browser/dom_ui/options_ui.h" |
| 11 | 12 |
| 12 class PossibleURLModel; | 13 class PossibleURLModel; |
| 13 | 14 |
| 14 // Chrome personal options page UI handler. | 15 // Chrome personal options page UI handler. |
| 15 class AddStartupPageHandler : public OptionsPageUIHandler, | 16 class AddStartupPageHandler : public OptionsPageUIHandler, |
| 16 public TableModelObserver { | 17 public TableModelObserver { |
| 17 public: | 18 public: |
| 18 AddStartupPageHandler(); | 19 AddStartupPageHandler(); |
| 19 virtual ~AddStartupPageHandler(); | 20 virtual ~AddStartupPageHandler(); |
| (...skipping 13 matching lines...) Expand all Loading... |
| 33 // Request to update the text field with the URL of the recent page at the | 34 // Request to update the text field with the URL of the recent page at the |
| 34 // given index, formatted for user input. Called from DOMUI. | 35 // given index, formatted for user input. Called from DOMUI. |
| 35 void UpdateFieldWithRecentPage(const ListValue* args); | 36 void UpdateFieldWithRecentPage(const ListValue* args); |
| 36 | 37 |
| 37 scoped_ptr<PossibleURLModel> url_table_model_; | 38 scoped_ptr<PossibleURLModel> url_table_model_; |
| 38 | 39 |
| 39 DISALLOW_COPY_AND_ASSIGN(AddStartupPageHandler); | 40 DISALLOW_COPY_AND_ASSIGN(AddStartupPageHandler); |
| 40 }; | 41 }; |
| 41 | 42 |
| 42 #endif // CHROME_BROWSER_DOM_UI_ADD_STARTUP_PAGE_HANDLER_H_ | 43 #endif // CHROME_BROWSER_DOM_UI_ADD_STARTUP_PAGE_HANDLER_H_ |
| 43 | |
| OLD | NEW |