| 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_CHROME_MANIFEST_PARSER_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_CHROME_MANIFEST_PARSER_H_ |
| 6 #define CHROME_BROWSER_EXTENSIONS_CHROME_MANIFEST_PARSER_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_CHROME_MANIFEST_PARSER_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "chrome/browser/extensions/api/profile_keyed_api_factory.h" | 9 #include "chrome/browser/extensions/api/profile_keyed_api_factory.h" |
| 10 #include "content/public/browser/notification_observer.h" | 10 #include "content/public/browser/notification_observer.h" |
| (...skipping 14 matching lines...) Expand all Loading... |
| 25 | 25 |
| 26 // content::NotificationObserver implementation. | 26 // content::NotificationObserver implementation. |
| 27 virtual void Observe(int type, | 27 virtual void Observe(int type, |
| 28 const content::NotificationSource& source, | 28 const content::NotificationSource& source, |
| 29 const content::NotificationDetails& details) OVERRIDE; | 29 const content::NotificationDetails& details) OVERRIDE; |
| 30 | 30 |
| 31 private: | 31 private: |
| 32 friend class ProfileKeyedAPIFactory<ChromeManifestParser>; | 32 friend class ProfileKeyedAPIFactory<ChromeManifestParser>; |
| 33 | 33 |
| 34 // ProfileKeyedAPI implementation. | 34 // ProfileKeyedAPI implementation. |
| 35 static const char* service_name() { | 35 static const char* service_name() { return "ChromeManifestParser"; } |
| 36 return "ChromeManifestParser"; | |
| 37 } | |
| 38 static const bool kServiceIsNULLWhileTesting = true; | |
| 39 | 36 |
| 40 Profile* const profile_; | 37 Profile* const profile_; |
| 41 content::NotificationRegistrar registrar_; | 38 content::NotificationRegistrar registrar_; |
| 42 | 39 |
| 43 DISALLOW_COPY_AND_ASSIGN(ChromeManifestParser); | 40 DISALLOW_COPY_AND_ASSIGN(ChromeManifestParser); |
| 44 }; | 41 }; |
| 45 | 42 |
| 46 } // namespace extensions | 43 } // namespace extensions |
| 47 | 44 |
| 48 #endif // CHROME_BROWSER_EXTENSIONS_CHROME_MANIFEST_PARSER_H_ | 45 #endif // CHROME_BROWSER_EXTENSIONS_CHROME_MANIFEST_PARSER_H_ |
| OLD | NEW |