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

Side by Side Diff: Source/core/platform/chromium/support/WebFileSystemCallbacks.cpp

Issue 23537011: FileAPI: Add WebFileSystem::resolveURL (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: rebase Created 7 years, 3 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 /* 1 /*
2 * Copyright (C) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 m_private.reset(); 121 m_private.reset();
122 } 122 }
123 123
124 void WebFileSystemCallbacks::didOpenFileSystem(const WebString& name, const WebU RL& rootURL) 124 void WebFileSystemCallbacks::didOpenFileSystem(const WebString& name, const WebU RL& rootURL)
125 { 125 {
126 ASSERT(!m_private.isNull()); 126 ASSERT(!m_private.isNull());
127 m_private->callbacks()->didOpenFileSystem(name, rootURL); 127 m_private->callbacks()->didOpenFileSystem(name, rootURL);
128 m_private.reset(); 128 m_private.reset();
129 } 129 }
130 130
131 void WebFileSystemCallbacks::didResolveURL(const WebString& name, const WebURL& rootURL, WebFileSystemType type, const WebString& filePath, bool isDirectory)
132 {
133 ASSERT(!m_private.isNull());
134 m_private->callbacks()->didResolveURL(name, rootURL, static_cast<WebCore::Fi leSystemType>(type), filePath, isDirectory);
135 m_private.reset();
136 }
137
131 void WebFileSystemCallbacks::didCreateFileWriter(WebFileWriter* webFileWriter, l ong long length) 138 void WebFileSystemCallbacks::didCreateFileWriter(WebFileWriter* webFileWriter, l ong long length)
132 { 139 {
133 ASSERT(!m_private.isNull()); 140 ASSERT(!m_private.isNull());
134 m_private->callbacks()->didCreateFileWriter(adoptPtr(webFileWriter), length) ; 141 m_private->callbacks()->didCreateFileWriter(adoptPtr(webFileWriter), length) ;
135 m_private.reset(); 142 m_private.reset();
136 } 143 }
137 144
138 void WebFileSystemCallbacks::didFail(WebFileError error) 145 void WebFileSystemCallbacks::didFail(WebFileError error)
139 { 146 {
140 ASSERT(!m_private.isNull()); 147 ASSERT(!m_private.isNull());
141 m_private->callbacks()->didFail(error); 148 m_private->callbacks()->didFail(error);
142 m_private.reset(); 149 m_private.reset();
143 } 150 }
144 151
145 bool WebFileSystemCallbacks::shouldBlockUntilCompletion() const 152 bool WebFileSystemCallbacks::shouldBlockUntilCompletion() const
146 { 153 {
147 ASSERT(!m_private.isNull()); 154 ASSERT(!m_private.isNull());
148 return m_private->callbacks()->shouldBlockUntilCompletion(); 155 return m_private->callbacks()->shouldBlockUntilCompletion();
149 } 156 }
150 157
151 } // namespace WebKit 158 } // namespace WebKit
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698