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

Side by Side Diff: content/renderer/devtools/devtools_client.cc

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 #include "content/renderer/devtools/devtools_client.h" 5 #include "content/renderer/devtools/devtools_client.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/message_loop.h" 8 #include "base/message_loop.h"
9 #include "base/utf_string_conversions.h" 9 #include "base/utf_string_conversions.h"
10 #include "content/common/devtools_messages.h" 10 #include "content/common/devtools_messages.h"
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 save_as)); 82 save_as));
83 } 83 }
84 84
85 void DevToolsClient::append(const WebKit::WebString& url, 85 void DevToolsClient::append(const WebKit::WebString& url,
86 const WebKit::WebString& content) { 86 const WebKit::WebString& content) {
87 Send(new DevToolsHostMsg_Append(routing_id(), 87 Send(new DevToolsHostMsg_Append(routing_id(),
88 url.utf8(), 88 url.utf8(),
89 content.utf8())); 89 content.utf8()));
90 } 90 }
91 91
92 void DevToolsClient::requestFileSystemPermissions() {
93 Send(new DevToolsHostMsg_RequestFileSystemPermissions(routing_id()));
94 }
95
96 void DevToolsClient::selectFolderAndGrantFileSystemPermission() {
97 Send(new DevToolsHostMsg_SelectFolderAndGrantFileSystemPermission(
98 routing_id()));
99 }
100
101 void DevToolsClient::revokeFileSystemPermission(
102 const WebString& fileSystemPath) {
103 Send(new DevToolsHostMsg_RevokeFileSystemPermission(routing_id(),
104 fileSystemPath.utf8()));
105 }
106
107
92 void DevToolsClient::OnDispatchOnInspectorFrontend(const std::string& message) { 108 void DevToolsClient::OnDispatchOnInspectorFrontend(const std::string& message) {
93 web_tools_frontend_->dispatchOnInspectorFrontend( 109 web_tools_frontend_->dispatchOnInspectorFrontend(
94 WebString::fromUTF8(message)); 110 WebString::fromUTF8(message));
95 } 111 }
96 112
97 } // namespace content 113 } // namespace content
OLDNEW
« content/common/devtools_messages.h ('K') | « content/renderer/devtools/devtools_client.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698