guest_view_manager_factory.h 801 B

1234567891011121314151617181920212223242526272829303132
  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
  3. // found in the LICENSE file.
  4. #ifndef COMPONENTS_GUEST_VIEW_BROWSER_GUEST_VIEW_MANAGER_FACTORY_H_
  5. #define COMPONENTS_GUEST_VIEW_BROWSER_GUEST_VIEW_MANAGER_FACTORY_H_
  6. #include <memory>
  7. namespace content {
  8. class BrowserContext;
  9. }
  10. namespace guest_view {
  11. class GuestViewManager;
  12. class GuestViewManagerDelegate;
  13. class GuestViewManagerFactory {
  14. public:
  15. virtual GuestViewManager* CreateGuestViewManager(
  16. content::BrowserContext* context,
  17. std::unique_ptr<GuestViewManagerDelegate> delegate) = 0;
  18. protected:
  19. virtual ~GuestViewManagerFactory() {}
  20. };
  21. } // namespace guest_view
  22. #endif // COMPONENTS_GUEST_VIEW_BROWSER_GUEST_VIEW_MANAGER_FACTORY_H_