summaryrefslogtreecommitdiffstats
path: root/chrome/browser/extensions/convert_user_script.h
diff options
context:
space:
mode:
authoraa@chromium.org <aa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-11-02 23:24:15 +0000
committeraa@chromium.org <aa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-11-02 23:24:15 +0000
commit97310d6ea1ceec457157847c2f8b9b06b0d4581e (patch)
tree00b9615da74b1d14cf18a82091d920c49c69c62b /chrome/browser/extensions/convert_user_script.h
parente986b89dc90b2848e8c8b711917b880911847ee8 (diff)
downloadchromium_src-97310d6ea1ceec457157847c2f8b9b06b0d4581e.zip
chromium_src-97310d6ea1ceec457157847c2f8b9b06b0d4581e.tar.gz
chromium_src-97310d6ea1ceec457157847c2f8b9b06b0d4581e.tar.bz2
Add convert_web_app.*, a utility to convert web apps declared
in pure HTML into the extension-based web apps used internally by Chrome. BUG=49233 TEST=unit_tests --gtest_filter=ExtensionFromWebApp.* Review URL: http://codereview.chromium.org/4139008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@64845 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/extensions/convert_user_script.h')
-rw-r--r--chrome/browser/extensions/convert_user_script.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/chrome/browser/extensions/convert_user_script.h b/chrome/browser/extensions/convert_user_script.h
index d779de0..678c6eb 100644
--- a/chrome/browser/extensions/convert_user_script.h
+++ b/chrome/browser/extensions/convert_user_script.h
@@ -19,6 +19,8 @@ class GURL;
// should take ownership on success, or NULL and |error| on failure.
//
// NOTE: This function does file IO and should not be called on the UI thread.
+// NOTE: The caller takes ownership of the directory at extension->path() on the
+// returned object.
scoped_refptr<Extension> ConvertUserScriptToExtension(
const FilePath& user_script, const GURL& original_url, std::string* error);