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

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

Issue 10175008: Improving the process model extension API (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Moved common functionality to ExtensionTabUtil and more feedback fixes. Created 8 years, 8 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_tab_util.h
diff --git a/chrome/browser/extensions/extension_tab_util.h b/chrome/browser/extensions/extension_tab_util.h
index ed0f1a51900cfb5dd6c3ea3165691b75ed9cc062..93e7bfd26c0da3baf992af84eddf8b79a5559a12 100644
--- a/chrome/browser/extensions/extension_tab_util.h
+++ b/chrome/browser/extensions/extension_tab_util.h
@@ -7,6 +7,7 @@
#pragma once
#include <string>
+#include <vector>
class Browser;
class Extension;
@@ -18,6 +19,7 @@ class TabStripModel;
namespace base {
class DictionaryValue;
class ListValue;
+class Value;
}
namespace content {
@@ -75,6 +77,10 @@ class ExtensionTabUtil {
// Returns true if |url| is used for testing crashes.
static bool IsCrashURL(const GURL& url);
+
+ // 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_TAB_UTIL_H__

Powered by Google App Engine
This is Rietveld 408576698