Add ability to change display settings to chrome.systemInfo.display
[chromium-blink-merge.git] / ppapi / shared_impl / file_ref_util.h
blob7633916f68dc7cdbb35f19b410f98408231cd5f3
1 // Copyright 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 PPAPI_SHARED_IMPL_FILE_REF_UTIL_H_
6 #define PPAPI_SHARED_IMPL_FILE_REF_UTIL_H_
8 #include <string>
10 #include "base/files/file_path.h"
12 namespace ppapi {
14 // Routines to generate display names for internal and external file paths.
15 std::string GetNameForInternalFilePath(const std::string& path);
16 std::string GetNameForExternalFilePath(const base::FilePath& path);
18 // Determines whether an internal file path is valid.
19 bool IsValidInternalPath(const std::string& path);
21 // If path ends with a slash, normalize it away unless it's the root path.
22 void NormalizeInternalPath(std::string* path);
24 } // namespace ppapi
26 #endif // PPAPI_SHARED_IMPL_FILE_REF_UTIL_H_