Ignore non-active fullscreen windows for shelf state.
[chromium-blink-merge.git] / extensions / common / id_util.h
blob74e690dbf6012133b4261771da8cd2c4d87995c5
1 // Copyright (c) 2013 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.
5 #ifndef EXTENSIONS_COMMON_ID_UTIL_H_
6 #define EXTENSIONS_COMMON_ID_UTIL_H_
8 #include <string>
10 namespace base {
11 class FilePath;
14 namespace extensions {
15 namespace id_util {
17 // The number of bytes in a legal id.
18 extern const size_t kIdSize;
20 // Generates an extension ID from arbitrary input. The same input string will
21 // always generate the same output ID.
22 std::string GenerateId(const std::string& input);
24 // Generate an ID for an extension in the given path.
25 // Used while developing extensions, before they have a key.
26 std::string GenerateIdForPath(const base::FilePath& path);
28 // Normalize the path for use by the extension. On Windows, this will make
29 // sure the drive letter is uppercase.
30 base::FilePath MaybeNormalizePath(const base::FilePath& path);
32 } // namespace id_util
33 } // namespace extensions
35 #endif // EXTENSIONS_COMMON_ID_UTIL_H_