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

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

Issue 11198067: Move extension unpack intermediate dir to Extensions/Temp (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: standardize names Created 8 years, 2 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_WEB_APP_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_CONVERT_WEB_APP_H_
6 #define CHROME_BROWSER_EXTENSIONS_CONVERT_WEB_APP_H_ 6 #define CHROME_BROWSER_EXTENSIONS_CONVERT_WEB_APP_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 11
12 class FilePath;
12 13
13 namespace base { 14 namespace base {
14 class Time; 15 class Time;
15 } 16 }
16 17
17 struct WebApplicationInfo; 18 struct WebApplicationInfo;
18 19
19 namespace extensions { 20 namespace extensions {
20 class Extension; 21 class Extension;
21 22
(...skipping 10 matching lines...) Expand all
32 33
33 // Wraps the specified web app in an extension. The extension is created 34 // Wraps the specified web app in an extension. The extension is created
34 // unpacked in the system temp dir. Returns a valid extension that the caller 35 // unpacked in the system temp dir. Returns a valid extension that the caller
35 // should take ownership on success, or NULL and |error| on failure. 36 // should take ownership on success, or NULL and |error| on failure.
36 // 37 //
37 // NOTE: This function does file IO and should not be called on the UI thread. 38 // NOTE: This function does file IO and should not be called on the UI thread.
38 // NOTE: The caller takes ownership of the directory at extension->path() on the 39 // NOTE: The caller takes ownership of the directory at extension->path() on the
39 // returned object. 40 // returned object.
40 scoped_refptr<Extension> ConvertWebAppToExtension( 41 scoped_refptr<Extension> ConvertWebAppToExtension(
41 const WebApplicationInfo& web_app_info, 42 const WebApplicationInfo& web_app_info,
42 const base::Time& create_time); 43 const base::Time& create_time,
44 const FilePath& extensions_dir);
43 45
44 } // namespace extensions 46 } // namespace extensions
45 47
46 #endif // CHROME_BROWSER_EXTENSIONS_CONVERT_WEB_APP_H_ 48 #endif // CHROME_BROWSER_EXTENSIONS_CONVERT_WEB_APP_H_
OLDNEW
« no previous file with comments | « chrome/browser/extensions/convert_user_script_unittest.cc ('k') | chrome/browser/extensions/convert_web_app.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698