Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(170)

Side by Side Diff: content/public/browser/devtools_frontend_host_delegate.h

Issue 11570081: Support file system access in DevTools with isolated file system. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 12 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698