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

Side by Side Diff: chrome/browser/ui/search_engines/keyword_editor_controller.h

Issue 501463003: Remove two unused prefs keys. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 4 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 | Annotate | Revision Log
OLDNEW
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_SEARCH_ENGINES_KEYWORD_EDITOR_CONTROLLER_H_ 5 #ifndef CHROME_BROWSER_UI_SEARCH_ENGINES_KEYWORD_EDITOR_CONTROLLER_H_
6 #define CHROME_BROWSER_UI_SEARCH_ENGINES_KEYWORD_EDITOR_CONTROLLER_H_ 6 #define CHROME_BROWSER_UI_SEARCH_ENGINES_KEYWORD_EDITOR_CONTROLLER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
11 #include "base/memory/scoped_ptr.h" 11 #include "base/memory/scoped_ptr.h"
12 #include "base/strings/string16.h" 12 #include "base/strings/string16.h"
13 13
14 class PrefRegistrySimple; 14 class PrefRegistrySimple;
15 class Profile; 15 class Profile;
16 class TemplateURL; 16 class TemplateURL;
17 class TemplateURLService; 17 class TemplateURLService;
18 class TemplateURLTableModel; 18 class TemplateURLTableModel;
19 19
20 class KeywordEditorController { 20 class KeywordEditorController {
21 public: 21 public:
22 explicit KeywordEditorController(Profile* profile); 22 explicit KeywordEditorController(Profile* profile);
23 ~KeywordEditorController(); 23 ~KeywordEditorController();
24 24
25 static void RegisterPrefs(PrefRegistrySimple* registry);
26
27 // Invoked when the user succesfully fills out the add keyword dialog. 25 // Invoked when the user succesfully fills out the add keyword dialog.
28 // Propagates the change to the TemplateURLService and updates the table 26 // Propagates the change to the TemplateURLService and updates the table
29 // model. Returns the index of the added URL. 27 // model. Returns the index of the added URL.
30 int AddTemplateURL(const base::string16& title, 28 int AddTemplateURL(const base::string16& title,
31 const base::string16& keyword, 29 const base::string16& keyword,
32 const std::string& url); 30 const std::string& url);
33 31
34 // Invoked when the user modifies a TemplateURL. Updates the 32 // Invoked when the user modifies a TemplateURL. Updates the
35 // TemplateURLService and table model appropriately. 33 // TemplateURLService and table model appropriately.
36 void ModifyTemplateURL(TemplateURL* template_url, 34 void ModifyTemplateURL(TemplateURL* template_url,
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 private: 68 private:
71 TemplateURLService* url_model_; 69 TemplateURLService* url_model_;
72 70
73 // Model for the TableView. 71 // Model for the TableView.
74 scoped_ptr<TemplateURLTableModel> table_model_; 72 scoped_ptr<TemplateURLTableModel> table_model_;
75 73
76 DISALLOW_COPY_AND_ASSIGN(KeywordEditorController); 74 DISALLOW_COPY_AND_ASSIGN(KeywordEditorController);
77 }; 75 };
78 76
79 #endif // CHROME_BROWSER_UI_SEARCH_ENGINES_KEYWORD_EDITOR_CONTROLLER_H_ 77 #endif // CHROME_BROWSER_UI_SEARCH_ENGINES_KEYWORD_EDITOR_CONTROLLER_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/browser_ui_prefs.cc ('k') | chrome/browser/ui/search_engines/keyword_editor_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698