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 506 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
517 virtual void ClearCookies(RenderViewHost* rvh) {} | 517 virtual void ClearCookies(RenderViewHost* rvh) {} |
518 | 518 |
519 // Returns the default download directory. | 519 // Returns the default download directory. |
520 // This can be called on any thread. | 520 // This can be called on any thread. |
521 virtual base::FilePath GetDefaultDownloadDirectory(); | 521 virtual base::FilePath GetDefaultDownloadDirectory(); |
522 | 522 |
523 // Returns the default filename used in downloads when we have no idea what | 523 // Returns the default filename used in downloads when we have no idea what |
524 // else we should do with the file. | 524 // else we should do with the file. |
525 virtual std::string GetDefaultDownloadName(); | 525 virtual std::string GetDefaultDownloadName(); |
526 | 526 |
527 // Returns a random salt string that is used for creating MediaSourceIDs. | |
528 // The salt should be stored in the current user profile and should be reset | |
529 // if cookies are cleared. This is called on the IO thread. | |
530 virtual std::string GetMediaDeviceIDSalt(ResourceContext* rc); | |
jam
2013/11/04 15:38:53
since this method is invoked per ResourceContext,
perkj_chrome
2013/11/04 19:05:38
ok- done.
| |
531 | |
527 // Notification that a pepper plugin has just been spawned. This allows the | 532 // Notification that a pepper plugin has just been spawned. This allows the |
528 // embedder to add filters onto the host to implement interfaces. | 533 // embedder to add filters onto the host to implement interfaces. |
529 // This is called on the IO thread. | 534 // This is called on the IO thread. |
530 virtual void DidCreatePpapiPlugin(BrowserPpapiHost* browser_host) {} | 535 virtual void DidCreatePpapiPlugin(BrowserPpapiHost* browser_host) {} |
531 | 536 |
532 // Gets the host for an external out-of-process plugin. | 537 // Gets the host for an external out-of-process plugin. |
533 virtual content::BrowserPpapiHost* GetExternalBrowserPpapiHost( | 538 virtual content::BrowserPpapiHost* GetExternalBrowserPpapiHost( |
534 int plugin_child_id); | 539 int plugin_child_id); |
535 | 540 |
536 // Returns true if the given browser_context and site_url support hosting | 541 // Returns true if the given browser_context and site_url support hosting |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
602 // Returns true if plugin referred to by the url can use | 607 // Returns true if plugin referred to by the url can use |
603 // pp::FileIO::RequestOSFileHandle. | 608 // pp::FileIO::RequestOSFileHandle. |
604 virtual bool IsPluginAllowedToCallRequestOSFileHandle( | 609 virtual bool IsPluginAllowedToCallRequestOSFileHandle( |
605 content::BrowserContext* browser_context, | 610 content::BrowserContext* browser_context, |
606 const GURL& url); | 611 const GURL& url); |
607 }; | 612 }; |
608 | 613 |
609 } // namespace content | 614 } // namespace content |
610 | 615 |
611 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ | 616 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ |
OLD | NEW |