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

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

Issue 9349010: Move handling of debug urls like chrome://crash, chrome://gpuclean to content. These are for test... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 8 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 | 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 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 #include <utility> 10 #include <utility>
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 // Get the effective URL for the given actual URL, to allow an embedder to 103 // Get the effective URL for the given actual URL, to allow an embedder to
104 // group different url schemes in the same SiteInstance. 104 // group different url schemes in the same SiteInstance.
105 virtual GURL GetEffectiveURL(BrowserContext* browser_context, 105 virtual GURL GetEffectiveURL(BrowserContext* browser_context,
106 const GURL& url) = 0; 106 const GURL& url) = 0;
107 107
108 // Returns whether all instances of the specified effective URL should be 108 // Returns whether all instances of the specified effective URL should be
109 // rendered by the same process, rather than using process-per-site-instance. 109 // rendered by the same process, rather than using process-per-site-instance.
110 virtual bool ShouldUseProcessPerSite(BrowserContext* browser_context, 110 virtual bool ShouldUseProcessPerSite(BrowserContext* browser_context,
111 const GURL& effective_url) = 0; 111 const GURL& effective_url) = 0;
112 112
113 // Returns whether a specified URL is to be considered the same as any
114 // SiteInstance.
115 virtual bool IsURLSameAsAnySiteInstance(const GURL& url) = 0;
116
117 // Returns whether a specified URL is handled by the embedder's internal 113 // Returns whether a specified URL is handled by the embedder's internal
118 // protocol handlers. 114 // protocol handlers.
119 virtual bool IsHandledURL(const GURL& url) = 0; 115 virtual bool IsHandledURL(const GURL& url) = 0;
120 116
121 // Returns whether a new view for a given |site_url| can be launched in a 117 // Returns whether a new view for a given |site_url| can be launched in a
122 // given |process_host|. 118 // given |process_host|.
123 virtual bool IsSuitableHost(content::RenderProcessHost* process_host, 119 virtual bool IsSuitableHost(content::RenderProcessHost* process_host,
124 const GURL& site_url) = 0; 120 const GURL& site_url) = 0;
125 121
126 // Called when a site instance is first associated with a process. 122 // Called when a site instance is first associated with a process.
(...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after
354 // This is called on a worker thread. 350 // This is called on a worker thread.
355 virtual 351 virtual
356 crypto::CryptoModuleBlockingPasswordDelegate* GetCryptoPasswordDelegate( 352 crypto::CryptoModuleBlockingPasswordDelegate* GetCryptoPasswordDelegate(
357 const GURL& url) = 0; 353 const GURL& url) = 0;
358 #endif 354 #endif
359 }; 355 };
360 356
361 } // namespace content 357 } // namespace content
362 358
363 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ 359 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698