Added documentation to web_view.js/web_view_experimental.js regarding the webview...
[chromium-blink-merge.git] / ash / shell / content_client / shell_browser_main_parts.h
blob229c8681cef62b1cb2ca29ccf8fdeb69f99bea08
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
3 // found in the LICENSE file.
5 #ifndef ASH_SHELL_CONTENT_CLIENT_EXAMPLES_BROWSER_MAIN_PARTS_H_
6 #define ASH_SHELL_CONTENT_CLIENT_EXAMPLES_BROWSER_MAIN_PARTS_H_
8 #include "base/basictypes.h"
9 #include "base/memory/scoped_ptr.h"
10 #include "content/public/browser/browser_main_parts.h"
12 namespace base {
13 class Thread;
16 namespace content {
17 class ShellBrowserContext;
18 struct MainFunctionParams;
21 namespace net {
22 class NetLog;
25 namespace views {
26 namespace corewm {
27 class WMState;
31 namespace ash {
32 namespace shell {
34 class ShellDelegateImpl;
35 class WindowWatcher;
37 class ShellBrowserMainParts : public content::BrowserMainParts {
38 public:
39 explicit ShellBrowserMainParts(
40 const content::MainFunctionParams& parameters);
41 virtual ~ShellBrowserMainParts();
43 // Overridden from content::BrowserMainParts:
44 virtual void PreMainMessageLoopStart() OVERRIDE;
45 virtual void PostMainMessageLoopStart() OVERRIDE;
46 virtual void ToolkitInitialized() OVERRIDE;
47 virtual void PreMainMessageLoopRun() OVERRIDE;
48 virtual bool MainMessageLoopRun(int* result_code) OVERRIDE;
49 virtual void PostMainMessageLoopRun() OVERRIDE;
51 content::ShellBrowserContext* browser_context() {
52 return browser_context_.get();
55 private:
56 scoped_ptr<net::NetLog> net_log_;
57 scoped_ptr<content::ShellBrowserContext> browser_context_;
58 scoped_ptr<ash::shell::WindowWatcher> window_watcher_;
59 ShellDelegateImpl* delegate_; // owned by Shell
60 scoped_ptr<views::corewm::WMState> wm_state_;
62 DISALLOW_COPY_AND_ASSIGN(ShellBrowserMainParts);
65 } // namespace shell
66 } // namespace ash
68 #endif // ASH_SHELL_CONTENT_CLIENT_EXAMPLES_BROWSER_MAIN_PARTS_H_