| 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 524 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 535 // Notifies that BrowserURLHandler has been created, so that the embedder can | 535 // Notifies that BrowserURLHandler has been created, so that the embedder can |
| 536 // optionally add their own handlers. | 536 // optionally add their own handlers. |
| 537 virtual void BrowserURLHandlerCreated(BrowserURLHandler* handler) {} | 537 virtual void BrowserURLHandlerCreated(BrowserURLHandler* handler) {} |
| 538 | 538 |
| 539 // Clears browser cache. | 539 // Clears browser cache. |
| 540 virtual void ClearCache(RenderViewHost* rvh) {} | 540 virtual void ClearCache(RenderViewHost* rvh) {} |
| 541 | 541 |
| 542 // Clears browser cookies. | 542 // Clears browser cookies. |
| 543 virtual void ClearCookies(RenderViewHost* rvh) {} | 543 virtual void ClearCookies(RenderViewHost* rvh) {} |
| 544 | 544 |
| 545 // Disables / reenables network. |id| should be DevToolsAgentHost GUID. |
| 546 virtual void DisableNetwork( |
| 547 RenderViewHost* rvh, |
| 548 const std::string& id, |
| 549 bool disable) {} |
| 550 |
| 545 // Returns the default download directory. | 551 // Returns the default download directory. |
| 546 // This can be called on any thread. | 552 // This can be called on any thread. |
| 547 virtual base::FilePath GetDefaultDownloadDirectory(); | 553 virtual base::FilePath GetDefaultDownloadDirectory(); |
| 548 | 554 |
| 549 // Returns the default filename used in downloads when we have no idea what | 555 // Returns the default filename used in downloads when we have no idea what |
| 550 // else we should do with the file. | 556 // else we should do with the file. |
| 551 virtual std::string GetDefaultDownloadName(); | 557 virtual std::string GetDefaultDownloadName(); |
| 552 | 558 |
| 553 // Notification that a pepper plugin has just been spawned. This allows the | 559 // Notification that a pepper plugin has just been spawned. This allows the |
| 554 // embedder to add filters onto the host to implement interfaces. | 560 // embedder to add filters onto the host to implement interfaces. |
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 645 // Allows an embedder to provide its own ExternalVideoSurfaceContainer | 651 // Allows an embedder to provide its own ExternalVideoSurfaceContainer |
| 646 // implementation. Return NULL to disable external surface video. | 652 // implementation. Return NULL to disable external surface video. |
| 647 virtual ExternalVideoSurfaceContainer* | 653 virtual ExternalVideoSurfaceContainer* |
| 648 OverrideCreateExternalVideoSurfaceContainer(WebContents* web_contents); | 654 OverrideCreateExternalVideoSurfaceContainer(WebContents* web_contents); |
| 649 #endif | 655 #endif |
| 650 }; | 656 }; |
| 651 | 657 |
| 652 } // namespace content | 658 } // namespace content |
| 653 | 659 |
| 654 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ | 660 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ |
| OLD | NEW |