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 7577bb5328a4fb18d47c1aff3c87781b363572db..23ce89cc1ce9d2c8a714c3b30660f55defaf977f 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/certificate_request_result_type.h" |
#include "content/public/browser/file_descriptor_info.h" |
#include "content/public/common/content_client.h" |
@@ -35,7 +36,9 @@ struct WebPreferences; |
namespace base { |
class FilePath; |
+class SharedMemory; |
} |
+ |
namespace crypto { |
class CryptoModuleBlockingPasswordDelegate; |
} |
@@ -555,6 +558,20 @@ class CONTENT_EXPORT ContentBrowserClient { |
crypto::CryptoModuleBlockingPasswordDelegate* GetCryptoPasswordDelegate( |
const GURL& url); |
#endif |
+ |
+#if defined(ENABLE_WEBRTC) |
+ // 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 simultaneous logs is reached already. |
+ virtual bool IsWebRtcLoggingAllowed(); |
+ |
+ // Tells the embedder to upload a WebRTC log file. |
+ virtual void UploadWebRtcLog(content::BrowserContext* browser_context, |
+ scoped_ptr<base::SharedMemory> shared_memory, |
+ uint32 length, |
+ const std::string& app_session_id, |
+ const std::string& app_url) {} |
+#endif |
}; |
} // namespace content |