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

Unified Diff: net/url_request/test_url_fetcher_factory.h

Issue 2890293005: Network traffic annotation stored in url_request. (Closed)
Patch Set: Created 3 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 | « net/traffic_annotation/network_traffic_annotation.h ('k') | net/url_request/test_url_fetcher_factory.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/url_request/test_url_fetcher_factory.h
diff --git a/net/url_request/test_url_fetcher_factory.h b/net/url_request/test_url_fetcher_factory.h
index 45f9a18f56a74699027d7be99217a89384af93ba..5d374ca8e8c262969170fa875ffb722087fbd3e1 100644
--- a/net/url_request/test_url_fetcher_factory.h
+++ b/net/url_request/test_url_fetcher_factory.h
@@ -22,6 +22,7 @@
#include "base/threading/non_thread_safe.h"
#include "net/http/http_request_headers.h"
#include "net/http/http_status_code.h"
+#include "net/traffic_annotation/network_traffic_annotation_test_helper.h"
#include "net/url_request/url_fetcher_factory.h"
#include "net/url_request/url_request_status.h"
#include "url/gurl.h"
@@ -255,7 +256,8 @@ class TestURLFetcherFactory : public URLFetcherFactory,
int id,
const GURL& url,
URLFetcher::RequestType request_type,
- URLFetcherDelegate* d) override;
+ URLFetcherDelegate* d,
+ NetworkTrafficAnnotationTag traffic_annotation) override;
TestURLFetcher* GetFetcherByID(int id) const;
void RemoveFetcherFromMap(int id);
void SetDelegateForTests(TestURLFetcherDelegateForTests* delegate_for_tests);
@@ -417,7 +419,8 @@ class FakeURLFetcherFactory : public URLFetcherFactory,
int id,
const GURL& url,
URLFetcher::RequestType request_type,
- URLFetcherDelegate* d) override;
+ URLFetcherDelegate* d,
+ NetworkTrafficAnnotationTag traffic_annotation) override;
// Sets the fake response for a given URL. The |response_data| may be empty.
// The |response_code| may be any HttpStatusCode. For instance, HTTP_OK will
@@ -470,7 +473,8 @@ class URLFetcherImplFactory : public URLFetcherFactory {
int id,
const GURL& url,
URLFetcher::RequestType request_type,
- URLFetcherDelegate* d) override;
+ URLFetcherDelegate* d,
+ NetworkTrafficAnnotationTag traffic_annotation) override;
};
} // namespace net
« no previous file with comments | « net/traffic_annotation/network_traffic_annotation.h ('k') | net/url_request/test_url_fetcher_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698