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 CHROME_BROWSER_UI_ASH_CHROME_SHELL_CONTENT_STATE_H_ | 5 #ifndef CHROME_BROWSER_UI_ASH_CHROME_SHELL_CONTENT_STATE_H_ |
6 #define CHROME_BROWSER_UI_ASH_CHROME_SHELL_CONTENT_STATE_H_ | 6 #define CHROME_BROWSER_UI_ASH_CHROME_SHELL_CONTENT_STATE_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 #include "base/macros.h" |
10 | 10 |
11 class ChromeShellContentState : public ash::ShellContentState { | 11 class ChromeShellContentState : public ash::ShellContentState { |
12 public: | 12 public: |
13 ChromeShellContentState(); | 13 ChromeShellContentState(); |
| 14 ~ChromeShellContentState() override; |
14 | 15 |
15 private: | 16 static ChromeShellContentState* GetInstance(); |
16 ~ChromeShellContentState() override; | |
17 | 17 |
18 // Overridden from ash::ShellContentState: | 18 // Overridden from ash::ShellContentState: |
19 content::BrowserContext* GetActiveBrowserContext() override; | 19 content::BrowserContext* GetActiveBrowserContext() override; |
20 content::BrowserContext* GetBrowserContextByIndex( | 20 content::BrowserContext* GetBrowserContextByIndex( |
21 ash::UserIndex index) override; | 21 ash::UserIndex index) override; |
22 content::BrowserContext* GetBrowserContextForWindow( | 22 content::BrowserContext* GetBrowserContextForWindow( |
23 aura::Window* window) override; | 23 aura::Window* window) override; |
24 content::BrowserContext* GetUserPresentingBrowserContextForWindow( | 24 content::BrowserContext* GetUserPresentingBrowserContextForWindow( |
25 aura::Window* window) override; | 25 aura::Window* window) override; |
26 | 26 |
| 27 private: |
27 DISALLOW_COPY_AND_ASSIGN(ChromeShellContentState); | 28 DISALLOW_COPY_AND_ASSIGN(ChromeShellContentState); |
28 }; | 29 }; |
29 | 30 |
30 #endif // CHROME_BROWSER_UI_ASH_CHROME_SHELL_CONTENT_STATE_H_ | 31 #endif // CHROME_BROWSER_UI_ASH_CHROME_SHELL_CONTENT_STATE_H_ |
OLD | NEW |