Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(212)

Side by Side Diff: content/public/browser/content_browser_client.h

Issue 182993003: Add the ability for DevTools to wrap network transactions. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressed comments Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698