OLD | NEW |
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 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
94 class ExternalVideoSurfaceContainer; | 94 class ExternalVideoSurfaceContainer; |
95 class LocationProvider; | 95 class LocationProvider; |
96 class MediaObserver; | 96 class MediaObserver; |
97 class QuotaPermissionContext; | 97 class QuotaPermissionContext; |
98 class RenderFrameHost; | 98 class RenderFrameHost; |
99 class RenderProcessHost; | 99 class RenderProcessHost; |
100 class RenderViewHost; | 100 class RenderViewHost; |
101 class ResourceContext; | 101 class ResourceContext; |
102 class SiteInstance; | 102 class SiteInstance; |
103 class SpeechRecognitionManagerDelegate; | 103 class SpeechRecognitionManagerDelegate; |
104 class VibrationProvider; | |
105 class WebContents; | 104 class WebContents; |
106 class WebContentsViewDelegate; | 105 class WebContentsViewDelegate; |
107 struct MainFunctionParams; | 106 struct MainFunctionParams; |
108 struct Referrer; | 107 struct Referrer; |
109 struct ShowDesktopNotificationHostMsgParams; | 108 struct ShowDesktopNotificationHostMsgParams; |
110 struct WebPreferences; | 109 struct WebPreferences; |
111 | 110 |
112 // A mapping from the scheme name to the protocol handler that services its | 111 // A mapping from the scheme name to the protocol handler that services its |
113 // content. | 112 // content. |
114 typedef std::map< | 113 typedef std::map< |
(...skipping 462 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
577 const base::FilePath& storage_partition_path, | 576 const base::FilePath& storage_partition_path, |
578 ScopedVector<storage::FileSystemBackend>* additional_backends) {} | 577 ScopedVector<storage::FileSystemBackend>* additional_backends) {} |
579 | 578 |
580 // Allows an embedder to return its own LocationProvider implementation. | 579 // Allows an embedder to return its own LocationProvider implementation. |
581 // Return NULL to use the default one for the platform to be created. | 580 // Return NULL to use the default one for the platform to be created. |
582 // FYI: Used by an external project; please don't remove. | 581 // FYI: Used by an external project; please don't remove. |
583 // Contact Viatcheslav Ostapenko at sl.ostapenko@samsung.com for more | 582 // Contact Viatcheslav Ostapenko at sl.ostapenko@samsung.com for more |
584 // information. | 583 // information. |
585 virtual LocationProvider* OverrideSystemLocationProvider(); | 584 virtual LocationProvider* OverrideSystemLocationProvider(); |
586 | 585 |
587 // Allows an embedder to return its own VibrationProvider implementation. | |
588 // Return NULL to use the default one for the platform to be created. | |
589 // FYI: Used by an external project; please don't remove. | |
590 // Contact Viatcheslav Ostapenko at sl.ostapenko@samsung.com for more | |
591 // information. | |
592 virtual VibrationProvider* OverrideVibrationProvider(); | |
593 | |
594 // Creates a new DevToolsManagerDelegate. The caller owns the returned value. | 586 // Creates a new DevToolsManagerDelegate. The caller owns the returned value. |
595 // It's valid to return NULL. | 587 // It's valid to return NULL. |
596 virtual DevToolsManagerDelegate* GetDevToolsManagerDelegate(); | 588 virtual DevToolsManagerDelegate* GetDevToolsManagerDelegate(); |
597 | 589 |
598 // Returns true if plugin referred to by the url can use | 590 // Returns true if plugin referred to by the url can use |
599 // pp::FileIO::RequestOSFileHandle. | 591 // pp::FileIO::RequestOSFileHandle. |
600 virtual bool IsPluginAllowedToCallRequestOSFileHandle( | 592 virtual bool IsPluginAllowedToCallRequestOSFileHandle( |
601 BrowserContext* browser_context, | 593 BrowserContext* browser_context, |
602 const GURL& url); | 594 const GURL& url); |
603 | 595 |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
643 // camera. Note that this does not query the user. |type| must be | 635 // camera. Note that this does not query the user. |type| must be |
644 // MEDIA_DEVICE_AUDIO_CAPTURE or MEDIA_DEVICE_VIDEO_CAPTURE. | 636 // MEDIA_DEVICE_AUDIO_CAPTURE or MEDIA_DEVICE_VIDEO_CAPTURE. |
645 virtual bool CheckMediaAccessPermission(BrowserContext* browser_context, | 637 virtual bool CheckMediaAccessPermission(BrowserContext* browser_context, |
646 const GURL& security_origin, | 638 const GURL& security_origin, |
647 MediaStreamType type); | 639 MediaStreamType type); |
648 }; | 640 }; |
649 | 641 |
650 } // namespace content | 642 } // namespace content |
651 | 643 |
652 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ | 644 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ |
OLD | NEW |