OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 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 UI_VIEWS_EXAMPLES_CONTENT_CLIENT_EXAMPLES_CONTENT_BROWSER_CLIENT_H_ | 5 #ifndef UI_VIEWS_EXAMPLES_CONTENT_CLIENT_EXAMPLES_CONTENT_BROWSER_CLIENT_H_ |
6 #define UI_VIEWS_EXAMPLES_CONTENT_CLIENT_EXAMPLES_CONTENT_BROWSER_CLIENT_H_ | 6 #define UI_VIEWS_EXAMPLES_CONTENT_CLIENT_EXAMPLES_CONTENT_BROWSER_CLIENT_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 | 10 |
11 #include "base/compiler_specific.h" | 11 #include "base/compiler_specific.h" |
12 #include "base/memory/scoped_ptr.h" | 12 #include "base/memory/scoped_ptr.h" |
13 #include "content/public/browser/content_browser_client.h" | 13 #include "content/public/browser/content_browser_client.h" |
14 | 14 |
15 namespace content { | 15 namespace content { |
16 class ShellBrowserContext; | 16 class ShellBrowserContext; |
17 class ShellBrowserMainParts; | |
18 } | 17 } |
19 | 18 |
20 namespace views { | 19 namespace views { |
21 namespace examples { | 20 namespace examples { |
22 | 21 |
23 class ExamplesBrowserMainParts; | 22 class ExamplesBrowserMainParts; |
24 | 23 |
25 class ExamplesContentBrowserClient : public content::ContentBrowserClient { | 24 class ExamplesContentBrowserClient : public content::ContentBrowserClient { |
26 public: | 25 public: |
27 ExamplesContentBrowserClient(); | 26 ExamplesContentBrowserClient(); |
28 virtual ~ExamplesContentBrowserClient(); | 27 virtual ~ExamplesContentBrowserClient(); |
29 | 28 |
30 // Overridden from content::ContentBrowserClient: | 29 // Overridden from content::ContentBrowserClient: |
31 virtual content::BrowserMainParts* CreateBrowserMainParts( | 30 virtual content::BrowserMainParts* CreateBrowserMainParts( |
32 const content::MainFunctionParams& parameters) OVERRIDE; | 31 const content::MainFunctionParams& parameters) OVERRIDE; |
33 | 32 |
34 content::ShellBrowserContext* browser_context(); | 33 content::ShellBrowserContext* browser_context(); |
35 | 34 |
36 private: | 35 private: |
37 ExamplesBrowserMainParts* examples_browser_main_parts_; | 36 ExamplesBrowserMainParts* examples_browser_main_parts_; |
38 | 37 |
39 DISALLOW_COPY_AND_ASSIGN(ExamplesContentBrowserClient); | 38 DISALLOW_COPY_AND_ASSIGN(ExamplesContentBrowserClient); |
40 }; | 39 }; |
41 | 40 |
42 } // namespace examples | 41 } // namespace examples |
43 } // namespace views | 42 } // namespace views |
44 | 43 |
45 #endif // UI_VIEWS_EXAMPLES_CONTENT_CLIENT_EXAMPLES_CONTENT_BROWSER_CLIENT_H_ | 44 #endif // UI_VIEWS_EXAMPLES_CONTENT_CLIENT_EXAMPLES_CONTENT_BROWSER_CLIENT_H_ |
OLD | NEW |