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. | |
mmenke
2014/03/31 18:10:20
Think this needs a comment on what "id" is.
eustas
2014/04/18 12:33:19
Done.
| |
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 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
643 // Returns a special cookie store to use for a given render process, or NULL | 649 // Returns a special cookie store to use for a given render process, or NULL |
644 // if the default cookie store should be used | 650 // if the default cookie store should be used |
645 // This is called on the IO thread. | 651 // This is called on the IO thread. |
646 virtual net::CookieStore* OverrideCookieStoreForRenderProcess( | 652 virtual net::CookieStore* OverrideCookieStoreForRenderProcess( |
647 int render_process_id_); | 653 int render_process_id_); |
648 }; | 654 }; |
649 | 655 |
650 } // namespace content | 656 } // namespace content |
651 | 657 |
652 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ | 658 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ |
OLD | NEW |