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

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

Issue 923183003: Move URL fixup to a preliminary phase that doesn't affect virtual URLs. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix leak in test. Created 5 years, 10 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
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 486 matching lines...) Expand 10 before | Expand all | Expand 10 after
497 // the renderer. The content layer will add its own settings, and then it's up 497 // the renderer. The content layer will add its own settings, and then it's up
498 // to the embedder to update it if it wants. 498 // to the embedder to update it if it wants.
499 virtual void OverrideWebkitPrefs(RenderViewHost* render_view_host, 499 virtual void OverrideWebkitPrefs(RenderViewHost* render_view_host,
500 const GURL& url, 500 const GURL& url,
501 WebPreferences* prefs) {} 501 WebPreferences* prefs) {}
502 502
503 // Notifies that BrowserURLHandler has been created, so that the embedder can 503 // Notifies that BrowserURLHandler has been created, so that the embedder can
504 // optionally add their own handlers. 504 // optionally add their own handlers.
505 virtual void BrowserURLHandlerCreated(BrowserURLHandler* handler) {} 505 virtual void BrowserURLHandlerCreated(BrowserURLHandler* handler) {}
506 506
507 // Allows the embedder to perform minor cleanup on URLs before they are
508 // rewritten by the BrowserURLHandler. This is important in cases that the
509 // cleanup should not be treated as part of the rewriting.
510 virtual GURL FixupURL(const GURL& url);
511
507 // Clears browser cache. 512 // Clears browser cache.
508 virtual void ClearCache(RenderViewHost* rvh) {} 513 virtual void ClearCache(RenderViewHost* rvh) {}
509 514
510 // Clears browser cookies. 515 // Clears browser cookies.
511 virtual void ClearCookies(RenderViewHost* rvh) {} 516 virtual void ClearCookies(RenderViewHost* rvh) {}
512 517
513 // Returns the default download directory. 518 // Returns the default download directory.
514 // This can be called on any thread. 519 // This can be called on any thread.
515 virtual base::FilePath GetDefaultDownloadDirectory(); 520 virtual base::FilePath GetDefaultDownloadDirectory();
516 521
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
646 // Allows an embedder to provide its own ExternalVideoSurfaceContainer 651 // Allows an embedder to provide its own ExternalVideoSurfaceContainer
647 // implementation. Return nullptr to disable external surface video. 652 // implementation. Return nullptr to disable external surface video.
648 virtual ExternalVideoSurfaceContainer* 653 virtual ExternalVideoSurfaceContainer*
649 OverrideCreateExternalVideoSurfaceContainer(WebContents* web_contents); 654 OverrideCreateExternalVideoSurfaceContainer(WebContents* web_contents);
650 #endif 655 #endif
651 }; 656 };
652 657
653 } // namespace content 658 } // namespace content
654 659
655 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ 660 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698