| 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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 class SafeBrowsingService; | 49 class SafeBrowsingService; |
| 50 } | 50 } |
| 51 | 51 |
| 52 namespace variations { | 52 namespace variations { |
| 53 class VariationsService; | 53 class VariationsService; |
| 54 } | 54 } |
| 55 | 55 |
| 56 class ApplicationContext; | 56 class ApplicationContext; |
| 57 class CRLSetFetcher; | 57 class CRLSetFetcher; |
| 58 class IOSChromeIOThread; | 58 class IOSChromeIOThread; |
| 59 class PhysicalWebDataSource; |
| 59 class PrefService; | 60 class PrefService; |
| 60 | 61 |
| 61 // Gets the global application context. Cannot return null. | 62 // Gets the global application context. Cannot return null. |
| 62 ApplicationContext* GetApplicationContext(); | 63 ApplicationContext* GetApplicationContext(); |
| 63 | 64 |
| 64 class ApplicationContext { | 65 class ApplicationContext { |
| 65 public: | 66 public: |
| 66 ApplicationContext(); | 67 ApplicationContext(); |
| 67 virtual ~ApplicationContext(); | 68 virtual ~ApplicationContext(); |
| 68 | 69 |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 117 // Gets the GCMDriver. | 118 // Gets the GCMDriver. |
| 118 virtual gcm::GCMDriver* GetGCMDriver() = 0; | 119 virtual gcm::GCMDriver* GetGCMDriver() = 0; |
| 119 | 120 |
| 120 // Gets the ComponentUpdateService. | 121 // Gets the ComponentUpdateService. |
| 121 virtual component_updater::ComponentUpdateService* | 122 virtual component_updater::ComponentUpdateService* |
| 122 GetComponentUpdateService() = 0; | 123 GetComponentUpdateService() = 0; |
| 123 | 124 |
| 124 // Gets the CRLSetFetcher. | 125 // Gets the CRLSetFetcher. |
| 125 virtual CRLSetFetcher* GetCRLSetFetcher() = 0; | 126 virtual CRLSetFetcher* GetCRLSetFetcher() = 0; |
| 126 | 127 |
| 128 // Gets the PhysicalWebDataSource. |
| 129 virtual PhysicalWebDataSource* GetPhysicalWebDataSource() = 0; |
| 130 |
| 127 protected: | 131 protected: |
| 128 // Sets the global ApplicationContext instance. | 132 // Sets the global ApplicationContext instance. |
| 129 static void SetApplicationContext(ApplicationContext* context); | 133 static void SetApplicationContext(ApplicationContext* context); |
| 130 | 134 |
| 131 private: | 135 private: |
| 132 DISALLOW_COPY_AND_ASSIGN(ApplicationContext); | 136 DISALLOW_COPY_AND_ASSIGN(ApplicationContext); |
| 133 }; | 137 }; |
| 134 | 138 |
| 135 #endif // IOS_CHROME_BROWSER_APPLICATION_CONTEXT_H_ | 139 #endif // IOS_CHROME_BROWSER_APPLICATION_CONTEXT_H_ |
| OLD | NEW |