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

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

Issue 10993078: Use extensions socket permission for TCP/UDP socket APIs in Pepper (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: remove duplication 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/browser/file_descriptor_info.h"
14 #include "content/public/browser/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 411 matching lines...) Expand 10 before | Expand all | Expand 10 after
435 // Returns the default filename used in downloads when we have no idea what 436 // Returns the default filename used in downloads when we have no idea what
436 // else we should do with the file. 437 // else we should do with the file.
437 virtual std::string GetDefaultDownloadName(); 438 virtual std::string GetDefaultDownloadName();
438 439
439 // Notifification that a pepper plugin has just been spawned. This allows the 440 // Notifification that a pepper plugin has just been spawned. This allows the
440 // embedder to add filters onto the host to implement interfaces. 441 // embedder to add filters onto the host to implement interfaces.
441 // This is called on the IO thread. 442 // This is called on the IO thread.
442 virtual void DidCreatePpapiPlugin(BrowserPpapiHost* browser_host) {} 443 virtual void DidCreatePpapiPlugin(BrowserPpapiHost* browser_host) {}
443 444
444 // Returns true if renderer processes can use Pepper TCP/UDP sockets from 445 // Returns true if renderer processes can use Pepper TCP/UDP sockets from
445 // the given origin. 446 // the given origin and connection type.
446 virtual bool AllowPepperSocketAPI(BrowserContext* browser_context, 447 virtual bool AllowPepperSocketAPI(BrowserContext* browser_context,
447 const GURL& url); 448 const GURL& url,
449 const SocketPermissionRequest& params);
448 450
449 // Returns true if renderer processes can use private Pepper File APIs. 451 // Returns true if renderer processes can use private Pepper File APIs.
450 virtual bool AllowPepperPrivateFileAPI(); 452 virtual bool AllowPepperPrivateFileAPI();
451 453
452 // Returns the directory containing hyphenation dictionaries. 454 // Returns the directory containing hyphenation dictionaries.
453 virtual FilePath GetHyphenDictionaryDirectory(); 455 virtual FilePath GetHyphenDictionaryDirectory();
454 456
455 #if defined(OS_POSIX) && !defined(OS_MACOSX) 457 #if defined(OS_POSIX) && !defined(OS_MACOSX)
456 // Populates |mappings| with all files that need to be mapped before launching 458 // Populates |mappings| with all files that need to be mapped before launching
457 // a child process. 459 // a child process.
(...skipping 12 matching lines...) Expand all
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698