Chromium Code Reviews| 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 508 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 519 // Notifies that BrowserURLHandler has been created, so that the embedder can | 519 // Notifies that BrowserURLHandler has been created, so that the embedder can |
| 520 // optionally add their own handlers. | 520 // optionally add their own handlers. |
| 521 virtual void BrowserURLHandlerCreated(BrowserURLHandler* handler) {} | 521 virtual void BrowserURLHandlerCreated(BrowserURLHandler* handler) {} |
| 522 | 522 |
| 523 // Clears browser cache. | 523 // Clears browser cache. |
| 524 virtual void ClearCache(RenderViewHost* rvh) {} | 524 virtual void ClearCache(RenderViewHost* rvh) {} |
| 525 | 525 |
| 526 // Clears browser cookies. | 526 // Clears browser cookies. |
| 527 virtual void ClearCookies(RenderViewHost* rvh) {} | 527 virtual void ClearCookies(RenderViewHost* rvh) {} |
| 528 | 528 |
| 529 // Sets blocked domains. | |
| 530 virtual void SetBlockedDomains( | |
| 531 RenderViewHost* rvh, | |
| 532 const std::string& id, | |
| 533 const std::vector<std::string>& blocked_domains) {} | |
|
mmenke
2014/03/07 19:38:08
Why is this needed? The DevToolsNetworkController
eustas
2014/03/11 12:06:42
DevTools host lives in content, so I don't think w
| |
| 534 | |
| 529 // Returns the default download directory. | 535 // Returns the default download directory. |
| 530 // This can be called on any thread. | 536 // This can be called on any thread. |
| 531 virtual base::FilePath GetDefaultDownloadDirectory(); | 537 virtual base::FilePath GetDefaultDownloadDirectory(); |
| 532 | 538 |
| 533 // Returns the default filename used in downloads when we have no idea what | 539 // Returns the default filename used in downloads when we have no idea what |
| 534 // else we should do with the file. | 540 // else we should do with the file. |
| 535 virtual std::string GetDefaultDownloadName(); | 541 virtual std::string GetDefaultDownloadName(); |
| 536 | 542 |
| 537 // Notification that a pepper plugin has just been spawned. This allows the | 543 // Notification that a pepper plugin has just been spawned. This allows the |
| 538 // embedder to add filters onto the host to implement interfaces. | 544 // embedder to add filters onto the host to implement interfaces. |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 617 content::BrowserContext* browser_context, | 623 content::BrowserContext* browser_context, |
| 618 const GURL& url); | 624 const GURL& url); |
| 619 | 625 |
| 620 // Returns true if dev channel APIs are available for plugins. | 626 // Returns true if dev channel APIs are available for plugins. |
| 621 virtual bool IsPluginAllowedToUseDevChannelAPIs(); | 627 virtual bool IsPluginAllowedToUseDevChannelAPIs(); |
| 622 }; | 628 }; |
| 623 | 629 |
| 624 } // namespace content | 630 } // namespace content |
| 625 | 631 |
| 626 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ | 632 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ |
| OLD | NEW |