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

Side by Side Diff: ios/chrome/browser/application_context_impl.h

Issue 1380763003: [iOS] Integration of ChromeNetLog and NetExportUI (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Cleanup whitelist Created 5 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 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 IOS_CHROME_BROWSER_APPLICATION_CONTEXT_IMPL_H_ 5 #ifndef IOS_CHROME_BROWSER_APPLICATION_CONTEXT_IMPL_H_
6 #define IOS_CHROME_BROWSER_APPLICATION_CONTEXT_IMPL_H_ 6 #define IOS_CHROME_BROWSER_APPLICATION_CONTEXT_IMPL_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
11 #include "base/memory/scoped_ptr.h"
11 #include "base/threading/thread_checker.h" 12 #include "base/threading/thread_checker.h"
12 #include "ios/chrome/browser/application_context.h" 13 #include "ios/chrome/browser/application_context.h"
13 14
15 namespace base {
16 class CommandLine;
17 }
18
14 class ApplicationContextImpl : public ApplicationContext { 19 class ApplicationContextImpl : public ApplicationContext {
15 public: 20 public:
16 ApplicationContextImpl(); 21 ApplicationContextImpl(const base::CommandLine& command_line);
17 ~ApplicationContextImpl() override; 22 ~ApplicationContextImpl() override;
18 23
19 // Sets the locale used by the application. 24 // Sets the locale used by the application.
20 void SetApplicationLocale(const std::string& locale); 25 void SetApplicationLocale(const std::string& locale);
21 26
22 private: 27 private:
23 // ApplicationContext implementation. 28 // ApplicationContext implementation.
24 PrefService* GetLocalState() override; 29 PrefService* GetLocalState() override;
25 net::URLRequestContextGetter* GetSystemURLRequestContext() override; 30 net::URLRequestContextGetter* GetSystemURLRequestContext() override;
26 const std::string& GetApplicationLocale() override; 31 const std::string& GetApplicationLocale() override;
27 ios::ChromeBrowserStateManager* GetChromeBrowserStateManager() override; 32 ios::ChromeBrowserStateManager* GetChromeBrowserStateManager() override;
28 metrics::MetricsService* GetMetricsService() override; 33 metrics::MetricsService* GetMetricsService() override;
29 policy::BrowserPolicyConnector* GetBrowserPolicyConnector() override; 34 policy::BrowserPolicyConnector* GetBrowserPolicyConnector() override;
30 rappor::RapporService* GetRapporService() override; 35 rappor::RapporService* GetRapporService() override;
36 net_log::ChromeNetLog* GetNetLog() override;
31 37
32 base::ThreadChecker thread_checker_; 38 base::ThreadChecker thread_checker_;
39 scoped_ptr<net_log::ChromeNetLog> net_log_;
33 std::string application_locale_; 40 std::string application_locale_;
34 41
35 DISALLOW_COPY_AND_ASSIGN(ApplicationContextImpl); 42 DISALLOW_COPY_AND_ASSIGN(ApplicationContextImpl);
36 }; 43 };
37 44
38 #endif // IOS_CHROME_BROWSER_APPLICATION_CONTEXT_IMPL_H_ 45 #endif // IOS_CHROME_BROWSER_APPLICATION_CONTEXT_IMPL_H_
OLDNEW
« no previous file with comments | « ios/chrome/browser/application_context.h ('k') | ios/chrome/browser/application_context_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698