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

Side by Side Diff: chrome/browser/search_engines/edit_search_engine_controller.h

Issue 179028: Revert "Fix a ton of compiler warnings." (Closed)
Patch Set: Created 11 years, 3 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
OLDNEW
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 "base/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
21 // existing TemplateURL. 21 // existing TemplateURL.
22 virtual void OnEditedKeyword(const TemplateURL* template_url, 22 virtual void OnEditedKeyword(const TemplateURL* template_url,
23 const std::wstring& title, 23 const std::wstring& title,
24 const std::wstring& keyword, 24 const std::wstring& keyword,
25 const std::wstring& url) = 0; 25 const std::wstring& url) = 0;
26 protected:
27 ~EditSearchEngineControllerDelegate() {}
28 }; 26 };
29 27
30 // EditSearchEngineController provides the core platform independent logic 28 // EditSearchEngineController provides the core platform independent logic
31 // for the Edit Search Engine dialog. 29 // for the Edit Search Engine dialog.
32 class EditSearchEngineController { 30 class EditSearchEngineController {
33 public: 31 public:
34 // The |template_url| and/or |edit_keyword_delegate| may be NULL. 32 // The |template_url| and/or |edit_keyword_delegate| may be NULL.
35 EditSearchEngineController( 33 EditSearchEngineController(
36 const TemplateURL* template_url, 34 const TemplateURL* template_url,
37 EditSearchEngineControllerDelegate* edit_keyword_delegate, 35 EditSearchEngineControllerDelegate* edit_keyword_delegate,
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 // success to add/modify the entry. May be NULL. 77 // success to add/modify the entry. May be NULL.
80 EditSearchEngineControllerDelegate* edit_keyword_delegate_; 78 EditSearchEngineControllerDelegate* edit_keyword_delegate_;
81 79
82 // Profile whose TemplateURLModel we're modifying. 80 // Profile whose TemplateURLModel we're modifying.
83 Profile* profile_; 81 Profile* profile_;
84 82
85 DISALLOW_COPY_AND_ASSIGN(EditSearchEngineController); 83 DISALLOW_COPY_AND_ASSIGN(EditSearchEngineController);
86 }; 84 };
87 85
88 #endif // CHROME_BROWSER_SEARCH_ENGINES_EDIT_SEARCH_ENGINE_CONTROLLER_H_ 86 #endif // CHROME_BROWSER_SEARCH_ENGINES_EDIT_SEARCH_ENGINE_CONTROLLER_H_
OLDNEW
« no previous file with comments | « chrome/browser/safe_browsing/safe_browsing_blocking_page.h ('k') | chrome/browser/search_engines/template_url_model.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698