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

Side by Side Diff: chromecast/browser/cast_browser_process.h

Issue 1298473004: [Chromecast] Moves persistent UMA client ID handling to common code. (Closed) Base URL: https://chromium.googlesource.com/chromium/src@master
Patch Set: GN updates, initialize pointer to nullptr Created 5 years, 4 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
« no previous file with comments | « chromecast/browser/BUILD.gn ('k') | chromecast/browser/cast_browser_process.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 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/ref_counted.h" 9 #include "base/memory/ref_counted.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 13 matching lines...) Expand all
24 class CastScreen; 24 class CastScreen;
25 class ConnectivityChecker; 25 class ConnectivityChecker;
26 26
27 namespace metrics { 27 namespace metrics {
28 class CastMetricsHelper; 28 class CastMetricsHelper;
29 class CastMetricsServiceClient; 29 class CastMetricsServiceClient;
30 } // namespace metrics 30 } // namespace metrics
31 31
32 namespace shell { 32 namespace shell {
33 class CastBrowserContext; 33 class CastBrowserContext;
34 class CastContentBrowserClient;
34 class CastResourceDispatcherHostDelegate; 35 class CastResourceDispatcherHostDelegate;
35 class RemoteDebuggingServer; 36 class RemoteDebuggingServer;
36 37
37 class CastBrowserProcess { 38 class CastBrowserProcess {
38 public: 39 public:
39 // Gets the global instance of CastBrowserProcess. Does not create lazily and 40 // Gets the global instance of CastBrowserProcess. Does not create lazily and
40 // assumes the instance already exists. 41 // assumes the instance already exists.
41 static CastBrowserProcess* GetInstance(); 42 static CastBrowserProcess* GetInstance();
42 43
43 CastBrowserProcess(); 44 CastBrowserProcess();
44 virtual ~CastBrowserProcess(); 45 virtual ~CastBrowserProcess();
45 46
46 void SetBrowserContext(scoped_ptr<CastBrowserContext> browser_context); 47 void SetBrowserContext(scoped_ptr<CastBrowserContext> browser_context);
48 void SetCastContentBrowserClient(CastContentBrowserClient* browser_client);
47 void SetCastService(scoped_ptr<CastService> cast_service); 49 void SetCastService(scoped_ptr<CastService> cast_service);
48 #if defined(USE_AURA) 50 #if defined(USE_AURA)
49 void SetCastScreen(scoped_ptr<CastScreen> cast_screen); 51 void SetCastScreen(scoped_ptr<CastScreen> cast_screen);
50 #endif // defined(USE_AURA) 52 #endif // defined(USE_AURA)
51 void SetMetricsHelper(scoped_ptr<metrics::CastMetricsHelper> metrics_helper); 53 void SetMetricsHelper(scoped_ptr<metrics::CastMetricsHelper> metrics_helper);
52 void SetMetricsServiceClient( 54 void SetMetricsServiceClient(
53 scoped_ptr<metrics::CastMetricsServiceClient> metrics_service_client); 55 scoped_ptr<metrics::CastMetricsServiceClient> metrics_service_client);
54 void SetPrefService(scoped_ptr<PrefService> pref_service); 56 void SetPrefService(scoped_ptr<PrefService> pref_service);
55 void SetRemoteDebuggingServer( 57 void SetRemoteDebuggingServer(
56 scoped_ptr<RemoteDebuggingServer> remote_debugging_server); 58 scoped_ptr<RemoteDebuggingServer> remote_debugging_server);
57 void SetResourceDispatcherHostDelegate( 59 void SetResourceDispatcherHostDelegate(
58 scoped_ptr<CastResourceDispatcherHostDelegate> delegate); 60 scoped_ptr<CastResourceDispatcherHostDelegate> delegate);
59 #if defined(OS_ANDROID) 61 #if defined(OS_ANDROID)
60 void SetCrashDumpManager( 62 void SetCrashDumpManager(
61 scoped_ptr<breakpad::CrashDumpManager> crash_dump_manager); 63 scoped_ptr<breakpad::CrashDumpManager> crash_dump_manager);
62 #endif // defined(OS_ANDROID) 64 #endif // defined(OS_ANDROID)
63 void SetConnectivityChecker( 65 void SetConnectivityChecker(
64 scoped_refptr<ConnectivityChecker> connectivity_checker); 66 scoped_refptr<ConnectivityChecker> connectivity_checker);
65 void SetNetLog(net::NetLog* net_log); 67 void SetNetLog(net::NetLog* net_log);
66 68
69 CastContentBrowserClient* browser_client() const {
70 return cast_content_browser_client_;
71 }
67 CastBrowserContext* browser_context() const { return browser_context_.get(); } 72 CastBrowserContext* browser_context() const { return browser_context_.get(); }
68 CastService* cast_service() const { return cast_service_.get(); } 73 CastService* cast_service() const { return cast_service_.get(); }
69 #if defined(USE_AURA) 74 #if defined(USE_AURA)
70 CastScreen* cast_screen() const { return cast_screen_.get(); } 75 CastScreen* cast_screen() const { return cast_screen_.get(); }
71 #endif // defined(USE_AURA) 76 #endif // defined(USE_AURA)
72 metrics::CastMetricsServiceClient* metrics_service_client() const { 77 metrics::CastMetricsServiceClient* metrics_service_client() const {
73 return metrics_service_client_.get(); 78 return metrics_service_client_.get();
74 } 79 }
75 PrefService* pref_service() const { return pref_service_.get(); } 80 PrefService* pref_service() const { return pref_service_.get(); }
76 CastResourceDispatcherHostDelegate* resource_dispatcher_host_delegate() 81 CastResourceDispatcherHostDelegate* resource_dispatcher_host_delegate()
(...skipping 16 matching lines...) Expand all
93 scoped_refptr<ConnectivityChecker> connectivity_checker_; 98 scoped_refptr<ConnectivityChecker> connectivity_checker_;
94 scoped_ptr<CastBrowserContext> browser_context_; 99 scoped_ptr<CastBrowserContext> browser_context_;
95 scoped_ptr<metrics::CastMetricsServiceClient> metrics_service_client_; 100 scoped_ptr<metrics::CastMetricsServiceClient> metrics_service_client_;
96 scoped_ptr<CastResourceDispatcherHostDelegate> 101 scoped_ptr<CastResourceDispatcherHostDelegate>
97 resource_dispatcher_host_delegate_; 102 resource_dispatcher_host_delegate_;
98 #if defined(OS_ANDROID) 103 #if defined(OS_ANDROID)
99 scoped_ptr<breakpad::CrashDumpManager> crash_dump_manager_; 104 scoped_ptr<breakpad::CrashDumpManager> crash_dump_manager_;
100 #endif // defined(OS_ANDROID) 105 #endif // defined(OS_ANDROID)
101 scoped_ptr<RemoteDebuggingServer> remote_debugging_server_; 106 scoped_ptr<RemoteDebuggingServer> remote_debugging_server_;
102 107
108 CastContentBrowserClient* cast_content_browser_client_;
103 net::NetLog* net_log_; 109 net::NetLog* net_log_;
104 110
105 // Note: CastService must be destroyed before others. 111 // Note: CastService must be destroyed before others.
106 scoped_ptr<CastService> cast_service_; 112 scoped_ptr<CastService> cast_service_;
107 113
108 DISALLOW_COPY_AND_ASSIGN(CastBrowserProcess); 114 DISALLOW_COPY_AND_ASSIGN(CastBrowserProcess);
109 }; 115 };
110 116
111 } // namespace shell 117 } // namespace shell
112 } // namespace chromecast 118 } // namespace chromecast
113 119
114 #endif // CHROMECAST_BROWSER_CAST_BROWSER_PROCESS_H_ 120 #endif // CHROMECAST_BROWSER_CAST_BROWSER_PROCESS_H_
OLDNEW
« no previous file with comments | « chromecast/browser/BUILD.gn ('k') | chromecast/browser/cast_browser_process.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698