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 <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
10 #include <utility> | 10 #include <utility> |
(...skipping 514 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
525 // Notifies that BrowserURLHandler has been created, so that the embedder can | 525 // Notifies that BrowserURLHandler has been created, so that the embedder can |
526 // optionally add their own handlers. | 526 // optionally add their own handlers. |
527 virtual void BrowserURLHandlerCreated(BrowserURLHandler* handler) {} | 527 virtual void BrowserURLHandlerCreated(BrowserURLHandler* handler) {} |
528 | 528 |
529 // Clears browser cache. | 529 // Clears browser cache. |
530 virtual void ClearCache(RenderViewHost* rvh) {} | 530 virtual void ClearCache(RenderViewHost* rvh) {} |
531 | 531 |
532 // Clears browser cookies. | 532 // Clears browser cookies. |
533 virtual void ClearCookies(RenderViewHost* rvh) {} | 533 virtual void ClearCookies(RenderViewHost* rvh) {} |
534 | 534 |
| 535 // Sets blocked domains. |
| 536 virtual void SetBlockedDomains( |
| 537 RenderViewHost* rvh, |
| 538 const std::string& id, |
| 539 const std::vector<std::string>& blocked_domains) {} |
| 540 |
535 // Returns the default download directory. | 541 // Returns the default download directory. |
536 // This can be called on any thread. | 542 // This can be called on any thread. |
537 virtual base::FilePath GetDefaultDownloadDirectory(); | 543 virtual base::FilePath GetDefaultDownloadDirectory(); |
538 | 544 |
539 // Returns the default filename used in downloads when we have no idea what | 545 // Returns the default filename used in downloads when we have no idea what |
540 // else we should do with the file. | 546 // else we should do with the file. |
541 virtual std::string GetDefaultDownloadName(); | 547 virtual std::string GetDefaultDownloadName(); |
542 | 548 |
543 // Notification that a pepper plugin has just been spawned. This allows the | 549 // Notification that a pepper plugin has just been spawned. This allows the |
544 // embedder to add filters onto the host to implement interfaces. | 550 // embedder to add filters onto the host to implement interfaces. |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
623 content::BrowserContext* browser_context, | 629 content::BrowserContext* browser_context, |
624 const GURL& url); | 630 const GURL& url); |
625 | 631 |
626 // Returns true if dev channel APIs are available for plugins. | 632 // Returns true if dev channel APIs are available for plugins. |
627 virtual bool IsPluginAllowedToUseDevChannelAPIs(); | 633 virtual bool IsPluginAllowedToUseDevChannelAPIs(); |
628 }; | 634 }; |
629 | 635 |
630 } // namespace content | 636 } // namespace content |
631 | 637 |
632 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ | 638 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ |
OLD | NEW |