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

Unified Diff: chrome/browser/search/instant_io_context.h

Issue 2856093004: Generalize content::URLDataSource so that it can be used by the network service. (Closed)
Patch Set: review comments Created 3 years, 8 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
Index: chrome/browser/search/instant_io_context.h
diff --git a/chrome/browser/search/instant_io_context.h b/chrome/browser/search/instant_io_context.h
index 1d5eadbbd3dd94326905d1cb04bcadaf5f3ef3ca..bec4b3662d8e4b0122673c4e90ccc7f35506bfd3 100644
--- a/chrome/browser/search/instant_io_context.h
+++ b/chrome/browser/search/instant_io_context.h
@@ -10,14 +10,12 @@
#include "base/macros.h"
#include "base/memory/ref_counted.h"
+class GURL;
+
namespace content {
class ResourceContext;
}
-namespace net {
-class URLRequest;
-}
-
// IO thread data held for Instant. This reflects the data held in
// InstantService for use on the IO thread. Owned by ResourceContext
// as user data.
@@ -48,7 +46,9 @@ class InstantIOContext : public base::RefCountedThreadSafe<InstantIOContext> {
// Determine if this chrome-search: request is coming from an Instant render
// process.
- static bool ShouldServiceRequest(const net::URLRequest* request);
+ static bool ShouldServiceRequest(const GURL& url,
+ content::ResourceContext* resource_context,
+ int render_process_id);
protected:
virtual ~InstantIOContext();

Powered by Google App Engine
This is Rietveld 408576698