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 // Defines the Chrome Extensions WebNavigation API functions for observing and | 5 // Defines the Chrome Extensions WebNavigation API functions for observing and |
6 // intercepting navigation events, as specified in the extension JSON API. | 6 // intercepting navigation events, as specified in the extension JSON API. |
7 | 7 |
8 #ifndef CHROME_BROWSER_EXTENSIONS_API_WEB_NAVIGATION_WEB_NAVIGATION_API_H_ | 8 #ifndef CHROME_BROWSER_EXTENSIONS_API_WEB_NAVIGATION_WEB_NAVIGATION_API_H_ |
9 #define CHROME_BROWSER_EXTENSIONS_API_WEB_NAVIGATION_WEB_NAVIGATION_API_H_ | 9 #define CHROME_BROWSER_EXTENSIONS_API_WEB_NAVIGATION_WEB_NAVIGATION_API_H_ |
10 | 10 |
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
203 | 203 |
204 content::BrowserContext* browser_context_; | 204 content::BrowserContext* browser_context_; |
205 | 205 |
206 // BrowserContextKeyedAPI implementation. | 206 // BrowserContextKeyedAPI implementation. |
207 static const char* service_name() { | 207 static const char* service_name() { |
208 return "WebNavigationAPI"; | 208 return "WebNavigationAPI"; |
209 } | 209 } |
210 static const bool kServiceIsNULLWhileTesting = true; | 210 static const bool kServiceIsNULLWhileTesting = true; |
211 | 211 |
212 // Created lazily upon OnListenerAdded. | 212 // Created lazily upon OnListenerAdded. |
213 scoped_ptr<WebNavigationEventRouter> web_navigation_event_router_; | 213 std::unique_ptr<WebNavigationEventRouter> web_navigation_event_router_; |
214 | 214 |
215 DISALLOW_COPY_AND_ASSIGN(WebNavigationAPI); | 215 DISALLOW_COPY_AND_ASSIGN(WebNavigationAPI); |
216 }; | 216 }; |
217 | 217 |
218 } // namespace extensions | 218 } // namespace extensions |
219 | 219 |
220 #endif // CHROME_BROWSER_EXTENSIONS_API_WEB_NAVIGATION_WEB_NAVIGATION_API_H_ | 220 #endif // CHROME_BROWSER_EXTENSIONS_API_WEB_NAVIGATION_WEB_NAVIGATION_API_H_ |
OLD | NEW |