summaryrefslogtreecommitdiffstats
path: root/extensions/browser/extension_function_util.h
blob: e9943076d194aa88460492e89eb2987ce16faf25 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef EXTENSIONS_BROWSER_EXTENSION_FUNCTION_UTIL_H__
#define EXTENSIONS_BROWSER_EXTENSION_FUNCTION_UTIL_H__

#include <vector>
#include "base/values.h"

namespace base {
class Value;
}

// This file contains various utility functions for extension API
// implementations.
namespace extensions {

// Reads the |value| as either a single integer value or a list of integers.
bool ReadOneOrMoreIntegers(base::Value* value, std::vector<int>* result);

} // namespace extensions

#endif  // EXTENSIONS_BROWSER_EXTENSION_FUNCTION_UTIL_H__