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

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

Powered by Google App Engine
This is Rietveld 408576698