| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_SHELL_SHELL_CONTENT_BROWSER_CLIENT_H_ | 5 #ifndef CONTENT_SHELL_SHELL_CONTENT_BROWSER_CLIENT_H_ |
| 6 #define CONTENT_SHELL_SHELL_CONTENT_BROWSER_CLIENT_H_ | 6 #define CONTENT_SHELL_SHELL_CONTENT_BROWSER_CLIENT_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| 11 #include "base/files/file_path.h" | 11 #include "base/files/file_path.h" |
| 12 #include "base/memory/scoped_ptr.h" | 12 #include "base/memory/scoped_ptr.h" |
| 13 #include "base/platform_file.h" | 13 #include "base/platform_file.h" |
| 14 #include "content/public/browser/content_browser_client.h" | 14 #include "content/public/browser/content_browser_client.h" |
| 15 | 15 |
| 16 namespace content { | 16 namespace content { |
| 17 | 17 |
| 18 class ShellBrowserContext; | 18 class ShellBrowserContext; |
| 19 class ShellBrowserMainParts; | 19 class ShellBrowserMainParts; |
| 20 class ShellResourceDispatcherHostDelegate; | 20 class ShellResourceDispatcherHostDelegate; |
| 21 | 21 |
| 22 class ShellContentBrowserClient : public ContentBrowserClient { | 22 class ShellContentBrowserClient : public ContentBrowserClient { |
| 23 public: | 23 public: |
| 24 // Gets the current instance. |
| 25 static ShellContentBrowserClient* Get(); |
| 26 |
| 24 ShellContentBrowserClient(); | 27 ShellContentBrowserClient(); |
| 25 virtual ~ShellContentBrowserClient(); | 28 virtual ~ShellContentBrowserClient(); |
| 26 | 29 |
| 27 // ContentBrowserClient overrides. | 30 // ContentBrowserClient overrides. |
| 28 virtual BrowserMainParts* CreateBrowserMainParts( | 31 virtual BrowserMainParts* CreateBrowserMainParts( |
| 29 const MainFunctionParams& parameters) OVERRIDE; | 32 const MainFunctionParams& parameters) OVERRIDE; |
| 30 virtual void RenderProcessHostCreated(RenderProcessHost* host) OVERRIDE; | 33 virtual void RenderProcessHostCreated(RenderProcessHost* host) OVERRIDE; |
| 31 virtual net::URLRequestContextGetter* CreateRequestContext( | 34 virtual net::URLRequestContextGetter* CreateRequestContext( |
| 32 BrowserContext* browser_context, | 35 BrowserContext* browser_context, |
| 33 ProtocolHandlerMap* protocol_handlers) OVERRIDE; | 36 ProtocolHandlerMap* protocol_handlers) OVERRIDE; |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 76 base::FilePath webkit_source_dir_; | 79 base::FilePath webkit_source_dir_; |
| 77 | 80 |
| 78 base::PlatformFile hyphen_dictionary_file_; | 81 base::PlatformFile hyphen_dictionary_file_; |
| 79 | 82 |
| 80 ShellBrowserMainParts* shell_browser_main_parts_; | 83 ShellBrowserMainParts* shell_browser_main_parts_; |
| 81 }; | 84 }; |
| 82 | 85 |
| 83 } // namespace content | 86 } // namespace content |
| 84 | 87 |
| 85 #endif // CONTENT_SHELL_SHELL_CONTENT_BROWSER_CLIENT_H_ | 88 #endif // CONTENT_SHELL_SHELL_CONTENT_BROWSER_CLIENT_H_ |
| OLD | NEW |