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

Unified Diff: content/renderer/browser_plugin/browser_plugin.h

Issue 10928237: Add support for parsing a 'partition' attribute on the <browser> tag. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Moving to UTF-8 encoded strings and added test for multibyte characters. Created 8 years, 3 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: 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 210774b25f4831e1525a63833aedbed87601209c..cd910e46d0f2baa0839aa7aa96a931fa59f1f98e 100644
--- a/content/renderer/browser_plugin/browser_plugin.h
+++ b/content/renderer/browser_plugin/browser_plugin.h
@@ -32,6 +32,10 @@ class CONTENT_EXPORT BrowserPlugin :
// Set the src attribute value of the BrowserPlugin instance and reset
// the guest_crashed_ flag.
void SetSrcAttribute(const std::string& src);
+ // The partition idetifier string is stored as UTF-8.
Charlie Reis 2012/09/18 22:09:33 nit: identifier
nasko 2012/09/18 22:56:20 Done.
+ std::string GetPartitionAttribute() const;
+ bool SetPartitionAttribute(const std::string& partition_id,
+ std::string& error_message);
Charlie Reis 2012/09/18 22:09:33 Please add a comment about |error_message|. Also,
nasko 2012/09/18 22:56:20 Done.
// Inform the BrowserPlugin to update its backing store with the pixels in
// its damage buffer.
@@ -116,10 +120,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.
@@ -138,6 +141,9 @@ class CONTENT_EXPORT BrowserPlugin :
bool resize_pending_;
long long parent_frame_;
std::string src_;
+ bool has_navigated_;
Charlie Reis 2012/09/18 22:09:33 FYI: This will end up being redundant with navigat
nasko 2012/09/18 22:56:20 Done.
+ 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_;
« no previous file with comments | « no previous file | content/renderer/browser_plugin/browser_plugin.cc » ('j') | content/renderer/browser_plugin/browser_plugin.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698