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

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

Issue 7328029: Use process-per-app-instance for hosted apps without background permission. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Update tests. Created 9 years, 5 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_BROWSER_CONTENT_BROWSER_CLIENT_H_ 5 #ifndef CONTENT_BROWSER_CONTENT_BROWSER_CLIENT_H_
6 #define CONTENT_BROWSER_CONTENT_BROWSER_CLIENT_H_ 6 #define CONTENT_BROWSER_CONTENT_BROWSER_CLIENT_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 // embedder's IPC filters have priority. 79 // embedder's IPC filters have priority.
80 virtual void WorkerProcessHostCreated(WorkerProcessHost* host) = 0; 80 virtual void WorkerProcessHostCreated(WorkerProcessHost* host) = 0;
81 81
82 // Gets the WebUIFactory which will be responsible for generating WebUIs. 82 // Gets the WebUIFactory which will be responsible for generating WebUIs.
83 virtual WebUIFactory* GetWebUIFactory() = 0; 83 virtual WebUIFactory* GetWebUIFactory() = 0;
84 84
85 // Get the effective URL for the given actual URL, to allow an embedder to 85 // Get the effective URL for the given actual URL, to allow an embedder to
86 // group different url schemes in the same SiteInstance. 86 // group different url schemes in the same SiteInstance.
87 virtual GURL GetEffectiveURL(Profile* profile, const GURL& url) = 0; 87 virtual GURL GetEffectiveURL(Profile* profile, const GURL& url) = 0;
88 88
89 // Returns whether all instances of the specified URL should be rendered by
90 // the same process, rather than using process-per-site-instance.
91 virtual bool ShouldUseProcessPerSite(Profile* profile, const GURL& url) = 0;
92
89 // Returns whether a specified URL is to be considered the same as any 93 // Returns whether a specified URL is to be considered the same as any
90 // SiteInstance. 94 // SiteInstance.
91 virtual bool IsURLSameAsAnySiteInstance(const GURL& url) = 0; 95 virtual bool IsURLSameAsAnySiteInstance(const GURL& url) = 0;
92 96
93 // See CharacterEncoding's comment. 97 // See CharacterEncoding's comment.
94 virtual std::string GetCanonicalEncodingNameByAliasName( 98 virtual std::string GetCanonicalEncodingNameByAliasName(
95 const std::string& alias_name) = 0; 99 const std::string& alias_name) = 0;
96 100
97 // Allows the embedder to pass extra command line flags. 101 // Allows the embedder to pass extra command line flags.
98 // switches::kProcessType will already be set at this point. 102 // switches::kProcessType will already be set at this point.
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
236 // This is called on a worker thread. 240 // This is called on a worker thread.
237 virtual 241 virtual
238 crypto::CryptoModuleBlockingPasswordDelegate* GetCryptoPasswordDelegate( 242 crypto::CryptoModuleBlockingPasswordDelegate* GetCryptoPasswordDelegate(
239 const GURL& url) = 0; 243 const GURL& url) = 0;
240 #endif 244 #endif
241 }; 245 };
242 246
243 } // namespace content 247 } // namespace content
244 248
245 #endif // CONTENT_BROWSER_CONTENT_BROWSER_CLIENT_H_ 249 #endif // CONTENT_BROWSER_CONTENT_BROWSER_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698