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

Unified Diff: chrome/browser/guest_view/app_view/app_view_guest.cc

Issue 353013007: Implement <appview> skeleton. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@app_view_skeleton
Patch Set: Fixed PermissionsTest unit test Created 6 years, 6 months 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/guest_view/app_view/app_view_guest.h ('k') | chrome/browser/guest_view/guest_view_base.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/guest_view/app_view/app_view_guest.cc
diff --git a/chrome/browser/guest_view/app_view/app_view_guest.cc b/chrome/browser/guest_view/app_view/app_view_guest.cc
new file mode 100644
index 0000000000000000000000000000000000000000..2eeda8407768c07b5db0b644b466df59bff6fe9d
--- /dev/null
+++ b/chrome/browser/guest_view/app_view/app_view_guest.cc
@@ -0,0 +1,34 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "chrome/browser/guest_view/app_view/app_view_guest.h"
+
+// static
+const char AppViewGuest::Type[] = "appview";
+
+AppViewGuest::AppViewGuest(content::BrowserContext* browser_context,
+ int guest_instance_id)
+ : GuestView<AppViewGuest>(browser_context, guest_instance_id) {
+}
+
+AppViewGuest::~AppViewGuest() {
+}
+
+void AppViewGuest::CreateWebContents(
+ const std::string& embedder_extension_id,
+ int embedder_render_process_id,
+ const base::DictionaryValue& create_params,
+ const WebContentsCreatedCallback& callback) {
+ // TODO(fsamuel): Create a WebContents with the appropriate SiteInstance here.
+ // After the WebContents has been created, call the |callback|.
+ // callback.Run(new_web_contents);
+}
+
+void AppViewGuest::DidAttachToEmbedder() {
+ // This is called after the guest process has been attached to a host
+ // element. This means that the host element knows how to route input
+ // events to the guest, and the guest knows how to get frames to the
+ // embedder.
+ // TODO(fsamuel): Perform the initial navigation here.
+}
« no previous file with comments | « chrome/browser/guest_view/app_view/app_view_guest.h ('k') | chrome/browser/guest_view/guest_view_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698