OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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_SEARCH_ENGINES_EDIT_SEARCH_ENGINE_CONTROLLER_H_ | 5 #ifndef CHROME_BROWSER_SEARCH_ENGINES_EDIT_SEARCH_ENGINE_CONTROLLER_H_ |
6 #define CHROME_BROWSER_SEARCH_ENGINES_EDIT_SEARCH_ENGINE_CONTROLLER_H_ | 6 #define CHROME_BROWSER_SEARCH_ENGINES_EDIT_SEARCH_ENGINE_CONTROLLER_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/gfx/native_widget_types.h" | 10 #include "app/gfx/native_widget_types.h" |
11 | 11 |
12 class Profile; | 12 class Profile; |
13 class TemplateURL; | 13 class TemplateURL; |
14 | 14 |
15 class EditSearchEngineControllerDelegate { | 15 class EditSearchEngineControllerDelegate { |
16 public: | 16 public: |
17 // Invoked from the EditSearchEngineController when the user accepts the | 17 // Invoked from the EditSearchEngineController when the user accepts the |
18 // edits. NOTE: |template_url| is the value supplied to | 18 // edits. NOTE: |template_url| is the value supplied to |
19 // EditSearchEngineController's constructor, and may be NULL. A NULL value | 19 // EditSearchEngineController's constructor, and may be NULL. A NULL value |
20 // indicates a new TemplateURL should be created rather than modifying an | 20 // indicates a new TemplateURL should be created rather than modifying an |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
77 // success to add/modify the entry. May be NULL. | 77 // success to add/modify the entry. May be NULL. |
78 EditSearchEngineControllerDelegate* edit_keyword_delegate_; | 78 EditSearchEngineControllerDelegate* edit_keyword_delegate_; |
79 | 79 |
80 // Profile whose TemplateURLModel we're modifying. | 80 // Profile whose TemplateURLModel we're modifying. |
81 Profile* profile_; | 81 Profile* profile_; |
82 | 82 |
83 DISALLOW_COPY_AND_ASSIGN(EditSearchEngineController); | 83 DISALLOW_COPY_AND_ASSIGN(EditSearchEngineController); |
84 }; | 84 }; |
85 | 85 |
86 #endif // CHROME_BROWSER_SEARCH_ENGINES_EDIT_SEARCH_ENGINE_CONTROLLER_H_ | 86 #endif // CHROME_BROWSER_SEARCH_ENGINES_EDIT_SEARCH_ENGINE_CONTROLLER_H_ |
OLD | NEW |