Chromium Code Reviews| 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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 64 // Denies the embedding requested by the <appview> specified by | 64 // Denies the embedding requested by the <appview> specified by |
| 65 // |guest_instance_id|. Returns true if the operation completes successfully. | 65 // |guest_instance_id|. Returns true if the operation completes successfully. |
| 66 virtual bool AppViewInternalDenyRequest( | 66 virtual bool AppViewInternalDenyRequest( |
| 67 content::BrowserContext* browser_context, | 67 content::BrowserContext* browser_context, |
| 68 int guest_instance_id, | 68 int guest_instance_id, |
| 69 const std::string& guest_extension_id); | 69 const std::string& guest_extension_id); |
| 70 | 70 |
| 71 // Returns the HidService instance for this embedder. | 71 // Returns the HidService instance for this embedder. |
| 72 virtual device::HidService* GetHidService(); | 72 virtual device::HidService* GetHidService(); |
| 73 | 73 |
| 74 virtual void RegisterGuestViewType() {} | |
|
Ken Rockot(use gerrit already)
2014/08/07 22:37:40
nit: Should probably pluralize this, i.e. Register
Xi Han
2014/08/08 14:12:11
Done.
| |
| 75 | |
| 74 // NOTE: If this interface gains too many methods (perhaps more than 20) it | 76 // NOTE: If this interface gains too many methods (perhaps more than 20) it |
| 75 // should be split into one interface per API. | 77 // should be split into one interface per API. |
| 76 }; | 78 }; |
| 77 | 79 |
| 78 } // namespace extensions | 80 } // namespace extensions |
| 79 | 81 |
| 80 #endif // EXTENSIONS_BROWSER_API_EXTENSIONS_API_CLIENT_H_ | 82 #endif // EXTENSIONS_BROWSER_API_EXTENSIONS_API_CLIENT_H_ |
| OLD | NEW |