OLD | NEW |
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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
50 // embedder's IPC filters have priority. | 50 // embedder's IPC filters have priority. |
51 virtual void WorkerProcessHostCreated(WorkerProcessHost* host); | 51 virtual void WorkerProcessHostCreated(WorkerProcessHost* host); |
52 | 52 |
53 // Gets the WebUIFactory which will be responsible for generating WebUIs. | 53 // Gets the WebUIFactory which will be responsible for generating WebUIs. |
54 virtual WebUIFactory* GetWebUIFactory(); | 54 virtual WebUIFactory* GetWebUIFactory(); |
55 | 55 |
56 // Get the effective URL for the given actual URL, to allow an embedder to | 56 // Get the effective URL for the given actual URL, to allow an embedder to |
57 // group different url schemes in the same SiteInstance. | 57 // group different url schemes in the same SiteInstance. |
58 virtual GURL GetEffectiveURL(Profile* profile, const GURL& url); | 58 virtual GURL GetEffectiveURL(Profile* profile, const GURL& url); |
59 | 59 |
| 60 // Returns whether a specified URL is to be considered the same as any |
| 61 // SiteInstance. |
| 62 virtual bool IsURLSameAsAnySiteInstance(const GURL& url); |
| 63 |
60 // See RenderViewHostDelegate's comment. | 64 // See RenderViewHostDelegate's comment. |
61 virtual GURL GetAlternateErrorPageURL(const TabContents* tab); | 65 virtual GURL GetAlternateErrorPageURL(const TabContents* tab); |
62 | 66 |
63 // See CharacterEncoding's comment. | 67 // See CharacterEncoding's comment. |
64 virtual std::string GetCanonicalEncodingNameByAliasName( | 68 virtual std::string GetCanonicalEncodingNameByAliasName( |
65 const std::string& alias_name); | 69 const std::string& alias_name); |
66 | 70 |
67 // Allows the embedder to pass extra command line flags. | 71 // Allows the embedder to pass extra command line flags. |
68 // switches::kProcessType will already be set at this point. | 72 // switches::kProcessType will already be set at this point. |
69 virtual void AppendExtraCommandLineSwitches(CommandLine* command_line, | 73 virtual void AppendExtraCommandLineSwitches(CommandLine* command_line, |
(...skipping 28 matching lines...) Expand all Loading... |
98 | 102 |
99 #if defined(OS_LINUX) | 103 #if defined(OS_LINUX) |
100 // Can return an optional fd for crash handling, otherwise returns -1. | 104 // Can return an optional fd for crash handling, otherwise returns -1. |
101 virtual int GetCrashSignalFD(const std::string& process_type); | 105 virtual int GetCrashSignalFD(const std::string& process_type); |
102 #endif | 106 #endif |
103 }; | 107 }; |
104 | 108 |
105 } // namespace content | 109 } // namespace content |
106 | 110 |
107 #endif // CONTENT_BROWSER_CONTENT_BROWSER_CLIENT_H_ | 111 #endif // CONTENT_BROWSER_CONTENT_BROWSER_CLIENT_H_ |
OLD | NEW |