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

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

Issue 10949027: Close leaking FDs. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressed last comments and synced. Created 8 years, 2 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 <string> 8 #include <string>
9 #include <utility> 9 #include <utility>
10 #include <vector> 10 #include <vector>
11 11
12 #include "base/callback_forward.h" 12 #include "base/callback_forward.h"
13 #include "content/public/browser/file_descriptor_info.h"
13 #include "content/public/common/content_client.h" 14 #include "content/public/common/content_client.h"
14 #include "content/public/common/window_container_type.h" 15 #include "content/public/common/window_container_type.h"
15 #include "net/cookies/canonical_cookie.h" 16 #include "net/cookies/canonical_cookie.h"
16 #include "third_party/WebKit/Source/WebKit/chromium/public/WebNotificationPresen ter.h" 17 #include "third_party/WebKit/Source/WebKit/chromium/public/WebNotificationPresen ter.h"
17 18
18 #if defined(OS_POSIX) && !defined(OS_MACOSX) 19 #if defined(OS_POSIX) && !defined(OS_MACOSX)
19 #include "base/global_descriptors_posix.h" 20 #include "base/global_descriptors_posix.h"
20 #endif 21 #endif
21 22
22 23
(...skipping 423 matching lines...) Expand 10 before | Expand all | Expand 10 after
446 const GURL& url); 447 const GURL& url);
447 448
448 // Returns true if renderer processes can use private Pepper File APIs. 449 // Returns true if renderer processes can use private Pepper File APIs.
449 virtual bool AllowPepperPrivateFileAPI(); 450 virtual bool AllowPepperPrivateFileAPI();
450 451
451 #if defined(OS_POSIX) && !defined(OS_MACOSX) 452 #if defined(OS_POSIX) && !defined(OS_MACOSX)
452 // Populates |mappings| with all files that need to be mapped before launching 453 // Populates |mappings| with all files that need to be mapped before launching
453 // a child process. 454 // a child process.
454 virtual void GetAdditionalMappedFilesForChildProcess( 455 virtual void GetAdditionalMappedFilesForChildProcess(
455 const CommandLine& command_line, 456 const CommandLine& command_line,
456 base::GlobalDescriptors::Mapping* mappings) {} 457 std::vector<FileDescriptorInfo>* mappings) {}
457 #endif 458 #endif
458 459
459 #if defined(OS_WIN) 460 #if defined(OS_WIN)
460 // Returns the name of the dll that contains cursors and other resources. 461 // Returns the name of the dll that contains cursors and other resources.
461 virtual const wchar_t* GetResourceDllName(); 462 virtual const wchar_t* GetResourceDllName();
462 #endif 463 #endif
463 464
464 #if defined(USE_NSS) 465 #if defined(USE_NSS)
465 // Return a delegate to authenticate and unlock |module|. 466 // Return a delegate to authenticate and unlock |module|.
466 // This is called on a worker thread. 467 // This is called on a worker thread.
467 virtual 468 virtual
468 crypto::CryptoModuleBlockingPasswordDelegate* GetCryptoPasswordDelegate( 469 crypto::CryptoModuleBlockingPasswordDelegate* GetCryptoPasswordDelegate(
469 const GURL& url); 470 const GURL& url);
470 #endif 471 #endif
471 }; 472 };
472 473
473 } // namespace content 474 } // namespace content
474 475
475 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ 476 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698