OLD | NEW |
(Empty) | |
| 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 |
| 5 #include "chrome/browser/guest_view/app_view/app_view_guest.h" |
| 6 |
| 7 // static |
| 8 const char AppViewGuest::Type[] = "appview"; |
| 9 |
| 10 AppViewGuest::AppViewGuest(content::BrowserContext* browser_context, |
| 11 int guest_instance_id) |
| 12 : GuestView<AppViewGuest>(browser_context, guest_instance_id) { |
| 13 } |
| 14 |
| 15 AppViewGuest::~AppViewGuest() { |
| 16 } |
| 17 |
| 18 void AppViewGuest::CreateWebContents( |
| 19 const std::string& embedder_extension_id, |
| 20 int embedder_render_process_id, |
| 21 const base::DictionaryValue& create_params, |
| 22 const WebContentsCreatedCallback& callback) { |
| 23 // TODO(fsamuel): Create a WebContents with the appropriate SiteInstance here. |
| 24 // After the WebContents has been created, call the |callback|. |
| 25 // callback.Run(new_web_contents); |
| 26 } |
| 27 |
| 28 void AppViewGuest::DidAttachToEmbedder() { |
| 29 // This is called after the guest process has been attached to a host |
| 30 // element. This means that the host element knows how to route input |
| 31 // events to the guest, and the guest knows how to get frames to the |
| 32 // embedder. |
| 33 // TODO(fsamuel): Perform the initial navigation here. |
| 34 } |
OLD | NEW |