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

Side by Side Diff: chrome/browser/extensions/convert_user_script.h

Issue 340057: Add first-class support for user scripts (Closed)
Patch Set: newness Created 11 years, 1 month 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_EXTENSIONS_CONVERT_USER_SCRIPT_H_
6 #define CHROME_BROWSER_EXTENSIONS_CONVERT_USER_SCRIPT_H_
7
8 #include <string>
9
10 class Extension;
11 class FilePath;
12 class GURL;
13
14 // Wraps the specified user script in an extension. The extension is created
15 // unpacked in the system temp dir. Returns a valid extension that the caller
16 // should take ownership on success, or NULL and |error| on failure.
17 //
18 // NOTE: This function does file IO and should not be called on the UI thread.
19 Extension* ConvertUserScriptToExtension(const FilePath& user_script,
20 const GURL& original_url,
21 std::string* error);
22
23 #endif // CHROME_BROWSER_EXTENSIONS_CONVERT_USER_SCRIPT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698