blob: f272ff8963e7750beec641262424bdec995237ee (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef UI_VIEWS_EXAMPLES_CONTENT_CLIENT_EXAMPLES_BROWSER_MAIN_PARTS_H_
#define UI_VIEWS_EXAMPLES_CONTENT_CLIENT_EXAMPLES_BROWSER_MAIN_PARTS_H_
#include "base/basictypes.h"
#include "base/memory/scoped_ptr.h"
#include "content/public/browser/browser_main_parts.h"
namespace content {
class ShellBrowserContext;
struct MainFunctionParams;
}
namespace shell {
class MinimalShell;
}
namespace views {
class ViewsDelegate;
namespace examples {
class ExamplesBrowserMainParts : public content::BrowserMainParts {
public:
explicit ExamplesBrowserMainParts(
const content::MainFunctionParams& parameters);
virtual ~ExamplesBrowserMainParts();
// Overridden from content::BrowserMainParts:
virtual void PreMainMessageLoopRun() OVERRIDE;
virtual bool MainMessageLoopRun(int* result_code) OVERRIDE;
virtual void PostMainMessageLoopRun() OVERRIDE;
content::ShellBrowserContext* browser_context() {
return browser_context_.get();
}
private:
scoped_ptr<content::ShellBrowserContext> browser_context_;
scoped_ptr<ViewsDelegate> views_delegate_;
#if defined(OS_CHROMEOS)
// Enable a minimal set of views::corewm to be initialized.
scoped_ptr<shell::MinimalShell> minimal_shell_;
#endif
DISALLOW_COPY_AND_ASSIGN(ExamplesBrowserMainParts);
};
} // namespace examples
} // namespace views
#endif // UI_VIEWS_EXAMPLES_CONTENT_CLIENT_EXAMPLES_BROWSER_MAIN_PARTS_H_
|