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 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 | 10 |
11 #include "base/string16.h" | 11 #include "base/string16.h" |
12 #include "gfx/native_widget_types.h" | 12 #include "ui/gfx/native_widget_types.h" |
13 | 13 |
14 class Profile; | 14 class Profile; |
15 class TemplateURL; | 15 class TemplateURL; |
16 | 16 |
17 class EditSearchEngineControllerDelegate { | 17 class EditSearchEngineControllerDelegate { |
18 public: | 18 public: |
19 // Invoked from the EditSearchEngineController when the user accepts the | 19 // Invoked from the EditSearchEngineController when the user accepts the |
20 // edits. NOTE: |template_url| is the value supplied to | 20 // edits. NOTE: |template_url| is the value supplied to |
21 // EditSearchEngineController's constructor, and may be NULL. A NULL value | 21 // EditSearchEngineController's constructor, and may be NULL. A NULL value |
22 // indicates a new TemplateURL should be created rather than modifying an | 22 // indicates a new TemplateURL should be created rather than modifying an |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
82 // success to add/modify the entry. May be NULL. | 82 // success to add/modify the entry. May be NULL. |
83 EditSearchEngineControllerDelegate* edit_keyword_delegate_; | 83 EditSearchEngineControllerDelegate* edit_keyword_delegate_; |
84 | 84 |
85 // Profile whose TemplateURLModel we're modifying. | 85 // Profile whose TemplateURLModel we're modifying. |
86 Profile* profile_; | 86 Profile* profile_; |
87 | 87 |
88 DISALLOW_COPY_AND_ASSIGN(EditSearchEngineController); | 88 DISALLOW_COPY_AND_ASSIGN(EditSearchEngineController); |
89 }; | 89 }; |
90 | 90 |
91 #endif // CHROME_BROWSER_SEARCH_ENGINES_EDIT_SEARCH_ENGINE_CONTROLLER_H_ | 91 #endif // CHROME_BROWSER_SEARCH_ENGINES_EDIT_SEARCH_ENGINE_CONTROLLER_H_ |
OLD | NEW |