Added condition that checks if ephemeral user has GAIA account (not a public session...
[chromium-blink-merge.git] / extensions / browser / extension_function_util.h
blobe9943076d194aa88460492e89eb2987ce16faf25
1 // Copyright 2014 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.
5 #ifndef EXTENSIONS_BROWSER_EXTENSION_FUNCTION_UTIL_H__
6 #define EXTENSIONS_BROWSER_EXTENSION_FUNCTION_UTIL_H__
8 #include <vector>
9 #include "base/values.h"
11 namespace base {
12 class Value;
15 // This file contains various utility functions for extension API
16 // implementations.
17 namespace extensions {
19 // Reads the |value| as either a single integer value or a list of integers.
20 bool ReadOneOrMoreIntegers(base::Value* value, std::vector<int>* result);
22 } // namespace extensions
24 #endif // EXTENSIONS_BROWSER_EXTENSION_FUNCTION_UTIL_H__