value_helper.h revision dc0f95d653279beabeb9817299e2902918ba123e
1// Copyright (c) 2011 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_UI_WEBUI_VALUE_HELPER_H_
6#define CHROME_BROWSER_UI_WEBUI_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.
14class 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_UI_WEBUI_VALUE_HELPER_H_
25
26