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 #include "chrome/browser/extensions/shell_window_registry.h" | 5 #include "chrome/browser/extensions/shell_window_registry.h" |
6 #include "chrome/browser/profiles/profile_dependency_manager.h" | 6 #include "chrome/browser/profiles/profile_dependency_manager.h" |
7 #include "chrome/browser/ui/extensions/shell_window.h" | 7 #include "chrome/browser/ui/extensions/shell_window.h" |
8 #include "chrome/common/extensions/extension.h" | 8 #include "chrome/common/extensions/extension.h" |
9 #include "content/public/browser/render_view_host.h" | 9 #include "content/public/browser/render_view_host.h" |
10 #include "content/public/browser/web_contents.h" | 10 #include "content/public/browser/web_contents.h" |
11 | 11 |
| 12 namespace extensions { |
| 13 |
12 ShellWindowRegistry::ShellWindowRegistry() {} | 14 ShellWindowRegistry::ShellWindowRegistry() {} |
13 | 15 |
14 ShellWindowRegistry::~ShellWindowRegistry() {} | 16 ShellWindowRegistry::~ShellWindowRegistry() {} |
15 | 17 |
16 // static | 18 // static |
17 ShellWindowRegistry* ShellWindowRegistry::Get(Profile* profile) { | 19 ShellWindowRegistry* ShellWindowRegistry::Get(Profile* profile) { |
18 return Factory::GetForProfile(profile); | 20 return Factory::GetForProfile(profile); |
19 } | 21 } |
20 | 22 |
21 void ShellWindowRegistry::AddShellWindow(ShellWindow* shell_window) { | 23 void ShellWindowRegistry::AddShellWindow(ShellWindow* shell_window) { |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
96 return new ShellWindowRegistry(); | 98 return new ShellWindowRegistry(); |
97 } | 99 } |
98 | 100 |
99 bool ShellWindowRegistry::Factory::ServiceIsCreatedWithProfile() { | 101 bool ShellWindowRegistry::Factory::ServiceIsCreatedWithProfile() { |
100 return true; | 102 return true; |
101 } | 103 } |
102 | 104 |
103 bool ShellWindowRegistry::Factory::ServiceIsNULLWhileTesting() { | 105 bool ShellWindowRegistry::Factory::ServiceIsNULLWhileTesting() { |
104 return false; | 106 return false; |
105 } | 107 } |
| 108 |
| 109 } // namespace extensions |
OLD | NEW |