Upstream version 7.35.139.0
[platform/framework/web/crosswalk.git] / src / chrome / renderer / resources / extensions / web_view.js
index 34ab004..c85bb67 100644 (file)
@@ -244,6 +244,17 @@ WebViewInternal.prototype.canGoForward = function() {
 /**
  * @private
  */
+WebViewInternal.prototype.clearData = function() {
+  if (!this.instanceId) {
+    return;
+  }
+  var args = $Array.concat([this.instanceId], $Array.slice(arguments));
+  $Function.apply(WebView.clearData, null, args);
+};
+
+/**
+ * @private
+ */
 WebViewInternal.prototype.getProcessId = function() {
   return this.processId;
 };
@@ -1075,6 +1086,11 @@ function registerWebViewElement() {
     return privates(this).internal.canGoForward();
   };
 
+  proto.clearData = function() {
+    var internal = privates(this).internal;
+    $Function.apply(internal.clearData, internal, arguments);
+  };
+
   proto.getProcessId = function() {
     return privates(this).internal.getProcessId();
   };