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 515 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
526 // Notifies that BrowserURLHandler has been created, so that the embedder can | 526 // Notifies that BrowserURLHandler has been created, so that the embedder can |
527 // optionally add their own handlers. | 527 // optionally add their own handlers. |
528 virtual void BrowserURLHandlerCreated(BrowserURLHandler* handler) {} | 528 virtual void BrowserURLHandlerCreated(BrowserURLHandler* handler) {} |
529 | 529 |
530 // Clears browser cache. | 530 // Clears browser cache. |
531 virtual void ClearCache(RenderViewHost* rvh) {} | 531 virtual void ClearCache(RenderViewHost* rvh) {} |
532 | 532 |
533 // Clears browser cookies. | 533 // Clears browser cookies. |
534 virtual void ClearCookies(RenderViewHost* rvh) {} | 534 virtual void ClearCookies(RenderViewHost* rvh) {} |
535 | 535 |
| 536 // Sets blocked domains. |
| 537 virtual void SetBlockedDomains( |
| 538 RenderViewHost* rvh, |
| 539 const std::string& id, |
| 540 const std::vector<std::string>& blocked_domains) {} |
| 541 |
536 // Returns the default download directory. | 542 // Returns the default download directory. |
537 // This can be called on any thread. | 543 // This can be called on any thread. |
538 virtual base::FilePath GetDefaultDownloadDirectory(); | 544 virtual base::FilePath GetDefaultDownloadDirectory(); |
539 | 545 |
540 // Returns the default filename used in downloads when we have no idea what | 546 // Returns the default filename used in downloads when we have no idea what |
541 // else we should do with the file. | 547 // else we should do with the file. |
542 virtual std::string GetDefaultDownloadName(); | 548 virtual std::string GetDefaultDownloadName(); |
543 | 549 |
544 // Notification that a pepper plugin has just been spawned. This allows the | 550 // Notification that a pepper plugin has just been spawned. This allows the |
545 // embedder to add filters onto the host to implement interfaces. | 551 // embedder to add filters onto the host to implement interfaces. |
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
630 // Returns a special cookie store to use for a given render process, or NULL | 636 // Returns a special cookie store to use for a given render process, or NULL |
631 // if the default cookie store should be used | 637 // if the default cookie store should be used |
632 // This is called on the IO thread. | 638 // This is called on the IO thread. |
633 virtual net::CookieStore* OverrideCookieStoreForRenderProcess( | 639 virtual net::CookieStore* OverrideCookieStoreForRenderProcess( |
634 int render_process_id_); | 640 int render_process_id_); |
635 }; | 641 }; |
636 | 642 |
637 } // namespace content | 643 } // namespace content |
638 | 644 |
639 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ | 645 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ |
OLD | NEW |