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

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

Issue 620673003: Chromecast: adds crash handling for Android build. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: style nits Created 6 years, 2 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 CHROMECAST_SHELL_BROWSER_CAST_BROWSER_PROCESS_H_ 5 #ifndef CHROMECAST_SHELL_BROWSER_CAST_BROWSER_PROCESS_H_
6 #define CHROMECAST_SHELL_BROWSER_CAST_BROWSER_PROCESS_H_ 6 #define CHROMECAST_SHELL_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
29 public: 29 public:
30 // Gets the global instance of CastBrowserProcess. Does not create lazily and 30 // Gets the global instance of CastBrowserProcess. Does not create lazily and
31 // assumes the instance already exists. 31 // assumes the instance already exists.
32 static CastBrowserProcess* GetInstance(); 32 static CastBrowserProcess* GetInstance();
33 33
34 CastBrowserProcess(); 34 CastBrowserProcess();
35 virtual ~CastBrowserProcess(); 35 virtual ~CastBrowserProcess();
36 36
37 void SetBrowserContext(CastBrowserContext* browser_context); 37 void SetBrowserContext(CastBrowserContext* browser_context);
38 void SetCastService(CastService* cast_service); 38 void SetCastService(CastService* cast_service);
39 #if defined(OS_ANDROID)
Lei Zhang 2014/10/06 22:44:25 nit: maybe move this to after the other setters?
gunsch 2014/10/09 00:20:56 Done.
40 void SetCrashDumpManager(breakpad::CrashDumpManager* crash_dump_manager);
41 #endif // defined(OS_ANDROID)
39 void SetRemoteDebuggingServer(RemoteDebuggingServer* remote_debugging_server); 42 void SetRemoteDebuggingServer(RemoteDebuggingServer* remote_debugging_server);
40 void SetMetricsServiceClient( 43 void SetMetricsServiceClient(
41 metrics::CastMetricsServiceClient* metrics_service_client); 44 metrics::CastMetricsServiceClient* metrics_service_client);
42 45
43 CastBrowserContext* browser_context() const { return browser_context_.get(); } 46 CastBrowserContext* browser_context() const { return browser_context_.get(); }
44 CastService* cast_service() const { return cast_service_.get(); } 47 CastService* cast_service() const { return cast_service_.get(); }
45 metrics::CastMetricsServiceClient* metrics_service_client() const { 48 metrics::CastMetricsServiceClient* metrics_service_client() const {
46 return metrics_service_client_.get(); 49 return metrics_service_client_.get();
47 } 50 }
48 51
49 private: 52 private:
50 scoped_ptr<CastBrowserContext> browser_context_; 53 scoped_ptr<CastBrowserContext> browser_context_;
54 #if defined(OS_ANDROID)
55 scoped_ptr<breakpad::CrashDumpManager> crash_dump_manager_;
56 #endif // defined(OS_ANDROID)
51 scoped_ptr<metrics::CastMetricsServiceClient> metrics_service_client_; 57 scoped_ptr<metrics::CastMetricsServiceClient> metrics_service_client_;
52 scoped_ptr<RemoteDebuggingServer> remote_debugging_server_; 58 scoped_ptr<RemoteDebuggingServer> remote_debugging_server_;
53 59
54 // Note: CastService must be destroyed before others. 60 // Note: CastService must be destroyed before others.
55 scoped_ptr<CastService> cast_service_; 61 scoped_ptr<CastService> cast_service_;
56 62
57 DISALLOW_COPY_AND_ASSIGN(CastBrowserProcess); 63 DISALLOW_COPY_AND_ASSIGN(CastBrowserProcess);
58 }; 64 };
59 65
60 } // namespace shell 66 } // namespace shell
61 } // namespace chromecast 67 } // namespace chromecast
62 68
63 #endif // CHROMECAST_SHELL_BROWSER_CAST_BROWSER_PROCESS_H_ 69 #endif // CHROMECAST_SHELL_BROWSER_CAST_BROWSER_PROCESS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698