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

Side by Side 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, added url and app session id, rebase 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 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>
11 #include <vector> 11 #include <vector>
12 12
13 #include "base/callback_forward.h" 13 #include "base/callback_forward.h"
14 #include "base/memory/linked_ptr.h" 14 #include "base/memory/linked_ptr.h"
15 #include "base/memory/scoped_ptr.h" 15 #include "base/memory/scoped_ptr.h"
16 #include "base/memory/scoped_vector.h" 16 #include "base/memory/scoped_vector.h"
17 #include "base/shared_memory.h"
17 #include "content/public/browser/certificate_request_result_type.h" 18 #include "content/public/browser/certificate_request_result_type.h"
18 #include "content/public/browser/file_descriptor_info.h" 19 #include "content/public/browser/file_descriptor_info.h"
19 #include "content/public/common/content_client.h" 20 #include "content/public/common/content_client.h"
20 #include "content/public/common/socket_permission_request.h" 21 #include "content/public/common/socket_permission_request.h"
21 #include "content/public/common/window_container_type.h" 22 #include "content/public/common/window_container_type.h"
22 #include "net/base/mime_util.h" 23 #include "net/base/mime_util.h"
23 #include "net/cookies/canonical_cookie.h" 24 #include "net/cookies/canonical_cookie.h"
24 #include "net/url_request/url_request_job_factory.h" 25 #include "net/url_request/url_request_job_factory.h"
25 #include "third_party/WebKit/Source/WebKit/chromium/public/WebNotificationPresen ter.h" 26 #include "third_party/WebKit/Source/WebKit/chromium/public/WebNotificationPresen ter.h"
26 #include "webkit/glue/resource_type.h" 27 #include "webkit/glue/resource_type.h"
27 28
28 #if defined(OS_POSIX) && !defined(OS_MACOSX) 29 #if defined(OS_POSIX) && !defined(OS_MACOSX)
29 #include "base/posix/global_descriptors.h" 30 #include "base/posix/global_descriptors.h"
30 #endif 31 #endif
31 32
32 class CommandLine; 33 class CommandLine;
33 class GURL; 34 class GURL;
34 struct WebPreferences; 35 struct WebPreferences;
35 36
36 namespace base { 37 namespace base {
37 class FilePath; 38 class FilePath;
39 class SharedMemory;
38 } 40 }
41
39 namespace crypto { 42 namespace crypto {
40 class CryptoModuleBlockingPasswordDelegate; 43 class CryptoModuleBlockingPasswordDelegate;
41 } 44 }
42 45
43 namespace gfx { 46 namespace gfx {
44 class ImageSkia; 47 class ImageSkia;
45 } 48 }
46 49
47 namespace net { 50 namespace net {
48 class CookieOptions; 51 class CookieOptions;
(...skipping 499 matching lines...) Expand 10 before | Expand all | Expand 10 after
548 bool* success) {} 551 bool* success) {}
549 #endif 552 #endif
550 553
551 #if defined(USE_NSS) 554 #if defined(USE_NSS)
552 // Return a delegate to authenticate and unlock |module|. 555 // Return a delegate to authenticate and unlock |module|.
553 // This is called on a worker thread. 556 // This is called on a worker thread.
554 virtual 557 virtual
555 crypto::CryptoModuleBlockingPasswordDelegate* GetCryptoPasswordDelegate( 558 crypto::CryptoModuleBlockingPasswordDelegate* GetCryptoPasswordDelegate(
556 const GURL& url); 559 const GURL& url);
557 #endif 560 #endif
561
562 #if defined(ENABLE_WEBRTC)
563 // Returns whether WebRTC logging is allowed or not. It can return false for
564 // example if not supported, if any initialization fails or if maximum number
565 // of simultaneous logs is reached already.
566 virtual bool IsWebRtcLoggingAllowed();
567
568 // Tells the embedder to upload a WebRTC log file.
569 virtual void UploadWebRtcLog(content::BrowserContext* browser_context,
570 scoped_ptr<base::SharedMemory> shared_memory,
571 uint32 length,
572 const std::string& app_session_id,
573 const std::string& app_url) {}
574 #endif
558 }; 575 };
559 576
560 } // namespace content 577 } // namespace content
561 578
562 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ 579 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698