| 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 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 85 WebViewGuest* web_view_guest) const; | 85 WebViewGuest* web_view_guest) const; |
| 86 | 86 |
| 87 // Returns a delegate for some of WebViewPermissionHelper's behavior. The | 87 // Returns a delegate for some of WebViewPermissionHelper's behavior. The |
| 88 // caller owns the returned WebViewPermissionHelperDelegate. | 88 // caller owns the returned WebViewPermissionHelperDelegate. |
| 89 virtual WebViewPermissionHelperDelegate* | 89 virtual WebViewPermissionHelperDelegate* |
| 90 CreateWebViewPermissionHelperDelegate ( | 90 CreateWebViewPermissionHelperDelegate ( |
| 91 WebViewPermissionHelper* web_view_permission_helper) const; | 91 WebViewPermissionHelper* web_view_permission_helper) const; |
| 92 | 92 |
| 93 virtual void RegisterGuestViewTypes() {} | 93 virtual void RegisterGuestViewTypes() {} |
| 94 | 94 |
| 95 // Returns whether requests to this URL must not be modified/canceled by |
| 96 // extensions, e.g. because it is targeted to the webstore to check for |
| 97 // updates, extension blacklisting, etc. |
| 98 virtual bool MustNotBeModifiedURL(const GURL& url); |
| 99 |
| 100 // Returns kWebStoreAppId. |
| 101 virtual const std::string WebStoreAppId(); |
| 102 |
| 95 // NOTE: If this interface gains too many methods (perhaps more than 20) it | 103 // NOTE: If this interface gains too many methods (perhaps more than 20) it |
| 96 // should be split into one interface per API. | 104 // should be split into one interface per API. |
| 97 }; | 105 }; |
| 98 | 106 |
| 99 } // namespace extensions | 107 } // namespace extensions |
| 100 | 108 |
| 101 #endif // EXTENSIONS_BROWSER_API_EXTENSIONS_API_CLIENT_H_ | 109 #endif // EXTENSIONS_BROWSER_API_EXTENSIONS_API_CLIENT_H_ |
| OLD | NEW |