| 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 CHROMECAST_BROWSER_CAST_BROWSER_PROCESS_H_ | 5 #ifndef CHROMECAST_BROWSER_CAST_BROWSER_PROCESS_H_ |
| 6 #define CHROMECAST_BROWSER_CAST_BROWSER_PROCESS_H_ | 6 #define CHROMECAST_BROWSER_CAST_BROWSER_PROCESS_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
| 10 | 10 |
| (...skipping 18 matching lines...) Expand all Loading... |
| 29 | 29 |
| 30 class CastBrowserProcess { | 30 class CastBrowserProcess { |
| 31 public: | 31 public: |
| 32 // Gets the global instance of CastBrowserProcess. Does not create lazily and | 32 // Gets the global instance of CastBrowserProcess. Does not create lazily and |
| 33 // assumes the instance already exists. | 33 // assumes the instance already exists. |
| 34 static CastBrowserProcess* GetInstance(); | 34 static CastBrowserProcess* GetInstance(); |
| 35 | 35 |
| 36 CastBrowserProcess(); | 36 CastBrowserProcess(); |
| 37 virtual ~CastBrowserProcess(); | 37 virtual ~CastBrowserProcess(); |
| 38 | 38 |
| 39 void SetBrowserContext(scoped_ptr<CastBrowserContext*> browser_context); | 39 void SetBrowserContext(scoped_ptr<CastBrowserContext> browser_context); |
| 40 void SetCastService(scoped_ptr<CastService> cast_service); | 40 void SetCastService(scoped_ptr<CastService> cast_service); |
| 41 void SetMetricsHelper(scoped_ptr<metrics::CastMetricsHelper> metrics_helper); | 41 void SetMetricsHelper(scoped_ptr<metrics::CastMetricsHelper> metrics_helper); |
| 42 void SetMetricsServiceClient( | 42 void SetMetricsServiceClient( |
| 43 scoped_ptr<metrics::CastMetricsServiceClient> metrics_service_client); | 43 scoped_ptr<metrics::CastMetricsServiceClient> metrics_service_client); |
| 44 void SetPrefService(scoped_ptr<PrefService> pref_service); | 44 void SetPrefService(scoped_ptr<PrefService> pref_service); |
| 45 void SetRemoteDebuggingServer( | 45 void SetRemoteDebuggingServer( |
| 46 scoped_ptr<RemoteDebuggingServer> remote_debugging_server); | 46 scoped_ptr<RemoteDebuggingServer> remote_debugging_server); |
| 47 #if defined(OS_ANDROID) | 47 #if defined(OS_ANDROID) |
| 48 void SetCrashDumpManager( | 48 void SetCrashDumpManager( |
| 49 scoped_ptr<breakpad::CrashDumpManager> crash_dump_manager); | 49 scoped_ptr<breakpad::CrashDumpManager> crash_dump_manager); |
| (...skipping 19 matching lines...) Expand all Loading... |
| 69 // Note: CastService must be destroyed before others. | 69 // Note: CastService must be destroyed before others. |
| 70 scoped_ptr<CastService> cast_service_; | 70 scoped_ptr<CastService> cast_service_; |
| 71 | 71 |
| 72 DISALLOW_COPY_AND_ASSIGN(CastBrowserProcess); | 72 DISALLOW_COPY_AND_ASSIGN(CastBrowserProcess); |
| 73 }; | 73 }; |
| 74 | 74 |
| 75 } // namespace shell | 75 } // namespace shell |
| 76 } // namespace chromecast | 76 } // namespace chromecast |
| 77 | 77 |
| 78 #endif // CHROMECAST_BROWSER_CAST_BROWSER_PROCESS_H_ | 78 #endif // CHROMECAST_BROWSER_CAST_BROWSER_PROCESS_H_ |
| OLD | NEW |