Pass the referrer policy with the referrer for the save package code path

BUG=124750
TEST=none. That code path doesn't actually use referrers, it just passes empty GURL()s around. But it might one day. And then it supports referrer policies. Hurray.

Review URL: https://chromiumcodereview.appspot.com/10387090

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@136723 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/webkit/glue/dom_operations.h b/webkit/glue/dom_operations.h
index eb99966..bfaa40a 100644
--- a/webkit/glue/dom_operations.h
+++ b/webkit/glue/dom_operations.h
@@ -1,4 +1,4 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
 
@@ -9,6 +9,7 @@
 #include <vector>
 
 #include "googleurl/src/gurl.h"
+#include "third_party/WebKit/Source/Platform/chromium/public/WebReferrerPolicy.h"
 #include "webkit/glue/webkit_glue_export.h"
 
 namespace WebKit {
@@ -30,16 +31,21 @@
   std::vector<GURL>* resources_list;
   // vector which contains corresponding all referral links of sub resource,
   // it matched with links one by one.
-  std::vector<GURL>* referrers_list;
+  std::vector<GURL>* referrer_urls_list;
+  // and the corresponding referrer policies.
+  std::vector<WebKit::WebReferrerPolicy>* referrer_policies_list;
   // vector which contains all savable links of main frame and sub frames.
   std::vector<GURL>* frames_list;
 
   // Constructor.
-  SavableResourcesResult(std::vector<GURL>* resources_list,
-                         std::vector<GURL>* referrers_list,
-                         std::vector<GURL>* frames_list)
+  SavableResourcesResult(
+      std::vector<GURL>* resources_list,
+      std::vector<GURL>* referrer_urls_list,
+      std::vector<WebKit::WebReferrerPolicy>* referrer_policies_list,
+      std::vector<GURL>* frames_list)
       : resources_list(resources_list),
-        referrers_list(referrers_list),
+        referrer_urls_list(referrer_urls_list),
+        referrer_policies_list(referrer_policies_list),
         frames_list(frames_list) { }
 
  private: