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

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

Issue 130223002: Have browser process shutdown metro viewer on Metro -> Metro restart. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 11 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_AURAWIN_H_ 5 #ifndef CHROME_BROWSER_BROWSER_PROCESS_PLATFORM_PART_AURAWIN_H_
6 #define CHROME_BROWSER_BROWSER_PROCESS_PLATFORM_PART_AURAWIN_H_ 6 #define CHROME_BROWSER_BROWSER_PROCESS_PLATFORM_PART_AURAWIN_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "chrome/browser/browser_process_platform_part_base.h" 10 #include "chrome/browser/browser_process_platform_part_base.h"
11 #include "content/public/browser/notification_observer.h"
12 #include "content/public/browser/notification_registrar.h"
11 13
12 class ChromeMetroViewerProcessHost; 14 class ChromeMetroViewerProcessHost;
13 15
14 class BrowserProcessPlatformPart : public BrowserProcessPlatformPartBase { 16 class BrowserProcessPlatformPart : public BrowserProcessPlatformPartBase,
17 public content::NotificationObserver {
15 public: 18 public:
16 BrowserProcessPlatformPart(); 19 BrowserProcessPlatformPart();
17 virtual ~BrowserProcessPlatformPart(); 20 virtual ~BrowserProcessPlatformPart();
18 21
19 // Invoked when the ASH metro viewer process on Windows 8 exits. 22 // Invoked when the ASH metro viewer process on Windows 8 exits.
20 void OnMetroViewerProcessTerminated(); 23 void OnMetroViewerProcessTerminated();
21 24
22 // Overridden from BrowserProcessPlatformPartBase: 25 // Overridden from BrowserProcessPlatformPartBase:
23 virtual void PlatformSpecificCommandLineProcessing( 26 virtual void PlatformSpecificCommandLineProcessing(
24 const CommandLine& command_line) OVERRIDE; 27 const CommandLine& command_line) OVERRIDE;
25 28
29 // content::NotificationObserver method:
30 virtual void Observe(int type,
31 const content::NotificationSource& source,
32 const content::NotificationDetails& details) OVERRIDE;
33
26 private: 34 private:
27 // Hosts the channel for the Windows 8 metro viewer process which runs in 35 // Hosts the channel for the Windows 8 metro viewer process which runs in
28 // the ASH environment. 36 // the ASH environment.
29 scoped_ptr<ChromeMetroViewerProcessHost> metro_viewer_process_host_; 37 scoped_ptr<ChromeMetroViewerProcessHost> metro_viewer_process_host_;
30 38
39 content::NotificationRegistrar registrar_;
40
31 DISALLOW_COPY_AND_ASSIGN(BrowserProcessPlatformPart); 41 DISALLOW_COPY_AND_ASSIGN(BrowserProcessPlatformPart);
32 }; 42 };
33 43
34 #endif // CHROME_BROWSER_BROWSER_PROCESS_PLATFORM_PART_AURAWIN_H_ 44 #endif // CHROME_BROWSER_BROWSER_PROCESS_PLATFORM_PART_AURAWIN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698