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

Unified Diff: content/public/browser/content_browser_client.h

Issue 14329020: Implementing uploading of a WebRTC diagnostic log. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Code review. Created 7 years, 7 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 side-by-side diff with in-line comments
Download patch
Index: content/public/browser/content_browser_client.h
diff --git a/content/public/browser/content_browser_client.h b/content/public/browser/content_browser_client.h
index c7fe00095eb69e338bc575553d6f6db1e7fd65a2..fc8b377b20834a7c4215634da1939d7e8fc7aac3 100644
--- a/content/public/browser/content_browser_client.h
+++ b/content/public/browser/content_browser_client.h
@@ -14,6 +14,7 @@
#include "base/memory/linked_ptr.h"
#include "base/memory/scoped_ptr.h"
#include "base/memory/scoped_vector.h"
+#include "base/shared_memory.h"
#include "content/public/browser/file_descriptor_info.h"
#include "content/public/common/content_client.h"
#include "content/public/common/socket_permission_request.h"
@@ -34,7 +35,9 @@ struct WebPreferences;
namespace base {
class FilePath;
+class SharedMemory;
}
+
namespace crypto {
class CryptoModuleBlockingPasswordDelegate;
}
@@ -547,6 +550,15 @@ class CONTENT_EXPORT ContentBrowserClient {
crypto::CryptoModuleBlockingPasswordDelegate* GetCryptoPasswordDelegate(
const GURL& url);
#endif
+
+ // Returns whether WebRTC logging is allowed or not. It can return false for
+ // example if not supported, if any initialization fails or if maximum number
+ // of simultaneos logs is reached already.
vabr (Chromium) 2013/05/13 08:55:50 typo: simultaneos -> simultaneous
Henrik Grunell 2013/05/14 13:48:50 Done.
+ virtual bool IsWebRtcLoggingAllowed();
+
+ // Tells the embedder to upload a WebRTC log file.
+ virtual void UploadWebRtcLog(scoped_ptr<base::SharedMemory> shared_memory,
+ uint32 length) {}
};
} // namespace content

Powered by Google App Engine
This is Rietveld 408576698