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

Unified Diff: chrome/common/extensions/extension_sidebar_utils.h

Issue 6321006: Add "sidebar" section to extension manifest:... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 11 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/common/extensions/extension_sidebar_utils.h
===================================================================
--- chrome/common/extensions/extension_sidebar_utils.h (revision 0)
+++ chrome/common/extensions/extension_sidebar_utils.h (revision 0)
@@ -0,0 +1,29 @@
+// Copyright (c) 2010 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_COMMON_EXTENSIONS_EXTENSION_SIDEBAR_UTILS_H_
+#define CHROME_COMMON_EXTENSIONS_EXTENSION_SIDEBAR_UTILS_H_
+#pragma once
+
+#include <string>
+
+class Extension;
+class GURL;
+
+namespace extension_sidebar_utils {
+
+// Returns id of an extension owning a sidebar identified by |content_id|.
+std::string GetExtensionIdByContentId(const std::string& content_id);
+
+// Resolves |url_string| relative to |extension|'s url and verifies it
+// against |extension|'s host permissions.
+// In case of any problem, returns an empty invalid GURL and |error| receives
+// the corresponding error message.
+GURL ResolveAndVerifyUrl(const std::string& url_string,
+ const Extension* extension,
+ std::string* error);
+
+} // namespace extension_sidebar_utils
+
+#endif // CHROME_COMMON_EXTENSIONS_EXTENSION_SIDEBAR_UTILS_H_
Property changes on: chrome\common\extensions\extension_sidebar_utils.h
___________________________________________________________________
Added: svn:eol-style
+ LF
« no previous file with comments | « chrome/common/extensions/extension_sidebar_defaults.h ('k') | chrome/common/extensions/extension_sidebar_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698