OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CHROME_BROWSER_DOM_UI_VALUE_HELPER_H_ |
| 6 #define CHROME_BROWSER_DOM_UI_VALUE_HELPER_H_ |
| 7 #pragma once |
| 8 |
| 9 #include "chrome/browser/sessions/tab_restore_service.h" |
| 10 |
| 11 #include "base/values.h" |
| 12 |
| 13 // Used to convert TabRestoreService elements to values for JSON processing. |
| 14 class ValueHelper { |
| 15 public: |
| 16 static bool TabToValue(const TabRestoreService::Tab& tab, |
| 17 DictionaryValue* dictionary); |
| 18 static bool WindowToValue(const TabRestoreService::Window& window, |
| 19 DictionaryValue* dictionary); |
| 20 private: |
| 21 DISALLOW_IMPLICIT_CONSTRUCTORS(ValueHelper); |
| 22 }; |
| 23 |
| 24 #endif // CHROME_BROWSER_DOM_UI_VALUE_HELPER_H_ |
| 25 |
OLD | NEW |