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

Unified Diff: chrome/renderer/extensions/guest_view_internal_custom_bindings.h

Issue 444813002: Remove BrowserPlugin's -internal-attach method (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Don't crash on tear down Created 6 years, 4 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: chrome/renderer/extensions/guest_view_internal_custom_bindings.h
diff --git a/chrome/renderer/extensions/guest_view_internal_custom_bindings.h b/chrome/renderer/extensions/guest_view_internal_custom_bindings.h
new file mode 100644
index 0000000000000000000000000000000000000000..b034af14705f9a4f952cbf84e2a1852a2682d5ab
--- /dev/null
+++ b/chrome/renderer/extensions/guest_view_internal_custom_bindings.h
@@ -0,0 +1,35 @@
+// 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.
+
+#ifndef CHROME_RENDERER_EXTENSIONS_GUEST_VIEW_INTERNAL_CUSTOM_BINDINGS_H_
+#define CHROME_RENDERER_EXTENSIONS_GUEST_VIEW_INTERNAL_CUSTOM_BINDINGS_H_
+
+#include "extensions/renderer/object_backed_native_handler.h"
+
+namespace extensions {
+class Dispatcher;
+
+// Implements custom bindings for the guestViewInternal API.
+class GuestViewInternalCustomBindings : public ObjectBackedNativeHandler {
+ public:
+ explicit GuestViewInternalCustomBindings(ScriptContext* context);
+
+ private:
+ // AttachGuest attaches a GuestView to a provided container element. Once
+ // attached, the GuestView will participate in layout of the container page
+ // and become visible on screen.
+ // AttachGuest takes three parameters:
+ // |element_instance_id| uniquely identifies a container within the content
+ // module is able to host GuestViews.
+ // |guest_instance_id| uniquely identifies an unattached GuestView.
+ // |attach_params| is typically used to convey the current state of the
+ // container element at the time of attachment. These parameters are passed
+ // down to the GuestView. The GuestView may use these parameters to update the
+ // state of the guest hosted in another process.
+ void AttachGuest(const v8::FunctionCallbackInfo<v8::Value>& args);
+};
+
+} // namespace extensions
+
+#endif // CHROME_RENDERER_EXTENSIONS_GUEST_VIEW_INTERNAL_CUSTOM_BINDINGS_H_

Powered by Google App Engine
This is Rietveld 408576698