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

Side by Side Diff: components/translate/core/browser/translate_download_manager.h

Issue 378253002: Fix translate namespace (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixing android build errors Created 6 years, 5 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 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_DOWNLOAD_MANAGER_H_ 5 #ifndef COMPONENTS_TRANSLATE_CORE_BROWSER_TRANSLATE_DOWNLOAD_MANAGER_H_
6 #define COMPONENTS_TRANSLATE_CORE_BROWSER_TRANSLATE_DOWNLOAD_MANAGER_H_ 6 #define COMPONENTS_TRANSLATE_CORE_BROWSER_TRANSLATE_DOWNLOAD_MANAGER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
11 #include "base/memory/scoped_ptr.h" 11 #include "base/memory/scoped_ptr.h"
12 #include "components/translate/core/browser/translate_language_list.h" 12 #include "components/translate/core/browser/translate_language_list.h"
13 #include "components/translate/core/browser/translate_script.h" 13 #include "components/translate/core/browser/translate_script.h"
14 #include "net/url_request/url_request_context_getter.h" 14 #include "net/url_request/url_request_context_getter.h"
15 15
16 template <typename T> struct DefaultSingletonTraits; 16 template <typename T> struct DefaultSingletonTraits;
17 17
18 class PrefService; 18 class PrefService;
19 19
20 namespace translate {
21
20 // Manages the downloaded resources for Translate, such as the translate script 22 // Manages the downloaded resources for Translate, such as the translate script
21 // and the language list. 23 // and the language list.
22 class TranslateDownloadManager { 24 class TranslateDownloadManager {
23 public: 25 public:
24 // Returns the singleton instance. 26 // Returns the singleton instance.
25 static TranslateDownloadManager* GetInstance(); 27 static TranslateDownloadManager* GetInstance();
26 28
27 // The request context used to download the resources. 29 // The request context used to download the resources.
28 // Should be set before this class can be used. 30 // Should be set before this class can be used.
29 net::URLRequestContextGetter* request_context() { return request_context_; } 31 net::URLRequestContextGetter* request_context() { return request_context_; }
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 scoped_ptr<TranslateLanguageList> language_list_; 96 scoped_ptr<TranslateLanguageList> language_list_;
95 97
96 // An instance of TranslateScript which manages JavaScript source for 98 // An instance of TranslateScript which manages JavaScript source for
97 // Translate. 99 // Translate.
98 scoped_ptr<TranslateScript> script_; 100 scoped_ptr<TranslateScript> script_;
99 101
100 std::string application_locale_; 102 std::string application_locale_;
101 scoped_refptr<net::URLRequestContextGetter> request_context_; 103 scoped_refptr<net::URLRequestContextGetter> request_context_;
102 }; 104 };
103 105
106 } // namespace translate
107
104 #endif // COMPONENTS_TRANSLATE_CORE_BROWSER_TRANSLATE_DOWNLOAD_MANAGER_H_ 108 #endif // COMPONENTS_TRANSLATE_CORE_BROWSER_TRANSLATE_DOWNLOAD_MANAGER_H_
OLDNEW
« no previous file with comments | « components/translate/core/browser/translate_client.h ('k') | components/translate/core/browser/translate_download_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698