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

Side by Side Diff: webkit/browser/fileapi/file_system_backend.h

Issue 527773003: Add GetURLForBrowserTab method to the external file system backend. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix comment. Created 6 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
« no previous file with comments | « chrome/browser/chromeos/fileapi/mtp_file_system_backend_delegate.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 WEBKIT_BROWSER_FILEAPI_FILE_SYSTEM_BACKEND_H_ 5 #ifndef WEBKIT_BROWSER_FILEAPI_FILE_SYSTEM_BACKEND_H_
6 #define WEBKIT_BROWSER_FILEAPI_FILE_SYSTEM_BACKEND_H_ 6 #define WEBKIT_BROWSER_FILEAPI_FILE_SYSTEM_BACKEND_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 virtual void GrantFileAccessToExtension( 150 virtual void GrantFileAccessToExtension(
151 const std::string& extension_id, 151 const std::string& extension_id,
152 const base::FilePath& virtual_path) = 0; 152 const base::FilePath& virtual_path) = 0;
153 // Revokes file access from extension identified with |extension_id|. 153 // Revokes file access from extension identified with |extension_id|.
154 virtual void RevokeAccessForExtension( 154 virtual void RevokeAccessForExtension(
155 const std::string& extension_id) = 0; 155 const std::string& extension_id) = 0;
156 // Gets virtual path by known filesystem path. Returns false when filesystem 156 // Gets virtual path by known filesystem path. Returns false when filesystem
157 // path is not exposed by this provider. 157 // path is not exposed by this provider.
158 virtual bool GetVirtualPath(const base::FilePath& file_system_path, 158 virtual bool GetVirtualPath(const base::FilePath& file_system_path,
159 base::FilePath* virtual_path) = 0; 159 base::FilePath* virtual_path) = 0;
160 // Gets an alternative URL for browser tab. e.g. Google Drive URL for hosted
mtomasz 2014/09/03 09:44:42 nit: "alternative" sounds strange. It means that e
hirono 2014/09/03 13:02:45 I chose "redirect" URL.
161 // documents. Returns empty URL if the entry does not have an alternatvie URL.
162 virtual void GetURLForBrowserTab(
163 const storage::FileSystemURL& url,
164 const base::Callback<void(const GURL& url)>& callback) = 0;
mtomasz 2014/09/03 09:44:42 nit: How about typedefing this callback like in #4
hirono 2014/09/03 13:02:45 Done.
160 }; 165 };
161 166
162 } // namespace storage 167 } // namespace storage
163 168
164 #endif // WEBKIT_BROWSER_FILEAPI_FILE_SYSTEM_BACKEND_H_ 169 #endif // WEBKIT_BROWSER_FILEAPI_FILE_SYSTEM_BACKEND_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/fileapi/mtp_file_system_backend_delegate.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698