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

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: Rename parameter Created 6 years, 8 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 521 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698