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