OLD | NEW |
| (Empty) |
1 // Copyright 2014 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. | |
4 | |
5 #ifndef UI_VIEWS_EXAMPLES_CONTENT_CLIENT_EXAMPLES_MAIN_DELEGATE_H_ | |
6 #define UI_VIEWS_EXAMPLES_CONTENT_CLIENT_EXAMPLES_MAIN_DELEGATE_H_ | |
7 | |
8 #include <string> | |
9 | |
10 #include "base/macros.h" | |
11 #include "base/memory/scoped_ptr.h" | |
12 #include "content/public/app/content_main_delegate.h" | |
13 #include "content/shell/common/shell_content_client.h" | |
14 | |
15 namespace views { | |
16 namespace examples { | |
17 | |
18 class ExamplesContentBrowserClient; | |
19 | |
20 class ExamplesMainDelegate : public content::ContentMainDelegate { | |
21 public: | |
22 ExamplesMainDelegate(); | |
23 virtual ~ExamplesMainDelegate(); | |
24 | |
25 // content::ContentMainDelegate implementation | |
26 virtual bool BasicStartupComplete(int* exit_code) OVERRIDE; | |
27 virtual void PreSandboxStartup() OVERRIDE; | |
28 virtual content::ContentBrowserClient* CreateContentBrowserClient() OVERRIDE; | |
29 | |
30 private: | |
31 scoped_ptr<ExamplesContentBrowserClient> browser_client_; | |
32 content::ShellContentClient content_client_; | |
33 | |
34 DISALLOW_COPY_AND_ASSIGN(ExamplesMainDelegate); | |
35 }; | |
36 | |
37 } // namespace examples | |
38 } // namespace views | |
39 | |
40 #endif // UI_VIEWS_EXAMPLES_CONTENT_CLIENT_EXAMPLES_MAIN_DELEGATE_H_ | |
OLD | NEW |