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

Unified Diff: components/dns_prefetch/renderer/predictor_queue.h

Issue 644123002: Componentize renderer side of DNS prefetching. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: trybot fixes: 1) hide gyp target from ios 2) UintToString --> SizeTToString Created 6 years, 1 month 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 | « components/dns_prefetch/renderer/DEPS ('k') | components/dns_prefetch/renderer/predictor_queue.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/dns_prefetch/renderer/predictor_queue.h
diff --git a/chrome/renderer/net/predictor_queue.h b/components/dns_prefetch/renderer/predictor_queue.h
similarity index 93%
rename from chrome/renderer/net/predictor_queue.h
rename to components/dns_prefetch/renderer/predictor_queue.h
index dd850b7efb99e594c22540697decdfb9e48d1ed1..cb0c17a1408b4e3a4058d116b628140e2be11a1a 100644
--- a/chrome/renderer/net/predictor_queue.h
+++ b/components/dns_prefetch/renderer/predictor_queue.h
@@ -21,14 +21,16 @@
// rendering, the supplier is the renderer (typically), and the consumer
// is a thread that sends messages to an async DNS resolver.
-#ifndef CHROME_RENDERER_NET_PREDICTOR_QUEUE_H__
-#define CHROME_RENDERER_NET_PREDICTOR_QUEUE_H__
+#ifndef COMPONENTS_DNS_PREFETCH_RENDERER_PREDICTOR_QUEUE_H__
+#define COMPONENTS_DNS_PREFETCH_RENDERER_PREDICTOR_QUEUE_H__
#include <string>
#include "base/basictypes.h"
#include "base/memory/scoped_ptr.h"
+namespace dns_prefetch {
+
class DnsQueue {
public:
// BufferSize is a signed type used for indexing into a buffer.
@@ -84,4 +86,6 @@ class DnsQueue {
DISALLOW_COPY_AND_ASSIGN(DnsQueue);
}; // class DnsQueue
-#endif // CHROME_RENDERER_NET_PREDICTOR_QUEUE_H__
+} // namespace dns_prefetch
+
+#endif // COMPONENTS_DNS_PREFETCH_RENDERER_PREDICTOR_QUEUE_H__
« no previous file with comments | « components/dns_prefetch/renderer/DEPS ('k') | components/dns_prefetch/renderer/predictor_queue.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698