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

Side by Side Diff: chrome/browser/browser_process_platform_part_mac.h

Issue 20065004: Make AppShimHostManager a RefCountedThreadSafe. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address comment Created 7 years, 3 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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 CHROME_BROWSER_BROWSER_PROCESS_PLATFORM_PART_MAC_H_ 5 #ifndef CHROME_BROWSER_BROWSER_PROCESS_PLATFORM_PART_MAC_H_
6 #define CHROME_BROWSER_BROWSER_PROCESS_PLATFORM_PART_MAC_H_ 6 #define CHROME_BROWSER_BROWSER_PROCESS_PLATFORM_PART_MAC_H_
7 7
8 #include "apps/app_shim/app_shim_host_manager_mac.h"
8 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
9 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
10 #include "chrome/browser/browser_process_platform_part_base.h" 11 #include "chrome/browser/browser_process_platform_part_base.h"
11 12
12 class AppShimHostManager;
13
14 namespace apps { 13 namespace apps {
15 class ExtensionAppShimHandler; 14 class ExtensionAppShimHandler;
16 } 15 }
17 16
18 class BrowserProcessPlatformPart : public BrowserProcessPlatformPartBase { 17 class BrowserProcessPlatformPart : public BrowserProcessPlatformPartBase {
19 public: 18 public:
20 BrowserProcessPlatformPart(); 19 BrowserProcessPlatformPart();
21 virtual ~BrowserProcessPlatformPart(); 20 virtual ~BrowserProcessPlatformPart();
22 21
23 // Overridden from BrowserProcessPlatformPartBase: 22 // Overridden from BrowserProcessPlatformPartBase:
24 virtual void StartTearDown() OVERRIDE; 23 virtual void StartTearDown() OVERRIDE;
25 virtual void AttemptExit() OVERRIDE; 24 virtual void AttemptExit() OVERRIDE;
26 virtual void PreMainMessageLoopRun() OVERRIDE; 25 virtual void PreMainMessageLoopRun() OVERRIDE;
27 26
28 AppShimHostManager* app_shim_host_manager(); 27 AppShimHostManager* app_shim_host_manager();
29 28
30 private: 29 private:
31 // Hosts the IPC channel factory that App Shims connect to on Mac. 30 // Hosts the IPC channel factory that App Shims connect to on Mac.
32 scoped_ptr<AppShimHostManager> app_shim_host_manager_; 31 scoped_refptr<AppShimHostManager> app_shim_host_manager_;
33 32
34 DISALLOW_COPY_AND_ASSIGN(BrowserProcessPlatformPart); 33 DISALLOW_COPY_AND_ASSIGN(BrowserProcessPlatformPart);
35 }; 34 };
36 35
37 #endif // CHROME_BROWSER_BROWSER_PROCESS_PLATFORM_PART_MAC_H_ 36 #endif // CHROME_BROWSER_BROWSER_PROCESS_PLATFORM_PART_MAC_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698