OLD | NEW |
(Empty) | |
| 1 // Copyright 2015 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 |
| 5 #ifndef COMPONENTS_FRAMELET_BROWSER_FRAMELET_GUEST_H_ |
| 6 #define COMPONENTS_FRAMELET_BROWSER_FRAMELET_GUEST_H_ |
| 7 |
| 8 #include "components/guest_view/browser/guest_view.h" |
| 9 |
| 10 namespace guest_view { |
| 11 |
| 12 class FrameletGuest : public guest_view::GuestView<FrameletGuest> { |
| 13 public: |
| 14 static const char Type[]; |
| 15 |
| 16 static GuestViewBase* Create(content::WebContents* owner_web_contents); |
| 17 |
| 18 // content::WebContentsDelegate implementation. |
| 19 bool HandleContextMenu(const content::ContextMenuParams& params) override; |
| 20 |
| 21 // GuestViewBase implementation. |
| 22 const char* GetAPINamespace() const override; |
| 23 int GetTaskPrefix() const override; |
| 24 void CreateWebContents( |
| 25 const base::DictionaryValue& create_params, |
| 26 const GuestViewBase::WebContentsCreatedCallback& callback) override; |
| 27 void DidAttachToEmbedder() override; |
| 28 |
| 29 private: |
| 30 FrameletGuest(content::WebContents* owner_web_contents); |
| 31 ~FrameletGuest() override; |
| 32 |
| 33 GURL url_; |
| 34 |
| 35 DISALLOW_COPY_AND_ASSIGN(FrameletGuest); |
| 36 }; |
| 37 |
| 38 } // namespace guest_view |
| 39 #endif // COMPONENTS_FRAMELET_BROWSER_FRAMELET_GUEST_H_ |
OLD | NEW |