OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 ASH_SHELL_CONTENT_SHELL_CONTENT_STATE_IMPL_H_ | 5 #ifndef ASH_SHELL_CONTENT_SHELL_CONTENT_STATE_IMPL_H_ |
6 #define ASH_SHELL_CONTENT_SHELL_CONTENT_STATE_IMPL_H_ | 6 #define ASH_SHELL_CONTENT_SHELL_CONTENT_STATE_IMPL_H_ |
7 | 7 |
8 #include "ash/content/shell_content_state.h" | 8 #include "ash/content/shell_content_state.h" |
| 9 #include "base/macros.h" |
9 | 10 |
10 namespace ash { | 11 namespace ash { |
11 | 12 |
12 class ShellContentStateImpl : public ShellContentState { | 13 class ShellContentStateImpl : public ShellContentState { |
13 public: | 14 public: |
14 explicit ShellContentStateImpl(content::BrowserContext* context); | 15 explicit ShellContentStateImpl(content::BrowserContext* context); |
15 | 16 |
16 private: | 17 private: |
17 ~ShellContentStateImpl() override; | 18 ~ShellContentStateImpl() override; |
18 | 19 |
19 // Overridden from ShellContentState: | 20 // Overridden from ShellContentState: |
20 content::BrowserContext* GetActiveBrowserContext() override; | 21 content::BrowserContext* GetActiveBrowserContext() override; |
21 content::BrowserContext* GetBrowserContextByIndex(UserIndex index) override; | 22 content::BrowserContext* GetBrowserContextByIndex(UserIndex index) override; |
22 content::BrowserContext* GetBrowserContextForWindow( | 23 content::BrowserContext* GetBrowserContextForWindow( |
23 aura::Window* window) override; | 24 aura::Window* window) override; |
24 content::BrowserContext* GetUserPresentingBrowserContextForWindow( | 25 content::BrowserContext* GetUserPresentingBrowserContextForWindow( |
25 aura::Window* window) override; | 26 aura::Window* window) override; |
26 | 27 |
27 content::BrowserContext* browser_context_; | 28 content::BrowserContext* browser_context_; |
28 | 29 |
29 DISALLOW_COPY_AND_ASSIGN(ShellContentStateImpl); | 30 DISALLOW_COPY_AND_ASSIGN(ShellContentStateImpl); |
30 }; | 31 }; |
31 | 32 |
32 } // namespace ash | 33 } // namespace ash |
33 | 34 |
34 #endif // ASH_SHELL_CONTENT_SHELL_CONTENT_STATE_IMPL_H_ | 35 #endif // ASH_SHELL_CONTENT_SHELL_CONTENT_STATE_IMPL_H_ |
OLD | NEW |