Upstreaming browser/ui/uikit_ui_util from iOS.
[chromium-blink-merge.git] / ios / chrome / browser / application_context_impl.h
blobbeb889d8cad32a811d0821ef0ed2ad26a6b00a92
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
3 // found in the LICENSE file.
5 #ifndef IOS_CHROME_BROWSER_APPLICATION_CONTEXT_IMPL_H_
6 #define IOS_CHROME_BROWSER_APPLICATION_CONTEXT_IMPL_H_
8 #include <string>
10 #include "base/macros.h"
11 #include "base/threading/thread_checker.h"
12 #include "ios/chrome/browser/application_context.h"
14 class ApplicationContextImpl : public ApplicationContext {
15 public:
16 ApplicationContextImpl();
17 ~ApplicationContextImpl() override;
19 // Sets the locale used by the application.
20 void SetApplicationLocale(const std::string& locale);
22 private:
23 // ApplicationContext implementation.
24 PrefService* GetLocalState() override;
25 net::URLRequestContextGetter* GetSystemURLRequestContext() override;
26 const std::string& GetApplicationLocale() override;
27 ios::ChromeBrowserStateManager* GetChromeBrowserStateManager() override;
28 metrics::MetricsService* GetMetricsService() override;
29 rappor::RapporService* GetRapporService() override;
31 base::ThreadChecker thread_checker_;
32 std::string application_locale_;
34 DISALLOW_COPY_AND_ASSIGN(ApplicationContextImpl);
37 #endif // IOS_CHROME_BROWSER_APPLICATION_CONTEXT_IMPL_H_