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