Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(58)

Side by Side Diff: components/framelet/browser/framelet_guest.h

Issue 1529653002: Prototype FrameletGuest/Container Class stubs. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « components/framelet/browser/BUILD.gn ('k') | components/framelet/browser/framelet_guest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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_
OLDNEW
« no previous file with comments | « components/framelet/browser/BUILD.gn ('k') | components/framelet/browser/framelet_guest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698