OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 #ifndef CHROME_BROWSER_TRANSLATE_TRANSLATE_URL_FETCHER_H_ | 5 #ifndef CHROME_BROWSER_TRANSLATE_TRANSLATE_URL_FETCHER_H_ |
6 #define CHROME_BROWSER_TRANSLATE_TRANSLATE_URL_FETCHER_H_ | 6 #define CHROME_BROWSER_TRANSLATE_TRANSLATE_URL_FETCHER_H_ |
7 | 7 |
8 #include "base/callback.h" | 8 #include "base/callback.h" |
9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
10 #include "googleurl/src/gurl.h" | 10 #include "googleurl/src/gurl.h" |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
48 // Internal state. | 48 // Internal state. |
49 enum State state_; | 49 enum State state_; |
50 | 50 |
51 // URLFetcher instance. | 51 // URLFetcher instance. |
52 scoped_ptr<net::URLFetcher> fetcher_; | 52 scoped_ptr<net::URLFetcher> fetcher_; |
53 | 53 |
54 // Callback passed at Request(). It will be invoked when an asynchronous | 54 // Callback passed at Request(). It will be invoked when an asynchronous |
55 // fetch operation is finished. | 55 // fetch operation is finished. |
56 Callback callback_; | 56 Callback callback_; |
57 | 57 |
| 58 // Counts how many times did it try to fetch the language list. |
| 59 int retry_count_; |
| 60 |
58 DISALLOW_COPY_AND_ASSIGN(TranslateURLFetcher); | 61 DISALLOW_COPY_AND_ASSIGN(TranslateURLFetcher); |
59 }; | 62 }; |
60 | 63 |
61 #endif // CHROME_BROWSER_TRANSLATE_TRANSLATE_URL_FETCHER_H_ | 64 #endif // CHROME_BROWSER_TRANSLATE_TRANSLATE_URL_FETCHER_H_ |
OLD | NEW |