OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_CHROMEOS_EXTENSIONS_FILE_MANAGER_UTIL_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_UTIL_H_ |
6 #define CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_UTIL_H_ | 6 #define CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_UTIL_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 // Opens file in the browser. | 59 // Opens file in the browser. |
60 // TODO(kaznacheev): remove the obsolete enqueue parameter. | 60 // TODO(kaznacheev): remove the obsolete enqueue parameter. |
61 void ViewFile(const FilePath& full_path, bool enqueue); | 61 void ViewFile(const FilePath& full_path, bool enqueue); |
62 | 62 |
63 // Tries to open |file| directly in the browser. Returns false if the browser | 63 // Tries to open |file| directly in the browser. Returns false if the browser |
64 // can't directly handle this type of file. | 64 // can't directly handle this type of file. |
65 bool TryViewingFile(const FilePath& file); | 65 bool TryViewingFile(const FilePath& file); |
66 | 66 |
67 void InstallCRX(Profile* profile, const FilePath& full_path); | 67 void InstallCRX(Profile* profile, const FilePath& full_path); |
68 | 68 |
69 bool ShouldBeOpenedWithPdfPlugin(const char* file_extension); | |
70 | |
71 } // namespace file_manager_util | 69 } // namespace file_manager_util |
72 | 70 |
73 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_UTIL_H_ | 71 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_UTIL_H_ |
OLD | NEW |