| Index: chrome/browser/guest_view/web_view/web_view_guest.h
|
| diff --git a/chrome/browser/guest_view/web_view/web_view_guest.h b/chrome/browser/guest_view/web_view/web_view_guest.h
|
| index 94d13faef74ca10f8a8f21da163b1eb0d8e12640..97a7452f62a6248abb7e7574520c6ff58c77fb1b 100644
|
| --- a/chrome/browser/guest_view/web_view/web_view_guest.h
|
| +++ b/chrome/browser/guest_view/web_view/web_view_guest.h
|
| @@ -63,8 +63,17 @@ class WebViewGuest : public GuestView<WebViewGuest>,
|
| // Returns guestview::kInstanceIDNone if |contents| does not correspond to a
|
| // WebViewGuest.
|
| static int GetViewInstanceId(content::WebContents* contents);
|
| + // Parses partition related parameters from |extra_params|.
|
| + // |storage_partition_id| is the parsed partition ID and |persist_storage|
|
| + // specifies whether or not the partition is in memory.
|
| + static void ParsePartitionParam(const base::DictionaryValue* extra_params,
|
| + std::string* storage_partition_id,
|
| + bool* persist_storage);
|
| static const char Type[];
|
|
|
| + // Request navigating the guest to the provided |src| URL.
|
| + void NavigateGuest(const std::string& src);
|
| +
|
| typedef std::vector<linked_ptr<webview_api::ContextMenuItem> > MenuItemVector;
|
| // Shows the context menu for the guest.
|
| // |items| acts as a filter. This restricts the current context's default
|
| @@ -142,14 +151,13 @@ class WebViewGuest : public GuestView<WebViewGuest>,
|
| content::WebContents* new_contents) OVERRIDE;
|
|
|
| // BrowserPluginGuestDelegate implementation.
|
| - virtual void DidAttach() OVERRIDE;
|
| + virtual void DidAttach(const base::DictionaryValue& extra_params) OVERRIDE;
|
| virtual void SizeChanged(const gfx::Size& old_size, const gfx::Size& new_size)
|
| OVERRIDE;
|
| virtual void RequestPointerLockPermission(
|
| bool user_gesture,
|
| bool last_unlocked_by_target,
|
| const base::Callback<void(bool)>& callback) OVERRIDE;
|
| - virtual void NavigateGuest(const std::string& src) OVERRIDE;
|
|
|
| // NotificationObserver implementation.
|
| virtual void Observe(int type,
|
|
|