| 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 CONTENT_PUBLIC_BROWSER_DEVTOOLS_FRONTEND_HOST_DELEGATE_H_ | 5 #ifndef CONTENT_PUBLIC_BROWSER_DEVTOOLS_FRONTEND_HOST_DELEGATE_H_ |
| 6 #define CONTENT_PUBLIC_BROWSER_DEVTOOLS_FRONTEND_HOST_DELEGATE_H_ | 6 #define CONTENT_PUBLIC_BROWSER_DEVTOOLS_FRONTEND_HOST_DELEGATE_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 namespace content { | 10 namespace content { |
| (...skipping 24 matching lines...) Expand all Loading... |
| 35 // Save As dialog. | 35 // Save As dialog. |
| 36 virtual void SaveToFile(const std::string& url, | 36 virtual void SaveToFile(const std::string& url, |
| 37 const std::string& content, | 37 const std::string& content, |
| 38 bool save_as) = 0; | 38 bool save_as) = 0; |
| 39 | 39 |
| 40 // Appends given |content| to the file that has been associated with the | 40 // Appends given |content| to the file that has been associated with the |
| 41 // given |url| by SaveToFile method. | 41 // given |url| by SaveToFile method. |
| 42 virtual void AppendToFile(const std::string& url, | 42 virtual void AppendToFile(const std::string& url, |
| 43 const std::string& content) = 0; | 43 const std::string& content) = 0; |
| 44 | 44 |
| 45 // Requests the list of file systems added for devtools previously. |
| 46 virtual void RequestFileSystems() = 0; |
| 47 |
| 48 // Shows a dialog to select a folder to add an isolated file system for. |
| 49 virtual void AddFileSystem() = 0; |
| 50 |
| 51 // Removes previously added devtools file system by given |file_system_path|. |
| 52 virtual void RemoveFileSystem(const std::string& file_system_path) = 0; |
| 53 |
| 45 // This method is called when the contents inspected by this devtools frontend | 54 // This method is called when the contents inspected by this devtools frontend |
| 46 // is closing. | 55 // is closing. |
| 47 virtual void InspectedContentsClosing() = 0; | 56 virtual void InspectedContentsClosing() = 0; |
| 48 }; | 57 }; |
| 49 | 58 |
| 50 } // namespace content | 59 } // namespace content |
| 51 | 60 |
| 52 #endif // CONTENT_PUBLIC_BROWSER_DEVTOOLS_FRONTEND_HOST_DELEGATE_H_ | 61 #endif // CONTENT_PUBLIC_BROWSER_DEVTOOLS_FRONTEND_HOST_DELEGATE_H_ |
| OLD | NEW |