| OLD | NEW |
| (Empty) |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_FILE_HANDLERS_FILE_HANDLERS_API_H_ | |
| 6 #define CHROME_BROWSER_EXTENSIONS_API_FILE_HANDLERS_FILE_HANDLERS_API_H_ | |
| 7 | |
| 8 #include "chrome/browser/extensions/api/profile_keyed_api_factory.h" | |
| 9 | |
| 10 class Profile; | |
| 11 | |
| 12 namespace extensions { | |
| 13 | |
| 14 class FileHandlersAPI : public ProfileKeyedAPI { | |
| 15 public: | |
| 16 explicit FileHandlersAPI(Profile* profile); | |
| 17 virtual ~FileHandlersAPI(); | |
| 18 | |
| 19 // ProfileKeyedAPI implementation. | |
| 20 static ProfileKeyedAPIFactory<FileHandlersAPI>* GetFactoryInstance(); | |
| 21 | |
| 22 private: | |
| 23 friend class ProfileKeyedAPIFactory<FileHandlersAPI>; | |
| 24 | |
| 25 // ProfileKeyedAPI implementation. | |
| 26 static const char* service_name() { | |
| 27 return "FileHandlersAPI"; | |
| 28 } | |
| 29 static const bool kServiceIsNULLWhileTesting = true; | |
| 30 }; | |
| 31 | |
| 32 } // namespace extensions | |
| 33 | |
| 34 #endif // CHROME_BROWSER_EXTENSIONS_API_FILE_HANDLERS_FILE_HANDLERS_API_H_ | |
| OLD | NEW |