| Index: content/renderer/browser_plugin/browser_plugin.h
|
| diff --git a/content/renderer/browser_plugin/browser_plugin.h b/content/renderer/browser_plugin/browser_plugin.h
|
| index 54a03ebffa575db37292adb55e7d11e50d492870..d48b39fd148da018a1c2480da00ca0669d6f7f76 100644
|
| --- a/content/renderer/browser_plugin/browser_plugin.h
|
| +++ b/content/renderer/browser_plugin/browser_plugin.h
|
| @@ -37,6 +37,13 @@ class CONTENT_EXPORT BrowserPlugin :
|
| void SetSrcAttribute(const std::string& src);
|
| // Returns Chrome's process ID for the current guest.
|
| int process_id() const { return process_id_; }
|
| + // The partition identifier string is stored as UTF-8.
|
| + std::string GetPartitionAttribute() const;
|
| + // This method can be successfully called only before the first navigation for
|
| + // this instance of BrowserPlugin. If an error occurs, the |error_message| is
|
| + // set appropriately to indicate the failure reason.
|
| + bool SetPartitionAttribute(const std::string& partition_id,
|
| + std::string& error_message);
|
|
|
| // Inform the BrowserPlugin to update its backing store with the pixels in
|
| // its damage buffer.
|
| @@ -126,10 +133,9 @@ class CONTENT_EXPORT BrowserPlugin :
|
| // Virtual to allow for mocking in tests.
|
| virtual float GetDeviceScaleFactor() const;
|
|
|
| - // Parses the source URL of the browser plugin from the element's attributes
|
| - // and outputs them.
|
| - bool ParseSrcAttribute(const WebKit::WebPluginParams& params,
|
| - std::string* src);
|
| + // Parses the attributes of the browser plugin from the element's attributes
|
| + // and sets them appropriately.
|
| + void ParseAttributes(const WebKit::WebPluginParams& params);
|
|
|
| // Cleanup event listener state to free v8 resources when a BrowserPlugin
|
| // is destroyed.
|
| @@ -151,6 +157,8 @@ class CONTENT_EXPORT BrowserPlugin :
|
| int64 parent_frame_;
|
| std::string src_;
|
| int process_id_;
|
| + std::string storage_partition_id_;
|
| + bool persist_storage_;
|
| typedef std::vector<v8::Persistent<v8::Function> > EventListeners;
|
| typedef std::map<std::string, EventListeners> EventListenerMap;
|
| EventListenerMap event_listener_map_;
|
|
|