OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2012 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_EXTENSIONS_EXTENSION_FUNCTION_UTIL_H__ |
| 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_FUNCTION_UTIL_H__ |
| 7 #pragma once |
| 8 |
| 9 #include <vector> |
| 10 #include "base/values.h" |
| 11 |
| 12 namespace base { |
| 13 class Value; |
| 14 } |
| 15 |
| 16 |
| 17 // Provides various utility functions for extension API implementations. |
| 18 class ExtensionFuncUtil { |
| 19 public: |
| 20 // Reads the |value| as either a single integer value or a list of integers. |
| 21 static bool ReadOneOrMoreIntegers(base::Value* value, |
| 22 std::vector<int>* result); |
| 23 }; |
| 24 |
| 25 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_FUNCTION_UTIL_H__ |
OLD | NEW |