OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 EXTENSIONS_SHELL_BROWSER_SHELL_CONTENT_BROWSER_CLIENT_H_ | 5 #ifndef EXTENSIONS_SHELL_BROWSER_SHELL_CONTENT_BROWSER_CLIENT_H_ |
6 #define EXTENSIONS_SHELL_BROWSER_SHELL_CONTENT_BROWSER_CLIENT_H_ | 6 #define EXTENSIONS_SHELL_BROWSER_SHELL_CONTENT_BROWSER_CLIENT_H_ |
7 | 7 |
8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
9 #include "base/macros.h" | 9 #include "base/macros.h" |
10 #include "content/public/browser/content_browser_client.h" | 10 #include "content/public/browser/content_browser_client.h" |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
50 void AppendExtraCommandLineSwitches(base::CommandLine* command_line, | 50 void AppendExtraCommandLineSwitches(base::CommandLine* command_line, |
51 int child_process_id) override; | 51 int child_process_id) override; |
52 content::SpeechRecognitionManagerDelegate* | 52 content::SpeechRecognitionManagerDelegate* |
53 CreateSpeechRecognitionManagerDelegate() override; | 53 CreateSpeechRecognitionManagerDelegate() override; |
54 content::BrowserPpapiHost* GetExternalBrowserPpapiHost( | 54 content::BrowserPpapiHost* GetExternalBrowserPpapiHost( |
55 int plugin_process_id) override; | 55 int plugin_process_id) override; |
56 void GetAdditionalAllowedSchemesForFileSystem( | 56 void GetAdditionalAllowedSchemesForFileSystem( |
57 std::vector<std::string>* additional_schemes) override; | 57 std::vector<std::string>* additional_schemes) override; |
58 content::DevToolsManagerDelegate* GetDevToolsManagerDelegate() override; | 58 content::DevToolsManagerDelegate* GetDevToolsManagerDelegate() override; |
59 | 59 |
| 60 // TODO |
| 61 // void GetTemporaryStorageConfiguration( |
| 62 // content::BrowserContext* context, |
| 63 // const base::FilePath& partition_path, bool is_incognito, |
| 64 // const storage::TemporaryStorageConfigurationCallback& callback)override; |
| 65 |
60 protected: | 66 protected: |
61 // Subclasses may wish to provide their own ShellBrowserMainParts. | 67 // Subclasses may wish to provide their own ShellBrowserMainParts. |
62 virtual ShellBrowserMainParts* CreateShellBrowserMainParts( | 68 virtual ShellBrowserMainParts* CreateShellBrowserMainParts( |
63 const content::MainFunctionParams& parameters, | 69 const content::MainFunctionParams& parameters, |
64 ShellBrowserMainDelegate* browser_main_delegate); | 70 ShellBrowserMainDelegate* browser_main_delegate); |
65 | 71 |
66 private: | 72 private: |
67 // Appends command line switches for a renderer process. | 73 // Appends command line switches for a renderer process. |
68 void AppendRendererSwitches(base::CommandLine* command_line); | 74 void AppendRendererSwitches(base::CommandLine* command_line); |
69 | 75 |
70 // Returns the extension or app associated with |site_instance| or NULL. | 76 // Returns the extension or app associated with |site_instance| or NULL. |
71 const Extension* GetExtension(content::SiteInstance* site_instance); | 77 const Extension* GetExtension(content::SiteInstance* site_instance); |
72 | 78 |
73 // Owned by content::BrowserMainLoop. | 79 // Owned by content::BrowserMainLoop. |
74 ShellBrowserMainParts* browser_main_parts_; | 80 ShellBrowserMainParts* browser_main_parts_; |
75 | 81 |
76 // Owned by ShellBrowserMainParts. | 82 // Owned by ShellBrowserMainParts. |
77 ShellBrowserMainDelegate* browser_main_delegate_; | 83 ShellBrowserMainDelegate* browser_main_delegate_; |
78 | 84 |
79 DISALLOW_COPY_AND_ASSIGN(ShellContentBrowserClient); | 85 DISALLOW_COPY_AND_ASSIGN(ShellContentBrowserClient); |
80 }; | 86 }; |
81 | 87 |
82 } // namespace extensions | 88 } // namespace extensions |
83 | 89 |
84 #endif // EXTENSIONS_SHELL_BROWSER_SHELL_CONTENT_BROWSER_CLIENT_H_ | 90 #endif // EXTENSIONS_SHELL_BROWSER_SHELL_CONTENT_BROWSER_CLIENT_H_ |
OLD | NEW |