| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 EXTENSIONS_BROWSER_API_EXTENSIONS_API_CLIENT_H_ | 5 #ifndef EXTENSIONS_BROWSER_API_EXTENSIONS_API_CLIENT_H_ |
| 6 #define EXTENSIONS_BROWSER_API_EXTENSIONS_API_CLIENT_H_ | 6 #define EXTENSIONS_BROWSER_API_EXTENSIONS_API_CLIENT_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 | 9 |
| 10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 91 // Creates a delegate for WebRequestEventRouter. | 91 // Creates a delegate for WebRequestEventRouter. |
| 92 virtual WebRequestEventRouterDelegate* CreateWebRequestEventRouterDelegate() | 92 virtual WebRequestEventRouterDelegate* CreateWebRequestEventRouterDelegate() |
| 93 const; | 93 const; |
| 94 | 94 |
| 95 // TODO(wjmaclean): Remove this when (if) ContentRulesRegistry code moves | 95 // TODO(wjmaclean): Remove this when (if) ContentRulesRegistry code moves |
| 96 // to extensions/browser/api. | 96 // to extensions/browser/api. |
| 97 virtual scoped_refptr<ContentRulesRegistry> CreateContentRulesRegistry( | 97 virtual scoped_refptr<ContentRulesRegistry> CreateContentRulesRegistry( |
| 98 content::BrowserContext* browser_context, | 98 content::BrowserContext* browser_context, |
| 99 RulesCacheDelegate* cache_delegate) const; | 99 RulesCacheDelegate* cache_delegate) const; |
| 100 | 100 |
| 101 // Creates a DevicePermissionsPrompt appropriate for the embedder. |
| 102 virtual scoped_ptr<DevicePermissionsPrompt> CreateDevicePermissionsPrompt( |
| 103 content::WebContents* web_contents) const; |
| 104 |
| 101 // NOTE: If this interface gains too many methods (perhaps more than 20) it | 105 // NOTE: If this interface gains too many methods (perhaps more than 20) it |
| 102 // should be split into one interface per API. | 106 // should be split into one interface per API. |
| 103 }; | 107 }; |
| 104 | 108 |
| 105 } // namespace extensions | 109 } // namespace extensions |
| 106 | 110 |
| 107 #endif // EXTENSIONS_BROWSER_API_EXTENSIONS_API_CLIENT_H_ | 111 #endif // EXTENSIONS_BROWSER_API_EXTENSIONS_API_CLIENT_H_ |
| OLD | NEW |