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

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

Issue 10948019: Remove use of weakptr for RemovableDeviceNotificationsMac (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_CHROME_BROWSER_MAIN_MAC_H_ 5 #ifndef CHROME_BROWSER_CHROME_BROWSER_MAIN_MAC_H_
6 #define CHROME_BROWSER_CHROME_BROWSER_MAIN_MAC_H_ 6 #define CHROME_BROWSER_CHROME_BROWSER_MAIN_MAC_H_
7 7
8 #include "chrome/browser/chrome_browser_main_posix.h" 8 #include "chrome/browser/chrome_browser_main_posix.h"
9 #include "base/memory/ref_counted.h"
9 10
10 namespace chrome { 11 namespace chrome {
11 class RemovableDeviceNotificationsMac; 12 class RemovableDeviceNotificationsMac;
12 } 13 }
13 14
14 class ChromeBrowserMainPartsMac : public ChromeBrowserMainPartsPosix { 15 class ChromeBrowserMainPartsMac : public ChromeBrowserMainPartsPosix {
15 public: 16 public:
16 explicit ChromeBrowserMainPartsMac( 17 explicit ChromeBrowserMainPartsMac(
17 const content::MainFunctionParams& parameters); 18 const content::MainFunctionParams& parameters);
18 virtual ~ChromeBrowserMainPartsMac(); 19 virtual ~ChromeBrowserMainPartsMac();
19 20
20 // BrowserParts overrides. 21 // BrowserParts overrides.
21 virtual void PreEarlyInitialization() OVERRIDE; 22 virtual void PreEarlyInitialization() OVERRIDE;
22 virtual void PreMainMessageLoopStart() OVERRIDE; 23 virtual void PreMainMessageLoopStart() OVERRIDE;
23 virtual void PreProfileInit() OVERRIDE; 24 virtual void PreProfileInit() OVERRIDE;
24 25
25 // Perform platform-specific work that needs to be done after the main event 26 // Perform platform-specific work that needs to be done after the main event
26 // loop has ended. The embedder must be sure to call this. 27 // loop has ended. The embedder must be sure to call this.
27 static void DidEndMainMessageLoop(); 28 static void DidEndMainMessageLoop();
28 29
29 private: 30 private:
30 scoped_ptr<chrome::RemovableDeviceNotificationsMac> 31 scoped_refptr<chrome::RemovableDeviceNotificationsMac>
31 removable_device_notifications_mac_; 32 removable_device_notifications_mac_;
32 33
33 DISALLOW_COPY_AND_ASSIGN(ChromeBrowserMainPartsMac); 34 DISALLOW_COPY_AND_ASSIGN(ChromeBrowserMainPartsMac);
34 }; 35 };
35 36
36 #endif // CHROME_BROWSER_CHROME_BROWSER_MAIN_MAC_H_ 37 #endif // CHROME_BROWSER_CHROME_BROWSER_MAIN_MAC_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698