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

Side by Side Diff: chrome/browser/translate/translate_url_fetcher.h

Issue 15949022: Translate: language list smart updater (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: disable network update on mac infobar tests Created 7 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « chrome/browser/translate/translate_manager_browsertest.cc ('k') | chrome/browser/translate/translate_url_fetcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698