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 WEBKIT_PLUGINS_PPAPI_FILE_PATH_H_ | 5 #ifndef WEBKIT_PLUGINS_PPAPI_FILE_PATH_H_ |
6 #define WEBKIT_PLUGINS_PPAPI_FILE_PATH_H_ | 6 #define WEBKIT_PLUGINS_PPAPI_FILE_PATH_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/file_path.h" | 10 #include "base/file_path.h" |
(...skipping 14 matching lines...) Expand all Loading... |
25 DOMAIN_ABSOLUTE, | 25 DOMAIN_ABSOLUTE, |
26 DOMAIN_MODULE_LOCAL, | 26 DOMAIN_MODULE_LOCAL, |
27 | 27 |
28 // Used for validity-checking. | 28 // Used for validity-checking. |
29 DOMAIN_MAX_VALID = DOMAIN_MODULE_LOCAL | 29 DOMAIN_MAX_VALID = DOMAIN_MODULE_LOCAL |
30 }; | 30 }; |
31 | 31 |
32 PepperFilePath(); | 32 PepperFilePath(); |
33 PepperFilePath(Domain d, FilePath p); | 33 PepperFilePath(Domain d, FilePath p); |
34 | 34 |
35 static PepperFilePath MakeAbsolute(const char* utf8_path); | 35 static PepperFilePath MakeAbsolute(const FilePath& path); |
36 static PepperFilePath MakeModuleLocal(PluginModule* module, | 36 static PepperFilePath MakeModuleLocal(PluginModule* module, |
37 const char* utf8_path); | 37 const char* utf8_path); |
38 | 38 |
39 Domain domain() const { return domain_; } | 39 Domain domain() const { return domain_; } |
40 const FilePath& path() const { return path_; } | 40 const FilePath& path() const { return path_; } |
41 | 41 |
42 private: | 42 private: |
43 Domain domain_; | 43 Domain domain_; |
44 FilePath path_; | 44 FilePath path_; |
45 }; | 45 }; |
46 | 46 |
47 } // namespace ppapi | 47 } // namespace ppapi |
48 } // namespace webkit | 48 } // namespace webkit |
49 | 49 |
50 #endif // WEBKIT_PLUGINS_PPAPI_FILE_PATH_H_ | 50 #endif // WEBKIT_PLUGINS_PPAPI_FILE_PATH_H_ |
OLD | NEW |