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

Unified Diff: chrome/browser/net/referrer.h

Issue 2014103002: Remove deprecated ListValue::Append(Value*) overload on Linux. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: ADL fail Created 4 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
« no previous file with comments | « chrome/browser/net/predictor_unittest.cc ('k') | chrome/browser/net/referrer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/net/referrer.h
diff --git a/chrome/browser/net/referrer.h b/chrome/browser/net/referrer.h
index 3d10b39953c417c3c60a0df5b0593820a9413323..626ddc4f39f83a2c6fb4189f9eed5369317ccec7 100644
--- a/chrome/browser/net/referrer.h
+++ b/chrome/browser/net/referrer.h
@@ -15,19 +15,17 @@
#ifndef CHROME_BROWSER_NET_REFERRER_H_
#define CHROME_BROWSER_NET_REFERRER_H_
-#include <map>
-
#include <stdint.h>
+#include <map>
+#include <memory>
+
#include "base/macros.h"
#include "base/time/time.h"
+#include "base/values.h"
#include "net/base/host_port_pair.h"
#include "url/gurl.h"
-namespace base {
-class Value;
-}
-
namespace chrome_browser_net {
//------------------------------------------------------------------------------
@@ -108,7 +106,7 @@ class Referrer : public SubresourceMap {
void SuggestHost(const GURL& url);
// Provide methods for persisting, and restoring contents into a Value class.
- base::Value* Serialize() const;
+ std::unique_ptr<base::ListValue> Serialize() const;
void Deserialize(const base::Value& referrers);
private:
« no previous file with comments | « chrome/browser/net/predictor_unittest.cc ('k') | chrome/browser/net/referrer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698