Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4730)

Unified Diff: chrome/browser/extensions/extension_function_util.h

Issue 10175008: Improving the process model extension API (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressing feedback by Matt. Created 8 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/extensions/extension_function_util.h
diff --git a/chrome/browser/extensions/extension_function_util.h b/chrome/browser/extensions/extension_function_util.h
new file mode 100644
index 0000000000000000000000000000000000000000..5131427e78deedef5d5f069d6463f181f2f1d089
--- /dev/null
+++ b/chrome/browser/extensions/extension_function_util.h
@@ -0,0 +1,25 @@
+// Copyright (c) 2012 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 CHROME_BROWSER_EXTENSIONS_EXTENSION_FUNCTION_UTIL_H__
+#define CHROME_BROWSER_EXTENSIONS_EXTENSION_FUNCTION_UTIL_H__
+#pragma once
+
+#include <vector>
+#include "base/values.h"
+
+namespace base {
+class Value;
+}
+
+
+// Provides various utility functions for extension API implementations.
+class ExtensionFuncUtil {
+ public:
+ // Reads the |value| as either a single integer value or a list of integers.
+ static bool ReadOneOrMoreIntegers(base::Value* value,
+ std::vector<int>* result);
+};
+
+#endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_FUNCTION_UTIL_H__

Powered by Google App Engine
This is Rietveld 408576698