| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 COMPONENTS_TRANSLATE_CORE_BROWSER_TRANSLATE_URL_FETCHER_H_ | 5 #ifndef COMPONENTS_TRANSLATE_CORE_BROWSER_TRANSLATE_URL_FETCHER_H_ |
| 6 #define COMPONENTS_TRANSLATE_CORE_BROWSER_TRANSLATE_URL_FETCHER_H_ | 6 #define COMPONENTS_TRANSLATE_CORE_BROWSER_TRANSLATE_URL_FETCHER_H_ |
| 7 | 7 |
| 8 #include "base/callback.h" | 8 #include "base/callback.h" |
| 9 #include "base/macros.h" |
| 9 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| 10 #include "net/url_request/url_fetcher_delegate.h" | 11 #include "net/url_request/url_fetcher_delegate.h" |
| 11 #include "url/gurl.h" | 12 #include "url/gurl.h" |
| 12 | 13 |
| 13 namespace translate { | 14 namespace translate { |
| 14 | 15 |
| 15 // Downloads raw Translate data such as the Translate script and the language | 16 // Downloads raw Translate data such as the Translate script and the language |
| 16 // list. | 17 // list. |
| 17 class TranslateURLFetcher : public net::URLFetcherDelegate { | 18 class TranslateURLFetcher : public net::URLFetcherDelegate { |
| 18 public: | 19 public: |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 81 | 82 |
| 82 // An extra HTTP request header | 83 // An extra HTTP request header |
| 83 std::string extra_request_header_; | 84 std::string extra_request_header_; |
| 84 | 85 |
| 85 DISALLOW_COPY_AND_ASSIGN(TranslateURLFetcher); | 86 DISALLOW_COPY_AND_ASSIGN(TranslateURLFetcher); |
| 86 }; | 87 }; |
| 87 | 88 |
| 88 } // namespace translate | 89 } // namespace translate |
| 89 | 90 |
| 90 #endif // COMPONENTS_TRANSLATE_CORE_BROWSER_TRANSLATE_URL_FETCHER_H_ | 91 #endif // COMPONENTS_TRANSLATE_CORE_BROWSER_TRANSLATE_URL_FETCHER_H_ |
| OLD | NEW |