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

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

Issue 12163003: Add FilePath to base namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 10 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_EXTENSIONS_CONVERT_USER_SCRIPT_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_CONVERT_USER_SCRIPT_H_
6 #define CHROME_BROWSER_EXTENSIONS_CONVERT_USER_SCRIPT_H_ 6 #define CHROME_BROWSER_EXTENSIONS_CONVERT_USER_SCRIPT_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
11 #include "base/string16.h" 11 #include "base/string16.h"
12 12
13 class GURL;
14
15 namespace base {
13 class FilePath; 16 class FilePath;
14 class GURL; 17 }
15 18
16 namespace extensions { 19 namespace extensions {
17 class Extension; 20 class Extension;
18 21
19 // Wraps the specified user script in an extension. The extension is created 22 // Wraps the specified user script in an extension. The extension is created
20 // unpacked in the system temp dir. Returns a valid extension that the caller 23 // unpacked in the system temp dir. Returns a valid extension that the caller
21 // should take ownership on success, or NULL and |error| on failure. 24 // should take ownership on success, or NULL and |error| on failure.
22 // 25 //
23 // NOTE: This function does file IO and should not be called on the UI thread. 26 // NOTE: This function does file IO and should not be called on the UI thread.
24 // NOTE: The caller takes ownership of the directory at extension->path() on the 27 // NOTE: The caller takes ownership of the directory at extension->path() on the
25 // returned object. 28 // returned object.
26 scoped_refptr<extensions::Extension> ConvertUserScriptToExtension( 29 scoped_refptr<extensions::Extension> ConvertUserScriptToExtension(
27 const FilePath& user_script, const GURL& original_url, 30 const base::FilePath& user_script, const GURL& original_url,
28 const FilePath& extensions_dir, string16* error); 31 const base::FilePath& extensions_dir, string16* error);
29 32
30 } // namespace extensions 33 } // namespace extensions
31 34
32 #endif // CHROME_BROWSER_EXTENSIONS_CONVERT_USER_SCRIPT_H_ 35 #endif // CHROME_BROWSER_EXTENSIONS_CONVERT_USER_SCRIPT_H_
OLDNEW
« no previous file with comments | « chrome/browser/extensions/app_notification_storage.h ('k') | chrome/browser/extensions/convert_web_app.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698