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

Side by Side Diff: chrome/common/extensions/extension_file_util.h

Issue 3207002: FBTF: Forward declare and move constructors in chrome/common/extensions/. (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: Win fixes Created 10 years, 4 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
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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_COMMON_EXTENSIONS_EXTENSION_FILE_UTIL_H_ 5 #ifndef CHROME_COMMON_EXTENSIONS_EXTENSION_FILE_UTIL_H_
6 #define CHROME_COMMON_EXTENSIONS_EXTENSION_FILE_UTIL_H_ 6 #define CHROME_COMMON_EXTENSIONS_EXTENSION_FILE_UTIL_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 #include <map>
10 11
11 #include "chrome/common/extensions/extension.h" 12 class Extension;
12
13 class ExtensionMessageBundle; 13 class ExtensionMessageBundle;
14 class FilePath; 14 class FilePath;
15 class GURL;
15 16
16 // Utilties for manipulating the on-disk storage of extensions. 17 // Utilties for manipulating the on-disk storage of extensions.
17 namespace extension_file_util { 18 namespace extension_file_util {
18 19
19 // The name of the directory inside the profile that we store installed 20 // The name of the directory inside the profile that we store installed
20 // extension in. 21 // extension in.
21 extern const char kInstallDirectoryName[]; 22 extern const char kInstallDirectoryName[];
22 23
23 // Copies |unpacked_source_dir| into the right location under |extensions_dir|. 24 // Copies |unpacked_source_dir| into the right location under |extensions_dir|.
24 // The destination directiory is returned on success, or empty path is returned 25 // The destination directiory is returned on success, or empty path is returned
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 // reserved list we return false, and set error message. 69 // reserved list we return false, and set error message.
69 bool CheckForIllegalFilenames(const FilePath& extension_path, 70 bool CheckForIllegalFilenames(const FilePath& extension_path,
70 std::string* error); 71 std::string* error);
71 72
72 // Get a relative file path from a chrome-extension:// URL. 73 // Get a relative file path from a chrome-extension:// URL.
73 FilePath ExtensionURLToRelativeFilePath(const GURL& url); 74 FilePath ExtensionURLToRelativeFilePath(const GURL& url);
74 75
75 } // namespace extension_file_util 76 } // namespace extension_file_util
76 77
77 #endif // CHROME_COMMON_EXTENSIONS_EXTENSION_FILE_UTIL_H_ 78 #endif // CHROME_COMMON_EXTENSIONS_EXTENSION_FILE_UTIL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698