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

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: Fix CrOS 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 530 matching lines...) Expand 10 before | Expand all | Expand 10 after
568 569
569 // Returns an implementation of a file selecition policy. Can return NULL. 570 // Returns an implementation of a file selecition policy. Can return NULL.
570 virtual ui::SelectFilePolicy* CreateSelectFilePolicy( 571 virtual ui::SelectFilePolicy* CreateSelectFilePolicy(
571 WebContents* web_contents); 572 WebContents* web_contents);
572 573
573 // Returns additional allowed scheme set which can access files in 574 // Returns additional allowed scheme set which can access files in
574 // FileSystem API. 575 // FileSystem API.
575 virtual void GetAdditionalAllowedSchemesForFileSystem( 576 virtual void GetAdditionalAllowedSchemesForFileSystem(
576 std::vector<std::string>* additional_schemes) {} 577 std::vector<std::string>* additional_schemes) {}
577 578
579 // Returns auto mount handlers for URL requests for FileSystem APIs.
580 virtual void GetURLRequestAutoMountHandlers(
581 std::vector<fileapi::URLRequestAutoMountHandler>* handlers) {}
582
578 // Returns additional file system backends for FileSystem API. 583 // Returns additional file system backends for FileSystem API.
579 // |browser_context| is needed in the additional FileSystemBackends. 584 // |browser_context| is needed in the additional FileSystemBackends.
580 // It has mount points to create objects returned by additional 585 // It has mount points to create objects returned by additional
581 // FileSystemBackends, and SpecialStoragePolicy for permission granting. 586 // FileSystemBackends, and SpecialStoragePolicy for permission granting.
582 virtual void GetAdditionalFileSystemBackends( 587 virtual void GetAdditionalFileSystemBackends(
583 BrowserContext* browser_context, 588 BrowserContext* browser_context,
584 const base::FilePath& storage_partition_path, 589 const base::FilePath& storage_partition_path,
585 ScopedVector<fileapi::FileSystemBackend>* additional_backends) {} 590 ScopedVector<fileapi::FileSystemBackend>* additional_backends) {}
586 591
587 // Allows an embedder to return its own LocationProvider implementation. 592 // Allows an embedder to return its own LocationProvider implementation.
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
630 // Returns a special cookie store to use for a given render process, or NULL 635 // Returns a special cookie store to use for a given render process, or NULL
631 // if the default cookie store should be used 636 // if the default cookie store should be used
632 // This is called on the IO thread. 637 // This is called on the IO thread.
633 virtual net::CookieStore* OverrideCookieStoreForRenderProcess( 638 virtual net::CookieStore* OverrideCookieStoreForRenderProcess(
634 int render_process_id_); 639 int render_process_id_);
635 }; 640 };
636 641
637 } // namespace content 642 } // namespace content
638 643
639 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ 644 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_
OLDNEW
« no previous file with comments | « content/browser/storage_partition_impl_map.cc ('k') | content/public/test/test_file_system_backend.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698