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

Unified Diff: chrome/browser/extensions/api/declarative_webrequest/webrequest_helpers.h

Issue 10012004: Implemented proper support for checking schemes and requested resource types. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Renamed 'scheme' to 'schemes' 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/api/declarative_webrequest/webrequest_helpers.h
diff --git a/chrome/browser/extensions/api/declarative_webrequest/webrequest_helpers.h b/chrome/browser/extensions/api/declarative_webrequest/webrequest_helpers.h
new file mode 100644
index 0000000000000000000000000000000000000000..365019868b4e31988462c2070e4c57eef92a16ef
--- /dev/null
+++ b/chrome/browser/extensions/api/declarative_webrequest/webrequest_helpers.h
@@ -0,0 +1,28 @@
+// 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.
+
+// Helper functions used for the WebRequest API.
+
+#ifndef CHROME_BROWSER_EXTENSIONS_API_DECLARATIVE_WEBREQUEST_WEBREQUEST_HELPERS_H_
+#define CHROME_BROWSER_EXTENSIONS_API_DECLARATIVE_WEBREQUEST_WEBREQUEST_HELPERS_H_
+#pragma once
+
+#include <string>
+#include <vector>
+
+namespace base {
+class Value;
+}
+
+namespace extensions {
+namespace declarative_webrequest_helpers {
+
+// Converts a ValueList |value| of strings into a vector. Returns true if
+// successful.
+bool GetAsStringVector(const base::Value* value, std::vector<std::string>* out);
+
+} // namespace declarative_webrequest_helpers
+} // namespace extensions
+
+#endif // CHROME_BROWSER_EXTENSIONS_API_DECLARATIVE_WEBREQUEST_WEBREQUEST_HELPERS_H_

Powered by Google App Engine
This is Rietveld 408576698