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

Side by Side Diff: chrome/browser/dom_ui/dom_ui.h

Issue 2804039: First cut at the tabbed content settings page. (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: no change Created 10 years, 5 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
« no previous file with comments | « chrome/browser/dom_ui/content_settings_handler.cc ('k') | chrome/browser/dom_ui/options_ui.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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_DOM_UI_H_ 5 #ifndef CHROME_BROWSER_DOM_UI_DOM_UI_H_
6 #define CHROME_BROWSER_DOM_UI_DOM_UI_H_ 6 #define CHROME_BROWSER_DOM_UI_DOM_UI_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after
164 protected: 164 protected:
165 // Adds "url" and "title" keys on incoming dictionary, setting title 165 // Adds "url" and "title" keys on incoming dictionary, setting title
166 // as the url as a fallback on empty title. 166 // as the url as a fallback on empty title.
167 static void SetURLAndTitle(DictionaryValue* dictionary, 167 static void SetURLAndTitle(DictionaryValue* dictionary,
168 string16 title, 168 string16 title,
169 const GURL& gurl); 169 const GURL& gurl);
170 170
171 // This is where subclasses specify which messages they'd like to handle. 171 // This is where subclasses specify which messages they'd like to handle.
172 virtual void RegisterMessages() = 0; 172 virtual void RegisterMessages() = 0;
173 173
174 // Extract an integer value from a Value. 174 // Extract an integer value from a list Value.
175 bool ExtractIntegerValue(const Value* value, int* out_int); 175 bool ExtractIntegerValue(const Value* value, int* out_int);
176 176
177 // Extract a string value from a Value. 177 // Extract a string value from a list Value.
178 std::wstring ExtractStringValue(const Value* value); 178 std::wstring ExtractStringValue(const Value* value);
179 179
180 DOMUI* dom_ui_; 180 DOMUI* dom_ui_;
181 181
182 private: 182 private:
183 DISALLOW_COPY_AND_ASSIGN(DOMMessageHandler); 183 DISALLOW_COPY_AND_ASSIGN(DOMMessageHandler);
184 }; 184 };
185 185
186 #endif // CHROME_BROWSER_DOM_UI_DOM_UI_H_ 186 #endif // CHROME_BROWSER_DOM_UI_DOM_UI_H_
OLDNEW
« no previous file with comments | « chrome/browser/dom_ui/content_settings_handler.cc ('k') | chrome/browser/dom_ui/options_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698