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_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" | |
9 #include "base/callback.h" | 8 #include "base/callback.h" |
| 9 #include "base/macros.h" |
10 #include "base/timer/timer.h" | 10 #include "base/timer/timer.h" |
11 #include "net/url_request/url_fetcher_delegate.h" | 11 #include "net/url_request/url_fetcher_delegate.h" |
12 | 12 |
13 class BrandcodedDefaultSettings; | 13 class BrandcodedDefaultSettings; |
14 class GURL; | 14 class GURL; |
15 | 15 |
16 // BrandcodeConfigFetcher fetches and parses the xml containing the brandcoded | 16 // BrandcodeConfigFetcher fetches and parses the xml containing the brandcoded |
17 // default settings. Caller should provide a FetchCallback. | 17 // default settings. Caller should provide a FetchCallback. |
18 class BrandcodeConfigFetcher : public net::URLFetcherDelegate { | 18 class BrandcodeConfigFetcher : public net::URLFetcherDelegate { |
19 public: | 19 public: |
(...skipping 29 matching lines...) Expand all Loading... |
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_ |
OLD | NEW |