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

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

Issue 54863002: Implement a salt for MediaSource IDs that can be cleared by a user. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: removed lock include. Created 7 years, 1 month 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>
(...skipping 506 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 depend on the current user profile and should be reset if
Jói 2013/11/01 14:29:38 depend on -> "be stored in" or "be part of"
perkj_chrome 2013/11/01 15:49:06 Done.
529 // cookies are cleared. This is called on the IO thread.
530 virtual std::string GetMediaDeviceIDSalt(ResourceContext* rc);
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698