| OLD | NEW |
| 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/browser/file_descriptor_info.h" |
| 14 #include "content/public/common/socket_permission_request.h" |
| 14 #include "content/public/common/content_client.h" | 15 #include "content/public/common/content_client.h" |
| 15 #include "content/public/common/window_container_type.h" | 16 #include "content/public/common/window_container_type.h" |
| 16 #include "net/cookies/canonical_cookie.h" | 17 #include "net/cookies/canonical_cookie.h" |
| 17 #include "third_party/WebKit/Source/WebKit/chromium/public/WebNotificationPresen
ter.h" | 18 #include "third_party/WebKit/Source/WebKit/chromium/public/WebNotificationPresen
ter.h" |
| 18 | 19 |
| 19 #if defined(OS_POSIX) && !defined(OS_MACOSX) | 20 #if defined(OS_POSIX) && !defined(OS_MACOSX) |
| 20 #include "base/global_descriptors_posix.h" | 21 #include "base/global_descriptors_posix.h" |
| 21 #endif | 22 #endif |
| 22 | 23 |
| 23 | 24 |
| (...skipping 410 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 434 // Returns the default filename used in downloads when we have no idea what | 435 // Returns the default filename used in downloads when we have no idea what |
| 435 // else we should do with the file. | 436 // else we should do with the file. |
| 436 virtual std::string GetDefaultDownloadName(); | 437 virtual std::string GetDefaultDownloadName(); |
| 437 | 438 |
| 438 // Notifification that a pepper plugin has just been spawned. This allows the | 439 // Notifification that a pepper plugin has just been spawned. This allows the |
| 439 // embedder to add filters onto the host to implement interfaces. | 440 // embedder to add filters onto the host to implement interfaces. |
| 440 // This is called on the IO thread. | 441 // This is called on the IO thread. |
| 441 virtual void DidCreatePpapiPlugin(BrowserPpapiHost* browser_host) {} | 442 virtual void DidCreatePpapiPlugin(BrowserPpapiHost* browser_host) {} |
| 442 | 443 |
| 443 // Returns true if renderer processes can use Pepper TCP/UDP sockets from | 444 // Returns true if renderer processes can use Pepper TCP/UDP sockets from |
| 444 // the given origin. | 445 // the given origin and connection type. |
| 445 virtual bool AllowPepperSocketAPI(BrowserContext* browser_context, | 446 virtual bool AllowPepperSocketAPI(BrowserContext* browser_context, |
| 446 const GURL& url); | 447 const GURL& url, |
| 448 const SocketPermissionRequest& params); |
| 447 | 449 |
| 448 // Returns true if renderer processes can use private Pepper File APIs. | 450 // Returns true if renderer processes can use private Pepper File APIs. |
| 449 virtual bool AllowPepperPrivateFileAPI(); | 451 virtual bool AllowPepperPrivateFileAPI(); |
| 450 | 452 |
| 451 // Returns the directory containing hyphenation dictionaries. | 453 // Returns the directory containing hyphenation dictionaries. |
| 452 virtual FilePath GetHyphenDictionaryDirectory(); | 454 virtual FilePath GetHyphenDictionaryDirectory(); |
| 453 | 455 |
| 454 #if defined(OS_POSIX) && !defined(OS_MACOSX) | 456 #if defined(OS_POSIX) && !defined(OS_MACOSX) |
| 455 // Populates |mappings| with all files that need to be mapped before launching | 457 // Populates |mappings| with all files that need to be mapped before launching |
| 456 // a child process. | 458 // a child process. |
| (...skipping 13 matching lines...) Expand all Loading... |
| 470 // This is called on a worker thread. | 472 // This is called on a worker thread. |
| 471 virtual | 473 virtual |
| 472 crypto::CryptoModuleBlockingPasswordDelegate* GetCryptoPasswordDelegate( | 474 crypto::CryptoModuleBlockingPasswordDelegate* GetCryptoPasswordDelegate( |
| 473 const GURL& url); | 475 const GURL& url); |
| 474 #endif | 476 #endif |
| 475 }; | 477 }; |
| 476 | 478 |
| 477 } // namespace content | 479 } // namespace content |
| 478 | 480 |
| 479 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ | 481 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ |
| OLD | NEW |