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 CHROME_BROWSER_EXTENSIONS_API_AUTOTEST_PRIVATE_AUTOTEST_PRIVATE_API_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_AUTOTEST_PRIVATE_AUTOTEST_PRIVATE_API_H_ |
6 #define CHROME_BROWSER_EXTENSIONS_API_AUTOTEST_PRIVATE_AUTOTEST_PRIVATE_API_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_API_AUTOTEST_PRIVATE_AUTOTEST_PRIVATE_API_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
104 | 104 |
105 // BrowserContextKeyedAPI implementation. | 105 // BrowserContextKeyedAPI implementation. |
106 static const char* service_name() { return "AutotestPrivateAPI"; } | 106 static const char* service_name() { return "AutotestPrivateAPI"; } |
107 static const bool kServiceIsNULLWhileTesting = true; | 107 static const bool kServiceIsNULLWhileTesting = true; |
108 static const bool kServiceRedirectedInIncognito = true; | 108 static const bool kServiceRedirectedInIncognito = true; |
109 | 109 |
110 bool test_mode_; // true for ExtensionApiTest.AutotestPrivate browser test. | 110 bool test_mode_; // true for ExtensionApiTest.AutotestPrivate browser test. |
111 }; | 111 }; |
112 | 112 |
113 template <> | 113 template <> |
114 BrowserContextKeyedService* | 114 KeyedService* |
115 BrowserContextKeyedAPIFactory<AutotestPrivateAPI>::BuildServiceInstanceFor( | 115 BrowserContextKeyedAPIFactory<AutotestPrivateAPI>::BuildServiceInstanceFor( |
116 content::BrowserContext* context) const; | 116 content::BrowserContext* context) const; |
117 | 117 |
118 } // namespace extensions | 118 } // namespace extensions |
119 | 119 |
120 #endif // CHROME_BROWSER_EXTENSIONS_API_AUTOTEST_PRIVATE_AUTOTEST_PRIVATE_API_H
_ | 120 #endif // CHROME_BROWSER_EXTENSIONS_API_AUTOTEST_PRIVATE_AUTOTEST_PRIVATE_API_H
_ |
OLD | NEW |