OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 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_BROWSER_EXTENSIONS_CHROME_EXTENSIONS_BROWSER_CLIENT_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_CHROME_EXTENSIONS_BROWSER_CLIENT_H_ |
6 #define CHROME_BROWSER_EXTENSIONS_CHROME_EXTENSIONS_BROWSER_CLIENT_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_CHROME_EXTENSIONS_BROWSER_CLIENT_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
94 content::BrowserContext* context) const OVERRIDE; | 94 content::BrowserContext* context) const OVERRIDE; |
95 virtual ComponentExtensionResourceManager* | 95 virtual ComponentExtensionResourceManager* |
96 GetComponentExtensionResourceManager() OVERRIDE; | 96 GetComponentExtensionResourceManager() OVERRIDE; |
97 | 97 |
98 private: | 98 private: |
99 friend struct base::DefaultLazyInstanceTraits<ChromeExtensionsBrowserClient>; | 99 friend struct base::DefaultLazyInstanceTraits<ChromeExtensionsBrowserClient>; |
100 | 100 |
101 // Observer for Chrome-specific notifications. | 101 // Observer for Chrome-specific notifications. |
102 ChromeNotificationObserver notification_observer_; | 102 ChromeNotificationObserver notification_observer_; |
103 | 103 |
104 #if defined(ENABLE_EXTENSIONS) | |
105 // Client for API implementations. | 104 // Client for API implementations. |
106 scoped_ptr<ChromeExtensionsAPIClient> api_client_; | 105 scoped_ptr<ChromeExtensionsAPIClient> api_client_; |
107 #endif | |
108 | 106 |
109 scoped_ptr<ChromeComponentExtensionResourceManager> resource_manager_; | 107 scoped_ptr<ChromeComponentExtensionResourceManager> resource_manager_; |
110 | 108 |
111 DISALLOW_COPY_AND_ASSIGN(ChromeExtensionsBrowserClient); | 109 DISALLOW_COPY_AND_ASSIGN(ChromeExtensionsBrowserClient); |
112 }; | 110 }; |
113 | 111 |
114 } // namespace extensions | 112 } // namespace extensions |
115 | 113 |
116 #endif // CHROME_BROWSER_EXTENSIONS_CHROME_EXTENSIONS_BROWSER_CLIENT_H_ | 114 #endif // CHROME_BROWSER_EXTENSIONS_CHROME_EXTENSIONS_BROWSER_CLIENT_H_ |
OLD | NEW |