| 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 system pathes where devtools was granted access. |
| 46 virtual void RequestFileSystemPermissions() = 0; |
| 47 |
| 48 // Shows select folder dialog and grants devtools file system access |
| 49 // permissions to selected folder. |
| 50 virtual void SelectFolderAndGrantFileSystemPermission() = 0; |
| 51 |
| 52 // Revokes devtools file system access permissions by given |
| 53 // |file_system_path|. |
| 54 virtual void RevokeFileSystemPermission( |
| 55 const std::string& file_system_path) = 0; |
| 56 |
| 45 // This method is called when the contents inspected by this devtools frontend | 57 // This method is called when the contents inspected by this devtools frontend |
| 46 // is closing. | 58 // is closing. |
| 47 virtual void InspectedContentsClosing() = 0; | 59 virtual void InspectedContentsClosing() = 0; |
| 48 }; | 60 }; |
| 49 | 61 |
| 50 } // namespace content | 62 } // namespace content |
| 51 | 63 |
| 52 #endif // CONTENT_PUBLIC_BROWSER_DEVTOOLS_FRONTEND_HOST_DELEGATE_H_ | 64 #endif // CONTENT_PUBLIC_BROWSER_DEVTOOLS_FRONTEND_HOST_DELEGATE_H_ |
| OLD | NEW |