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

Unified Diff: net/base/sdch_dictionary_fetcher.h

Issue 341553005: Move of SdchDictionaryFetcher to net. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Sync'd to r278311. Created 6 years, 6 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/chrome_browser.gypi ('k') | net/base/sdch_dictionary_fetcher.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/base/sdch_dictionary_fetcher.h
diff --git a/chrome/browser/net/sdch_dictionary_fetcher.h b/net/base/sdch_dictionary_fetcher.h
similarity index 83%
rename from chrome/browser/net/sdch_dictionary_fetcher.h
rename to net/base/sdch_dictionary_fetcher.h
index 968b42e60462ed3f952b65055cb8c10d31318213..8f16dbf5537f7669ff2d89f0db593de57cd576c8 100644
--- a/chrome/browser/net/sdch_dictionary_fetcher.h
+++ b/net/base/sdch_dictionary_fetcher.h
@@ -6,8 +6,8 @@
// Note that this sort of calling can't be done in the /net directory, as it has
// no concept of the HTTP cache (which is only visible at the browser level).
-#ifndef CHROME_BROWSER_NET_SDCH_DICTIONARY_FETCHER_H_
-#define CHROME_BROWSER_NET_SDCH_DICTIONARY_FETCHER_H_
+#ifndef NET_BASE_SDCH_DICTIONARY_FETCHER_H_
+#define NET_BASE_SDCH_DICTIONARY_FETCHER_H_
#include <queue>
#include <set>
@@ -20,20 +20,20 @@
#include "net/url_request/url_fetcher_delegate.h"
namespace net {
+
class URLFetcher;
class URLRequestContextGetter;
-} // namespace net
-class SdchDictionaryFetcher
- : public net::URLFetcherDelegate,
- public net::SdchFetcher,
+class NET_EXPORT SdchDictionaryFetcher
+ : public URLFetcherDelegate,
+ public SdchFetcher,
public base::NonThreadSafe {
public:
// Consumer must guarantee that the SdchManager pointer outlives
// this object. The current implementation guarantees this by
// the SdchManager owning this object.
- SdchDictionaryFetcher(net::SdchManager* manager,
- net::URLRequestContextGetter* context);
+ SdchDictionaryFetcher(SdchManager* manager,
+ URLRequestContextGetter* context);
virtual ~SdchDictionaryFetcher();
// Implementation of SdchFetcher class.
@@ -54,17 +54,17 @@ class SdchDictionaryFetcher
// in the |fetch_queue_|.
void StartFetching();
- // Implementation of net::URLFetcherDelegate. Called after transmission
+ // Implementation of URLFetcherDelegate. Called after transmission
// completes (either successfully or with failure).
- virtual void OnURLFetchComplete(const net::URLFetcher* source) OVERRIDE;
+ virtual void OnURLFetchComplete(const URLFetcher* source) OVERRIDE;
- net::SdchManager* const manager_;
+ SdchManager* const manager_;
// A queue of URLs that are being used to download dictionaries.
std::queue<GURL> fetch_queue_;
// The currently outstanding URL fetch of a dicitonary.
// If this is null, then there is no outstanding request.
- scoped_ptr<net::URLFetcher> current_fetch_;
+ scoped_ptr<URLFetcher> current_fetch_;
// Always spread out the dictionary fetches, so that they don't steal
// bandwidth from the actual page load. Create delayed tasks to spread out
@@ -89,9 +89,11 @@ class SdchDictionaryFetcher
// Store the system_url_request_context_getter to use it when we start
// fetching.
- scoped_refptr<net::URLRequestContextGetter> context_;
+ scoped_refptr<URLRequestContextGetter> context_;
DISALLOW_COPY_AND_ASSIGN(SdchDictionaryFetcher);
};
-#endif // CHROME_BROWSER_NET_SDCH_DICTIONARY_FETCHER_H_
+} // namespace net
+
+#endif // NET_BASE_SDCH_DICTIONARY_FETCHER_H_
« no previous file with comments | « chrome/chrome_browser.gypi ('k') | net/base/sdch_dictionary_fetcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698