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

Unified Diff: Source/modules/filesystem/InspectorFrontendHostFileSystem.cpp

Issue 171333003: Pass implementation object to supplemental classes by reference (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase Created 6 years, 10 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 side-by-side diff with in-line comments
Download patch
Index: Source/modules/filesystem/InspectorFrontendHostFileSystem.cpp
diff --git a/Source/modules/filesystem/InspectorFrontendHostFileSystem.cpp b/Source/modules/filesystem/InspectorFrontendHostFileSystem.cpp
index 035d7923dfbe724cd61b71ff37245ba7656f9d4c..a609a7f201ee9ea8e299eee31184791a8ea77ec1 100644
--- a/Source/modules/filesystem/InspectorFrontendHostFileSystem.cpp
+++ b/Source/modules/filesystem/InspectorFrontendHostFileSystem.cpp
@@ -14,13 +14,13 @@
namespace WebCore {
-PassRefPtr<DOMFileSystem> InspectorFrontendHostFileSystem::isolatedFileSystem(InspectorFrontendHost* host, const String& fileSystemName, const String& rootURL)
+PassRefPtr<DOMFileSystem> InspectorFrontendHostFileSystem::isolatedFileSystem(InspectorFrontendHost& host, const String& fileSystemName, const String& rootURL)
{
- ExecutionContext* context = host->frontendPage()->mainFrame()->document();
+ ExecutionContext* context = host.frontendPage()->mainFrame()->document();
return DOMFileSystem::create(context, fileSystemName, FileSystemTypeIsolated, KURL(ParsedURLString, rootURL));
}
-void InspectorFrontendHostFileSystem::upgradeDraggedFileSystemPermissions(InspectorFrontendHost* host, DOMFileSystem* domFileSystem)
+void InspectorFrontendHostFileSystem::upgradeDraggedFileSystemPermissions(InspectorFrontendHost& host, DOMFileSystem* domFileSystem)
{
RefPtr<JSONObject> message = JSONObject::create();
message->setNumber("id", 0);
@@ -28,7 +28,7 @@ void InspectorFrontendHostFileSystem::upgradeDraggedFileSystemPermissions(Inspec
RefPtr<JSONArray> params = JSONArray::create();
message->setArray("params", params);
params->pushString(domFileSystem->rootURL().string());
- host->sendMessageToEmbedder(message->toJSONString());
+ host.sendMessageToEmbedder(message->toJSONString());
}
InspectorFrontendHostFileSystem::InspectorFrontendHostFileSystem() { }

Powered by Google App Engine
This is Rietveld 408576698