OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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_TEST_BASE_TESTING_BROWSER_PROCESS_PLATFORM_PART_H_ | 5 #ifndef CHROME_TEST_BASE_TESTING_BROWSER_PROCESS_PLATFORM_PART_H_ |
6 #define CHROME_TEST_BASE_TESTING_BROWSER_PROCESS_PLATFORM_PART_H_ | 6 #define CHROME_TEST_BASE_TESTING_BROWSER_PROCESS_PLATFORM_PART_H_ |
7 | 7 |
8 #if defined(OS_WIN) && defined(USE_AURA) | |
9 #include "chrome/browser/browser_process_platform_part_aurawin.h" | |
10 #else | |
11 #include "chrome/browser/browser_process_platform_part.h" | 8 #include "chrome/browser/browser_process_platform_part.h" |
12 #endif | |
13 | 9 |
| 10 // A TestingBrowserProcessPlatformPart is essentially a |
| 11 // BrowserProcessPlatformPart except it doesn't have an OomPriorityManager on |
| 12 // Chrome OS. |
14 class TestingBrowserProcessPlatformPart : public BrowserProcessPlatformPart { | 13 class TestingBrowserProcessPlatformPart : public BrowserProcessPlatformPart { |
15 public: | 14 public: |
16 TestingBrowserProcessPlatformPart(); | 15 TestingBrowserProcessPlatformPart(); |
17 virtual ~TestingBrowserProcessPlatformPart(); | 16 virtual ~TestingBrowserProcessPlatformPart(); |
18 | 17 |
| 18 #if defined(OS_CHROMEOS) |
| 19 // Overridden from BrowserProcessPlatformPart: |
| 20 virtual chromeos::OomPriorityManager* oom_priority_manager() OVERRIDE; |
| 21 #endif |
| 22 |
19 private: | 23 private: |
20 DISALLOW_COPY_AND_ASSIGN(TestingBrowserProcessPlatformPart); | 24 DISALLOW_COPY_AND_ASSIGN(TestingBrowserProcessPlatformPart); |
21 }; | 25 }; |
22 | 26 |
23 #endif // CHROME_TEST_BASE_TESTING_BROWSER_PROCESS_PLATFORM_PART_H_ | 27 #endif // CHROME_TEST_BASE_TESTING_BROWSER_PROCESS_PLATFORM_PART_H_ |
OLD | NEW |