Make it clear that WeakPtrFactory is the last data member
[chromium-blink-merge.git] / extensions / renderer / guest_view / guest_view_internal_custom_bindings.h
blob0d7cb753aae1dcdfa37f8dc539988e305b7caa74
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.
5 #ifndef EXTENSIONS_RENDERER_GUEST_VIEW_GUEST_VIEW_INTERNAL_CUSTOM_BINDINGS_H_
6 #define EXTENSIONS_RENDERER_GUEST_VIEW_GUEST_VIEW_INTERNAL_CUSTOM_BINDINGS_H_
8 #include "extensions/renderer/object_backed_native_handler.h"
10 namespace extensions {
11 class Dispatcher;
13 // Implements custom bindings for the guestViewInternal API.
14 class GuestViewInternalCustomBindings : public ObjectBackedNativeHandler {
15 public:
16 explicit GuestViewInternalCustomBindings(ScriptContext* context);
18 private:
19 // AttachGuest attaches a GuestView to a provided container element. Once
20 // attached, the GuestView will participate in layout of the container page
21 // and become visible on screen.
22 // AttachGuest takes three parameters:
23 // |element_instance_id| uniquely identifies a container within the content
24 // module is able to host GuestViews.
25 // |guest_instance_id| uniquely identifies an unattached GuestView.
26 // |attach_params| is typically used to convey the current state of the
27 // container element at the time of attachment. These parameters are passed
28 // down to the GuestView. The GuestView may use these parameters to update the
29 // state of the guest hosted in another process.
30 void AttachGuest(const v8::FunctionCallbackInfo<v8::Value>& args);
33 } // namespace extensions
35 #endif // EXTENSIONS_RENDERER_GUEST_VIEW_GUEST_VIEW_INTERNAL_CUSTOM_BINDINGS_H_