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

Side by Side Diff: chrome/browser/profile_resetter/brandcode_config_fetcher.h

Issue 624173002: replace OVERRIDE and FINAL with override and final in chrome/browser/[j-q]* (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase on master Created 6 years, 2 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
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_PROFILE_RESETTER_BRANDCODE_CONFIG_FETCHER_H_ 5 #ifndef CHROME_BROWSER_PROFILE_RESETTER_BRANDCODE_CONFIG_FETCHER_H_
6 #define CHROME_BROWSER_PROFILE_RESETTER_BRANDCODE_CONFIG_FETCHER_H_ 6 #define CHROME_BROWSER_PROFILE_RESETTER_BRANDCODE_CONFIG_FETCHER_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/callback.h" 9 #include "base/callback.h"
10 #include "base/timer/timer.h" 10 #include "base/timer/timer.h"
(...skipping 17 matching lines...) Expand all
28 28
29 scoped_ptr<BrandcodedDefaultSettings> GetSettings() { 29 scoped_ptr<BrandcodedDefaultSettings> GetSettings() {
30 return default_settings_.Pass(); 30 return default_settings_.Pass();
31 } 31 }
32 32
33 // Sets the new callback. The previous one won't be called. 33 // Sets the new callback. The previous one won't be called.
34 void SetCallback(const FetchCallback& callback); 34 void SetCallback(const FetchCallback& callback);
35 35
36 private: 36 private:
37 // net::URLFetcherDelegate: 37 // net::URLFetcherDelegate:
38 virtual void OnURLFetchComplete(const net::URLFetcher* source) OVERRIDE; 38 virtual void OnURLFetchComplete(const net::URLFetcher* source) override;
39 39
40 void OnDownloadTimeout(); 40 void OnDownloadTimeout();
41 41
42 // Timer that enforces a timeout on the attempt to download the 42 // Timer that enforces a timeout on the attempt to download the
43 // config file. 43 // config file.
44 base::OneShotTimer<BrandcodeConfigFetcher> download_timer_; 44 base::OneShotTimer<BrandcodeConfigFetcher> download_timer_;
45 45
46 // |fetch_callback_| called when fetching succeeded or failed. 46 // |fetch_callback_| called when fetching succeeded or failed.
47 FetchCallback fetch_callback_; 47 FetchCallback fetch_callback_;
48 48
49 // Helper to fetch the online config file. 49 // Helper to fetch the online config file.
50 scoped_ptr<net::URLFetcher> config_fetcher_; 50 scoped_ptr<net::URLFetcher> config_fetcher_;
51 51
52 // Fetched settings. 52 // Fetched settings.
53 scoped_ptr<BrandcodedDefaultSettings> default_settings_; 53 scoped_ptr<BrandcodedDefaultSettings> default_settings_;
54 54
55 DISALLOW_COPY_AND_ASSIGN(BrandcodeConfigFetcher); 55 DISALLOW_COPY_AND_ASSIGN(BrandcodeConfigFetcher);
56 }; 56 };
57 57
58 #endif // CHROME_BROWSER_PROFILE_RESETTER_BRANDCODE_CONFIG_FETCHER_H_ 58 #endif // CHROME_BROWSER_PROFILE_RESETTER_BRANDCODE_CONFIG_FETCHER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698