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
3 // found in the LICENSE file.
5 #ifndef CONTENT_SHELL_SHELL_BROWSER_MAIN_H_
6 #define CONTENT_SHELL_SHELL_BROWSER_MAIN_H_
9 #include "base/basictypes.h"
10 #include "base/memory/scoped_ptr.h"
11 #include "content/public/browser/browser_main_parts.h"
13 class ResourceDispatcherHost
;
25 class ShellBrowserContext
;
26 struct MainFunctionParams
;
28 class ShellBrowserMainParts
: public BrowserMainParts
{
30 explicit ShellBrowserMainParts(const content::MainFunctionParams
& parameters
);
31 virtual ~ShellBrowserMainParts();
33 virtual void PreEarlyInitialization() OVERRIDE
{}
34 virtual void PostEarlyInitialization() OVERRIDE
{}
35 virtual void PreMainMessageLoopStart() OVERRIDE
{}
36 virtual void ToolkitInitialized() OVERRIDE
{}
37 virtual void PostMainMessageLoopStart() OVERRIDE
{}
38 virtual void PreCreateThreads() OVERRIDE
{}
39 virtual void PreStartThread(BrowserThread::ID id
) OVERRIDE
{}
40 virtual void PostStartThread(BrowserThread::ID id
) OVERRIDE
{}
41 virtual void PreMainMessageLoopRun() OVERRIDE
;
42 virtual bool MainMessageLoopRun(int* result_code
) OVERRIDE
;
43 virtual void PostMainMessageLoopRun() OVERRIDE
;
44 virtual void PreStopThread(BrowserThread::ID id
) OVERRIDE
;
45 virtual void PostStopThread(BrowserThread::ID
) OVERRIDE
{}
46 virtual void PostDestroyThreads() OVERRIDE
{}
48 ResourceDispatcherHost
* GetResourceDispatcherHost();
49 ui::Clipboard
* GetClipboard();
52 scoped_ptr
<ShellBrowserContext
> browser_context_
;
54 scoped_ptr
<ResourceDispatcherHost
> resource_dispatcher_host_
;
55 scoped_ptr
<ui::Clipboard
> clipboard_
;
57 DISALLOW_COPY_AND_ASSIGN(ShellBrowserMainParts
);
60 } // namespace content
62 #endif // CONTENT_SHELL_SHELL_BROWSER_MAIN_H_