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

Side by Side Diff: content/public/browser/content_browser_client.h

Issue 338353007: Implementation of shared worker code path for WebView file system permission. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master_sharedworker
Patch Set: Initial patch Created 6 years, 6 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 (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 CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_
6 #define CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ 6 #define CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include <utility> 10 #include <utility>
(...skipping 327 matching lines...) Expand 10 before | Expand all | Expand 10 after
338 const GURL& url, 338 const GURL& url,
339 const base::string16& name, 339 const base::string16& name,
340 const base::string16& display_name, 340 const base::string16& display_name,
341 unsigned long estimated_size, 341 unsigned long estimated_size,
342 ResourceContext* context, 342 ResourceContext* context,
343 const std::vector<std::pair<int, int> >& render_frames); 343 const std::vector<std::pair<int, int> >& render_frames);
344 344
345 // Allow the embedder to control if access to file system by a shared worker 345 // Allow the embedder to control if access to file system by a shared worker
346 // is allowed. 346 // is allowed.
347 // This is called on the IO thread. 347 // This is called on the IO thread.
348 virtual bool AllowWorkerFileSystem( 348 virtual void RequestWorkerFileSystemAccessSync(
jam 2014/06/19 16:47:27 I'm confused, this has a Sync suffix but takes a c
Fady Samuel 2014/06/19 16:50:11 This is for the sync filesystem API. For webview's
Xi Han 2014/06/19 17:22:27 The name comes from the webview guest, whether the
349 const GURL& url, 349 const GURL& url,
350 ResourceContext* context, 350 ResourceContext* context,
351 const std::vector<std::pair<int, int> >& render_frames); 351 const std::vector<std::pair<int, int> >& render_frames,
352 base::Callback<void(bool)> callback);
352 353
353 // Allow the embedder to control if access to IndexedDB by a shared worker 354 // Allow the embedder to control if access to IndexedDB by a shared worker
354 // is allowed. 355 // is allowed.
355 // This is called on the IO thread. 356 // This is called on the IO thread.
356 virtual bool AllowWorkerIndexedDB( 357 virtual bool AllowWorkerIndexedDB(
357 const GURL& url, 358 const GURL& url,
358 const base::string16& name, 359 const base::string16& name,
359 ResourceContext* context, 360 ResourceContext* context,
360 const std::vector<std::pair<int, int> >& render_frames); 361 const std::vector<std::pair<int, int> >& render_frames);
361 362
(...skipping 311 matching lines...) Expand 10 before | Expand all | Expand 10 after
673 // Allows an embedder to provide its own ExternalVideoSurfaceContainer 674 // Allows an embedder to provide its own ExternalVideoSurfaceContainer
674 // implementation. Return NULL to disable external surface video. 675 // implementation. Return NULL to disable external surface video.
675 virtual ExternalVideoSurfaceContainer* 676 virtual ExternalVideoSurfaceContainer*
676 OverrideCreateExternalVideoSurfaceContainer(WebContents* web_contents); 677 OverrideCreateExternalVideoSurfaceContainer(WebContents* web_contents);
677 #endif 678 #endif
678 }; 679 };
679 680
680 } // namespace content 681 } // namespace content
681 682
682 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ 683 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698