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

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

Issue 195923002: Add mechanism to auto mount file systems in response to a URL request. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 9 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 | Annotate | Revision Log
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>
11 #include <vector> 11 #include <vector>
12 12
13 #include "base/callback_forward.h" 13 #include "base/callback_forward.h"
14 #include "base/memory/linked_ptr.h" 14 #include "base/memory/linked_ptr.h"
15 #include "base/memory/scoped_ptr.h" 15 #include "base/memory/scoped_ptr.h"
16 #include "base/memory/scoped_vector.h" 16 #include "base/memory/scoped_vector.h"
17 #include "base/values.h" 17 #include "base/values.h"
18 #include "content/public/browser/certificate_request_result_type.h" 18 #include "content/public/browser/certificate_request_result_type.h"
19 #include "content/public/browser/file_descriptor_info.h" 19 #include "content/public/browser/file_descriptor_info.h"
20 #include "content/public/common/content_client.h" 20 #include "content/public/common/content_client.h"
21 #include "content/public/common/socket_permission_request.h" 21 #include "content/public/common/socket_permission_request.h"
22 #include "content/public/common/window_container_type.h" 22 #include "content/public/common/window_container_type.h"
23 #include "net/base/mime_util.h" 23 #include "net/base/mime_util.h"
24 #include "net/cookies/canonical_cookie.h" 24 #include "net/cookies/canonical_cookie.h"
25 #include "net/url_request/url_request_job_factory.h" 25 #include "net/url_request/url_request_job_factory.h"
26 #include "third_party/WebKit/public/web/WebNotificationPresenter.h" 26 #include "third_party/WebKit/public/web/WebNotificationPresenter.h"
27 #include "ui/base/window_open_disposition.h" 27 #include "ui/base/window_open_disposition.h"
28 #include "webkit/browser/fileapi/file_system_context.h"
28 #include "webkit/common/resource_type.h" 29 #include "webkit/common/resource_type.h"
29 30
30 #if defined(OS_POSIX) && !defined(OS_MACOSX) 31 #if defined(OS_POSIX) && !defined(OS_MACOSX)
31 #include "base/posix/global_descriptors.h" 32 #include "base/posix/global_descriptors.h"
32 #endif 33 #endif
33 34
34 class CommandLine; 35 class CommandLine;
35 class GURL; 36 class GURL;
36 struct WebPreferences; 37 struct WebPreferences;
37 38
(...skipping 529 matching lines...) Expand 10 before | Expand all | Expand 10 after
567 568
568 // Returns an implementation of a file selecition policy. Can return NULL. 569 // Returns an implementation of a file selecition policy. Can return NULL.
569 virtual ui::SelectFilePolicy* CreateSelectFilePolicy( 570 virtual ui::SelectFilePolicy* CreateSelectFilePolicy(
570 WebContents* web_contents); 571 WebContents* web_contents);
571 572
572 // Returns additional allowed scheme set which can access files in 573 // Returns additional allowed scheme set which can access files in
573 // FileSystem API. 574 // FileSystem API.
574 virtual void GetAdditionalAllowedSchemesForFileSystem( 575 virtual void GetAdditionalAllowedSchemesForFileSystem(
575 std::vector<std::string>* additional_schemes) {} 576 std::vector<std::string>* additional_schemes) {}
576 577
578 // Returns auto mount handlers for URL requests for FileSystem APIs.
579 virtual void GetURLRequestAutoMountHandlers(
580 std::vector<fileapi::URLRequestAutoMountHandler>* handlers) {}
581
577 // Returns additional file system backends for FileSystem API. 582 // Returns additional file system backends for FileSystem API.
578 // |browser_context| is needed in the additional FileSystemBackends. 583 // |browser_context| is needed in the additional FileSystemBackends.
579 // It has mount points to create objects returned by additional 584 // It has mount points to create objects returned by additional
580 // FileSystemBackends, and SpecialStoragePolicy for permission granting. 585 // FileSystemBackends, and SpecialStoragePolicy for permission granting.
581 virtual void GetAdditionalFileSystemBackends( 586 virtual void GetAdditionalFileSystemBackends(
582 BrowserContext* browser_context, 587 BrowserContext* browser_context,
583 const base::FilePath& storage_partition_path, 588 const base::FilePath& storage_partition_path,
584 ScopedVector<fileapi::FileSystemBackend>* additional_backends) {} 589 ScopedVector<fileapi::FileSystemBackend>* additional_backends) {}
585 590
586 // Allows an embedder to return its own LocationProvider implementation. 591 // Allows an embedder to return its own LocationProvider implementation.
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
623 content::BrowserContext* browser_context, 628 content::BrowserContext* browser_context,
624 const GURL& url); 629 const GURL& url);
625 630
626 // Returns true if dev channel APIs are available for plugins. 631 // Returns true if dev channel APIs are available for plugins.
627 virtual bool IsPluginAllowedToUseDevChannelAPIs(); 632 virtual bool IsPluginAllowedToUseDevChannelAPIs();
628 }; 633 };
629 634
630 } // namespace content 635 } // namespace content
631 636
632 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ 637 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698