| 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 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 23 matching lines...) Expand all Loading... |
| 34 } | 34 } |
| 35 | 35 |
| 36 namespace net_log { | 36 namespace net_log { |
| 37 class ChromeNetLog; | 37 class ChromeNetLog; |
| 38 } | 38 } |
| 39 | 39 |
| 40 namespace network_time { | 40 namespace network_time { |
| 41 class NetworkTimeTracker; | 41 class NetworkTimeTracker; |
| 42 } | 42 } |
| 43 | 43 |
| 44 namespace physical_web { |
| 45 class PhysicalWebDataSource; |
| 46 } |
| 47 |
| 44 namespace rappor { | 48 namespace rappor { |
| 45 class RapporService; | 49 class RapporService; |
| 46 } | 50 } |
| 47 | 51 |
| 48 namespace safe_browsing { | 52 namespace safe_browsing { |
| 49 class SafeBrowsingService; | 53 class SafeBrowsingService; |
| 50 } | 54 } |
| 51 | 55 |
| 52 namespace variations { | 56 namespace variations { |
| 53 class VariationsService; | 57 class VariationsService; |
| 54 } | 58 } |
| 55 | 59 |
| 56 class ApplicationContext; | 60 class ApplicationContext; |
| 57 class CRLSetFetcher; | 61 class CRLSetFetcher; |
| 58 class IOSChromeIOThread; | 62 class IOSChromeIOThread; |
| 59 class PhysicalWebDataSource; | |
| 60 class PrefService; | 63 class PrefService; |
| 61 | 64 |
| 62 // Gets the global application context. Cannot return null. | 65 // Gets the global application context. Cannot return null. |
| 63 ApplicationContext* GetApplicationContext(); | 66 ApplicationContext* GetApplicationContext(); |
| 64 | 67 |
| 65 class ApplicationContext { | 68 class ApplicationContext { |
| 66 public: | 69 public: |
| 67 ApplicationContext(); | 70 ApplicationContext(); |
| 68 virtual ~ApplicationContext(); | 71 virtual ~ApplicationContext(); |
| 69 | 72 |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 119 virtual gcm::GCMDriver* GetGCMDriver() = 0; | 122 virtual gcm::GCMDriver* GetGCMDriver() = 0; |
| 120 | 123 |
| 121 // Gets the ComponentUpdateService. | 124 // Gets the ComponentUpdateService. |
| 122 virtual component_updater::ComponentUpdateService* | 125 virtual component_updater::ComponentUpdateService* |
| 123 GetComponentUpdateService() = 0; | 126 GetComponentUpdateService() = 0; |
| 124 | 127 |
| 125 // Gets the CRLSetFetcher. | 128 // Gets the CRLSetFetcher. |
| 126 virtual CRLSetFetcher* GetCRLSetFetcher() = 0; | 129 virtual CRLSetFetcher* GetCRLSetFetcher() = 0; |
| 127 | 130 |
| 128 // Gets the PhysicalWebDataSource. | 131 // Gets the PhysicalWebDataSource. |
| 129 virtual PhysicalWebDataSource* GetPhysicalWebDataSource() = 0; | 132 virtual physical_web::PhysicalWebDataSource* GetPhysicalWebDataSource() = 0; |
| 130 | 133 |
| 131 protected: | 134 protected: |
| 132 // Sets the global ApplicationContext instance. | 135 // Sets the global ApplicationContext instance. |
| 133 static void SetApplicationContext(ApplicationContext* context); | 136 static void SetApplicationContext(ApplicationContext* context); |
| 134 | 137 |
| 135 private: | 138 private: |
| 136 DISALLOW_COPY_AND_ASSIGN(ApplicationContext); | 139 DISALLOW_COPY_AND_ASSIGN(ApplicationContext); |
| 137 }; | 140 }; |
| 138 | 141 |
| 139 #endif // IOS_CHROME_BROWSER_APPLICATION_CONTEXT_H_ | 142 #endif // IOS_CHROME_BROWSER_APPLICATION_CONTEXT_H_ |
| OLD | NEW |