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

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

Issue 2883563002: Refactor UKM interface for mojo-ification (Closed)
Patch Set: Fix uma_session_stats.cc Created 3 years, 7 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_H_ 5 #ifndef IOS_CHROME_BROWSER_APPLICATION_CONTEXT_H_
6 #define IOS_CHROME_BROWSER_APPLICATION_CONTEXT_H_ 6 #define IOS_CHROME_BROWSER_APPLICATION_CONTEXT_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 43
44 namespace physical_web { 44 namespace physical_web {
45 class PhysicalWebDataSource; 45 class PhysicalWebDataSource;
46 } 46 }
47 47
48 namespace rappor { 48 namespace rappor {
49 class RapporServiceImpl; 49 class RapporServiceImpl;
50 } 50 }
51 51
52 namespace ukm { 52 namespace ukm {
53 class UkmService; 53 class UkmRecorder;
54 } 54 }
55 55
56 namespace variations { 56 namespace variations {
57 class VariationsService; 57 class VariationsService;
58 } 58 }
59 59
60 class ApplicationContext; 60 class ApplicationContext;
61 class CRLSetFetcher; 61 class CRLSetFetcher;
62 class IOSChromeIOThread; 62 class IOSChromeIOThread;
63 class PrefService; 63 class PrefService;
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 virtual ios::ChromeBrowserStateManager* GetChromeBrowserStateManager() = 0; 96 virtual ios::ChromeBrowserStateManager* GetChromeBrowserStateManager() = 0;
97 97
98 // Gets the manager for the various metrics-related service, constructing it 98 // Gets the manager for the various metrics-related service, constructing it
99 // if necessary. 99 // if necessary.
100 virtual metrics_services_manager::MetricsServicesManager* 100 virtual metrics_services_manager::MetricsServicesManager*
101 GetMetricsServicesManager() = 0; 101 GetMetricsServicesManager() = 0;
102 102
103 // Gets the MetricsService used by this application. 103 // Gets the MetricsService used by this application.
104 virtual metrics::MetricsService* GetMetricsService() = 0; 104 virtual metrics::MetricsService* GetMetricsService() = 0;
105 105
106 // Gets the UkmService used by this application. 106 // Gets the UkmRecorder used by this application.
107 virtual ukm::UkmService* GetUkmService() = 0; 107 virtual ukm::UkmRecorder* GetUkmRecorder() = 0;
108 108
109 // Gets the VariationsService used by this application. 109 // Gets the VariationsService used by this application.
110 virtual variations::VariationsService* GetVariationsService() = 0; 110 virtual variations::VariationsService* GetVariationsService() = 0;
111 111
112 // Gets the RapporServiceImpl. May return null. 112 // Gets the RapporServiceImpl. May return null.
113 virtual rappor::RapporServiceImpl* GetRapporServiceImpl() = 0; 113 virtual rappor::RapporServiceImpl* GetRapporServiceImpl() = 0;
114 114
115 // Gets the ChromeNetLog. 115 // Gets the ChromeNetLog.
116 virtual net_log::ChromeNetLog* GetNetLog() = 0; 116 virtual net_log::ChromeNetLog* GetNetLog() = 0;
117 117
(...skipping 18 matching lines...) Expand all
136 136
137 protected: 137 protected:
138 // Sets the global ApplicationContext instance. 138 // Sets the global ApplicationContext instance.
139 static void SetApplicationContext(ApplicationContext* context); 139 static void SetApplicationContext(ApplicationContext* context);
140 140
141 private: 141 private:
142 DISALLOW_COPY_AND_ASSIGN(ApplicationContext); 142 DISALLOW_COPY_AND_ASSIGN(ApplicationContext);
143 }; 143 };
144 144
145 #endif // IOS_CHROME_BROWSER_APPLICATION_CONTEXT_H_ 145 #endif // IOS_CHROME_BROWSER_APPLICATION_CONTEXT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698