OLD | NEW |
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 #pragma once | |
8 | 7 |
9 #include <string> | 8 #include <string> |
10 | 9 |
11 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
12 | 11 |
13 | 12 |
14 namespace base { | 13 namespace base { |
15 class Time; | 14 class Time; |
16 } | 15 } |
17 | 16 |
(...skipping 19 matching lines...) Expand all Loading... |
37 // should take ownership on success, or NULL and |error| on failure. | 36 // should take ownership on success, or NULL and |error| on failure. |
38 // | 37 // |
39 // 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. |
40 // 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 |
41 // returned object. | 40 // returned object. |
42 scoped_refptr<extensions::Extension> ConvertWebAppToExtension( | 41 scoped_refptr<extensions::Extension> ConvertWebAppToExtension( |
43 const WebApplicationInfo& web_app_info, | 42 const WebApplicationInfo& web_app_info, |
44 const base::Time& create_time); | 43 const base::Time& create_time); |
45 | 44 |
46 #endif // CHROME_BROWSER_EXTENSIONS_CONVERT_WEB_APP_H_ | 45 #endif // CHROME_BROWSER_EXTENSIONS_CONVERT_WEB_APP_H_ |
OLD | NEW |