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_SHELL_SHELL_BROWSER_MAIN_H_ | 5 #ifndef CONTENT_SHELL_SHELL_BROWSER_MAIN_H_ |
6 #define CONTENT_SHELL_SHELL_BROWSER_MAIN_H_ | 6 #define CONTENT_SHELL_SHELL_BROWSER_MAIN_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
| 9 #include "base/memory/scoped_ptr.h" |
| 10 #include "content/browser/browser_main.h" |
| 11 |
| 12 class ResourceDispatcherHost; |
| 13 class TabContents; |
| 14 |
| 15 namespace base { |
| 16 class Thread; |
| 17 } |
| 18 |
| 19 namespace ui { |
| 20 class Clipboard; |
| 21 } |
| 22 |
| 23 namespace content { |
| 24 |
| 25 class ShellBrowserContext; |
| 26 |
| 27 class ShellBrowserMainParts : public BrowserMainParts { |
| 28 public: |
| 29 explicit ShellBrowserMainParts(const MainFunctionParams& parameters); |
| 30 virtual ~ShellBrowserMainParts(); |
| 31 |
| 32 virtual void PreMainMessageLoopRun(); |
| 33 |
| 34 ResourceDispatcherHost* GetResourceDispatcherHost(); |
| 35 ui::Clipboard* GetClipboard(); |
| 36 |
| 37 base::Thread* io_thread() { return io_thread_.get(); } |
| 38 base::Thread* file_thread() { return file_thread_.get(); } |
| 39 |
| 40 private: |
| 41 scoped_ptr<ShellBrowserContext> browser_context_; |
| 42 scoped_ptr<TabContents> tab_contents_; |
| 43 |
| 44 scoped_ptr<ResourceDispatcherHost> resource_dispatcher_host_; |
| 45 scoped_ptr<ui::Clipboard> clipboard_; |
| 46 |
| 47 scoped_ptr<base::Thread> io_thread_; |
| 48 scoped_ptr<base::Thread> file_thread_; |
| 49 scoped_ptr<base::Thread> db_thread_; |
| 50 scoped_ptr<base::Thread> process_launcher_thread_; |
| 51 scoped_ptr<base::Thread> cache_thread_; |
| 52 |
| 53 DISALLOW_COPY_AND_ASSIGN(ShellBrowserMainParts); |
| 54 }; |
| 55 |
| 56 } // namespace content |
| 57 |
9 #endif // CONTENT_SHELL_SHELL_BROWSER_MAIN_H_ | 58 #endif // CONTENT_SHELL_SHELL_BROWSER_MAIN_H_ |
OLD | NEW |