summaryrefslogtreecommitdiffstats
path: root/extensions/common/extension_urls.cc
diff options
context:
space:
mode:
Diffstat (limited to 'extensions/common/extension_urls.cc')
-rw-r--r--extensions/common/extension_urls.cc16
1 files changed, 16 insertions, 0 deletions
diff --git a/extensions/common/extension_urls.cc b/extensions/common/extension_urls.cc
new file mode 100644
index 0000000..f354b6b
--- /dev/null
+++ b/extensions/common/extension_urls.cc
@@ -0,0 +1,16 @@
+// Copyright 2013 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.
+
+#include "extensions/common/extension_urls.h"
+
+#include "extensions/common/constants.h"
+#include "url/gurl.h"
+
+namespace extensions {
+
+bool IsSourceFromAnExtension(const base::string16& source) {
+ return GURL(source).SchemeIs(kExtensionScheme);
+}
+
+} // namespace extensions