| OLD | NEW |
| 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 Loading... |
| 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_ |
| OLD | NEW |