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

Unified Diff: net/url_request/url_fetcher.h

Issue 10383271: Make AssociateWithRenderView() a free function in the 'content' namespace (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: actually rename fn Created 8 years, 7 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 | « content/test/test_url_fetcher_factory.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/url_request/url_fetcher.h
diff --git a/net/url_request/url_fetcher.h b/net/url_request/url_fetcher.h
index b5e7e5537cdd3136905c08d047419f0fedc38a1b..d599984d768eb4e14e1cc4fefb48f7e3fb2e112a 100644
--- a/net/url_request/url_fetcher.h
+++ b/net/url_request/url_fetcher.h
@@ -9,8 +9,10 @@
#include <string>
#include <vector>
+#include "base/callback_forward.h"
#include "base/memory/ref_counted.h"
#include "base/platform_file.h"
+#include "base/supports_user_data.h"
#include "net/base/net_export.h"
class FilePath;
@@ -75,6 +77,10 @@ class NET_EXPORT URLFetcher {
PUT,
};
+ // Used by SetURLRequestUserData. The callback should make a fresh
+ // base::SupportsUserData::Data object every time it's called.
+ typedef base::Callback<base::SupportsUserData::Data*()> CreateDataCallback;
+
virtual ~URLFetcher();
// Sets data only needed by POSTs. All callers making POST requests should
@@ -125,6 +131,16 @@ class NET_EXPORT URLFetcher {
virtual void SetRequestContext(
URLRequestContextGetter* request_context_getter) = 0;
+ // Set the URL that should be consulted for the third-party cookie
+ // blocking policy.
+ virtual void SetFirstPartyForCookies(
+ const GURL& first_party_for_cookies) = 0;
+
+ // Set the key and data callback that is used when setting the user
+ // data on any URLRequest objects this object creates.
+ virtual void SetURLRequestUserData(
+ const void* key, const CreateDataCallback& create_data_callback) = 0;
+
// If |retry| is false, 5xx responses will be propagated to the observer,
// if it is true URLFetcher will automatically re-execute the request,
// after backoff_delay() elapses. URLFetcher has it set to true by default.
« no previous file with comments | « content/test/test_url_fetcher_factory.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698