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

Side by Side Diff: third_party/WebKit/Source/modules/filesystem/DevToolsHostFileSystem.cpp

Issue 1541013002: Remove config.h inclusion from third_party/WebKit/Source/modules/[a-i]*/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "config.h"
6 #include "modules/filesystem/DevToolsHostFileSystem.h" 5 #include "modules/filesystem/DevToolsHostFileSystem.h"
7 6
8 #include "core/dom/Document.h" 7 #include "core/dom/Document.h"
9 #include "core/frame/LocalFrame.h" 8 #include "core/frame/LocalFrame.h"
10 #include "core/inspector/DevToolsHost.h" 9 #include "core/inspector/DevToolsHost.h"
11 #include "core/page/Page.h" 10 #include "core/page/Page.h"
12 #include "modules/filesystem/DOMFileSystem.h" 11 #include "modules/filesystem/DOMFileSystem.h"
13 #include "platform/JSONValues.h" 12 #include "platform/JSONValues.h"
14 13
15 namespace blink { 14 namespace blink {
16 15
17 DOMFileSystem* DevToolsHostFileSystem::isolatedFileSystem(DevToolsHost& host, co nst String& fileSystemName, const String& rootURL) 16 DOMFileSystem* DevToolsHostFileSystem::isolatedFileSystem(DevToolsHost& host, co nst String& fileSystemName, const String& rootURL)
18 { 17 {
19 ExecutionContext* context = host.frontendFrame()->document(); 18 ExecutionContext* context = host.frontendFrame()->document();
20 return DOMFileSystem::create(context, fileSystemName, FileSystemTypeIsolated , KURL(ParsedURLString, rootURL)); 19 return DOMFileSystem::create(context, fileSystemName, FileSystemTypeIsolated , KURL(ParsedURLString, rootURL));
21 } 20 }
22 21
23 void DevToolsHostFileSystem::upgradeDraggedFileSystemPermissions(DevToolsHost& h ost, DOMFileSystem* domFileSystem) 22 void DevToolsHostFileSystem::upgradeDraggedFileSystemPermissions(DevToolsHost& h ost, DOMFileSystem* domFileSystem)
24 { 23 {
25 RefPtr<JSONObject> message = JSONObject::create(); 24 RefPtr<JSONObject> message = JSONObject::create();
26 message->setNumber("id", 0); 25 message->setNumber("id", 0);
27 message->setString("method", "upgradeDraggedFileSystemPermissions"); 26 message->setString("method", "upgradeDraggedFileSystemPermissions");
28 RefPtr<JSONArray> params = JSONArray::create(); 27 RefPtr<JSONArray> params = JSONArray::create();
29 message->setArray("params", params); 28 message->setArray("params", params);
30 params->pushString(domFileSystem->rootURL().string()); 29 params->pushString(domFileSystem->rootURL().string());
31 host.sendMessageToEmbedder(message->toJSONString()); 30 host.sendMessageToEmbedder(message->toJSONString());
32 } 31 }
33 32
34 } // namespace blink 33 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698