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

Side by Side Diff: chrome/browser/net/sdch_dictionary_fetcher.h

Issue 9114020: Remove task.h and finish base::Bind() migration. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix typo Created 8 years, 11 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/browser/net/referrer.h ('k') | chrome/browser/oom_priority_manager.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // Support modularity by calling to load a new SDCH filter dictionary. 5 // Support modularity by calling to load a new SDCH filter dictionary.
6 // Note that this sort of calling can't be done in the /net directory, as it has 6 // Note that this sort of calling can't be done in the /net directory, as it has
7 // no concept of the HTTP cache (which is only visible at the browser level). 7 // no concept of the HTTP cache (which is only visible at the browser level).
8 8
9 #ifndef CHROME_BROWSER_NET_SDCH_DICTIONARY_FETCHER_H_ 9 #ifndef CHROME_BROWSER_NET_SDCH_DICTIONARY_FETCHER_H_
10 #define CHROME_BROWSER_NET_SDCH_DICTIONARY_FETCHER_H_ 10 #define CHROME_BROWSER_NET_SDCH_DICTIONARY_FETCHER_H_
11 #pragma once 11 #pragma once
12 12
13 #include <queue> 13 #include <queue>
14 #include <set> 14 #include <set>
15 #include <string> 15 #include <string>
16 16
17 #include "base/memory/scoped_ptr.h" 17 #include "base/memory/scoped_ptr.h"
18 #include "base/task.h" 18 #include "base/memory/weak_ptr.h"
19 #include "base/threading/non_thread_safe.h" 19 #include "base/threading/non_thread_safe.h"
20 #include "content/public/common/url_fetcher_delegate.h" 20 #include "content/public/common/url_fetcher_delegate.h"
21 #include "net/base/sdch_manager.h" 21 #include "net/base/sdch_manager.h"
22 22
23 class SdchDictionaryFetcher 23 class SdchDictionaryFetcher
24 : public content::URLFetcherDelegate, 24 : public content::URLFetcherDelegate,
25 public net::SdchFetcher, 25 public net::SdchFetcher,
26 public base::NonThreadSafe { 26 public base::NonThreadSafe {
27 public: 27 public:
28 SdchDictionaryFetcher(); 28 SdchDictionaryFetcher();
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 // bandwidth trying repeatedly). 79 // bandwidth trying repeatedly).
80 // The following set lists all the dictionary URLs that we've tried to load, 80 // The following set lists all the dictionary URLs that we've tried to load,
81 // so that we won't try to load from an URL more than once. 81 // so that we won't try to load from an URL more than once.
82 // TODO(jar): Try to augment the SDCH proposal to include this restiction. 82 // TODO(jar): Try to augment the SDCH proposal to include this restiction.
83 std::set<GURL> attempted_load_; 83 std::set<GURL> attempted_load_;
84 84
85 DISALLOW_COPY_AND_ASSIGN(SdchDictionaryFetcher); 85 DISALLOW_COPY_AND_ASSIGN(SdchDictionaryFetcher);
86 }; 86 };
87 87
88 #endif // CHROME_BROWSER_NET_SDCH_DICTIONARY_FETCHER_H_ 88 #endif // CHROME_BROWSER_NET_SDCH_DICTIONARY_FETCHER_H_
OLDNEW
« no previous file with comments | « chrome/browser/net/referrer.h ('k') | chrome/browser/oom_priority_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698