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

Unified Diff: extensions/renderer/guest_view/extensions_iframe_guest_view_container.h

Issue 972313002: Make <webview> use out-of-process iframe architecture. (Closed) Base URL: ssh://saopaulo.wat/mnt/dev/shared/src@testoopif2z-better-chrome
Patch Set: Rebase after swapped out changes major rework with RFP Created 5 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
Index: extensions/renderer/guest_view/extensions_iframe_guest_view_container.h
diff --git a/extensions/renderer/guest_view/extensions_iframe_guest_view_container.h b/extensions/renderer/guest_view/extensions_iframe_guest_view_container.h
new file mode 100644
index 0000000000000000000000000000000000000000..992e37adcfdec525328a98c27a7850876dc0ae9d
--- /dev/null
+++ b/extensions/renderer/guest_view/extensions_iframe_guest_view_container.h
@@ -0,0 +1,34 @@
+// Copyright 2015 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.
+
+#ifndef EXTENSIONS_RENDERER_GUEST_VIEW_EXTENSIONS_IFRAME_GUEST_VIEW_CONTAINER_H_
+#define EXTENSIONS_RENDERER_GUEST_VIEW_EXTENSIONS_IFRAME_GUEST_VIEW_CONTAINER_H_
+
+#include "extensions/renderer/guest_view/extensions_guest_view_container.h"
+
+namespace gfx {
+class Size;
+}
+
+namespace extensions {
+
+class ExtensionsIframeGuestViewContainer : public ExtensionsGuestViewContainer {
+ public:
+ explicit ExtensionsIframeGuestViewContainer(
+ content::RenderFrame* render_frame);
+ ~ExtensionsIframeGuestViewContainer() override;
+
+ // GuestViewContainer overrides.
+ bool OnMessage(const IPC::Message& message) override;
+
+ private:
+ // Weak pointer factory used for calling the element resize callback.
+ base::WeakPtrFactory<ExtensionsIframeGuestViewContainer> weak_ptr_factory_;
+
+ DISALLOW_COPY_AND_ASSIGN(ExtensionsIframeGuestViewContainer);
+};
+
+} // namespace extensions
+
+#endif // EXTENSIONS_RENDERER_GUEST_VIEW_EXTENSIONS_IFRAME_GUEST_VIEW_CONTAINER_H_

Powered by Google App Engine
This is Rietveld 408576698