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

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: Added DevTools part of patch. Resolved some 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 514 matching lines...) Expand 10 before | Expand all | Expand 10 after
525 // Notifies that BrowserURLHandler has been created, so that the embedder can 525 // Notifies that BrowserURLHandler has been created, so that the embedder can
526 // optionally add their own handlers. 526 // optionally add their own handlers.
527 virtual void BrowserURLHandlerCreated(BrowserURLHandler* handler) {} 527 virtual void BrowserURLHandlerCreated(BrowserURLHandler* handler) {}
528 528
529 // Clears browser cache. 529 // Clears browser cache.
530 virtual void ClearCache(RenderViewHost* rvh) {} 530 virtual void ClearCache(RenderViewHost* rvh) {}
531 531
532 // Clears browser cookies. 532 // Clears browser cookies.
533 virtual void ClearCookies(RenderViewHost* rvh) {} 533 virtual void ClearCookies(RenderViewHost* rvh) {}
534 534
535 // Sets blocked domains.
536 virtual void SetBlockedDomains(
537 RenderViewHost* rvh,
538 const std::string& id,
539 const std::vector<std::string>& blocked_domains) {}
540
535 // Returns the default download directory. 541 // Returns the default download directory.
536 // This can be called on any thread. 542 // This can be called on any thread.
537 virtual base::FilePath GetDefaultDownloadDirectory(); 543 virtual base::FilePath GetDefaultDownloadDirectory();
538 544
539 // Returns the default filename used in downloads when we have no idea what 545 // Returns the default filename used in downloads when we have no idea what
540 // else we should do with the file. 546 // else we should do with the file.
541 virtual std::string GetDefaultDownloadName(); 547 virtual std::string GetDefaultDownloadName();
542 548
543 // Notification that a pepper plugin has just been spawned. This allows the 549 // Notification that a pepper plugin has just been spawned. This allows the
544 // embedder to add filters onto the host to implement interfaces. 550 // embedder to add filters onto the host to implement interfaces.
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
623 content::BrowserContext* browser_context, 629 content::BrowserContext* browser_context,
624 const GURL& url); 630 const GURL& url);
625 631
626 // Returns true if dev channel APIs are available for plugins. 632 // Returns true if dev channel APIs are available for plugins.
627 virtual bool IsPluginAllowedToUseDevChannelAPIs(); 633 virtual bool IsPluginAllowedToUseDevChannelAPIs();
628 }; 634 };
629 635
630 } // namespace content 636 } // namespace content
631 637
632 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ 638 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698