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

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

Issue 8033001: Delegate decision what site instances can be rendered in what process to chrome (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: updates Created 9 years, 2 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_MOCK_CONTENT_BROWSER_CLIENT_H_ 5 #ifndef CONTENT_BROWSER_MOCK_CONTENT_BROWSER_CLIENT_H_
6 #define CONTENT_BROWSER_MOCK_CONTENT_BROWSER_CLIENT_H_ 6 #define CONTENT_BROWSER_MOCK_CONTENT_BROWSER_CLIENT_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 19 matching lines...) Expand all
30 virtual void BrowserRenderProcessHostCreated( 30 virtual void BrowserRenderProcessHostCreated(
31 BrowserRenderProcessHost* host) OVERRIDE; 31 BrowserRenderProcessHost* host) OVERRIDE;
32 virtual void PluginProcessHostCreated(PluginProcessHost* host) OVERRIDE; 32 virtual void PluginProcessHostCreated(PluginProcessHost* host) OVERRIDE;
33 virtual void WorkerProcessHostCreated(WorkerProcessHost* host) OVERRIDE; 33 virtual void WorkerProcessHostCreated(WorkerProcessHost* host) OVERRIDE;
34 virtual WebUIFactory* GetWebUIFactory() OVERRIDE; 34 virtual WebUIFactory* GetWebUIFactory() OVERRIDE;
35 virtual GURL GetEffectiveURL(content::BrowserContext* browser_context, 35 virtual GURL GetEffectiveURL(content::BrowserContext* browser_context,
36 const GURL& url) OVERRIDE; 36 const GURL& url) OVERRIDE;
37 virtual bool ShouldUseProcessPerSite(BrowserContext* browser_context, 37 virtual bool ShouldUseProcessPerSite(BrowserContext* browser_context,
38 const GURL& effective_url) OVERRIDE; 38 const GURL& effective_url) OVERRIDE;
39 virtual bool IsURLSameAsAnySiteInstance(const GURL& url) OVERRIDE; 39 virtual bool IsURLSameAsAnySiteInstance(const GURL& url) OVERRIDE;
40 virtual bool IsSuitableHost(RenderProcessHost* process_host,
41 const GURL& site_url) OVERRIDE;
40 virtual std::string GetCanonicalEncodingNameByAliasName( 42 virtual std::string GetCanonicalEncodingNameByAliasName(
41 const std::string& alias_name) OVERRIDE; 43 const std::string& alias_name) OVERRIDE;
42 virtual void AppendExtraCommandLineSwitches(CommandLine* command_line, 44 virtual void AppendExtraCommandLineSwitches(CommandLine* command_line,
43 int child_process_id) OVERRIDE; 45 int child_process_id) OVERRIDE;
44 virtual std::string GetApplicationLocale() OVERRIDE; 46 virtual std::string GetApplicationLocale() OVERRIDE;
45 virtual std::string GetAcceptLangs(const TabContents* tab) OVERRIDE; 47 virtual std::string GetAcceptLangs(const TabContents* tab) OVERRIDE;
46 virtual SkBitmap* GetDefaultFavicon() OVERRIDE; 48 virtual SkBitmap* GetDefaultFavicon() OVERRIDE;
47 virtual bool AllowAppCache(const GURL& manifest_url, 49 virtual bool AllowAppCache(const GURL& manifest_url,
48 const GURL& first_party, 50 const GURL& first_party,
49 const content::ResourceContext& context) OVERRIDE; 51 const content::ResourceContext& context) OVERRIDE;
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 private: 146 private:
145 // Temporary directory for GetDefaultDownloadDirectory. 147 // Temporary directory for GetDefaultDownloadDirectory.
146 ScopedTempDir download_dir_; 148 ScopedTempDir download_dir_;
147 149
148 DISALLOW_COPY_AND_ASSIGN(MockContentBrowserClient); 150 DISALLOW_COPY_AND_ASSIGN(MockContentBrowserClient);
149 }; 151 };
150 152
151 } // namespace content 153 } // namespace content
152 154
153 #endif // CONTENT_BROWSER_MOCK_CONTENT_BROWSER_CLIENT_H_ 155 #endif // CONTENT_BROWSER_MOCK_CONTENT_BROWSER_CLIENT_H_
OLDNEW
« no previous file with comments | « content/browser/content_browser_client.h ('k') | content/browser/mock_content_browser_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698