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

Side by Side Diff: chrome/browser/extensions/platform_app_service.h

Issue 11117011: Keep browser process alive while there are platform apps with background pages running. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Update new sync tests Created 8 years 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_EXTENSIONS_PLATFORM_APP_SERVICE_H_
6 #define CHROME_BROWSER_EXTENSIONS_PLATFORM_APP_SERVICE_H_
7
8 #include "chrome/browser/profiles/profile.h"
9 #include "chrome/browser/profiles/profile_keyed_service.h"
10 #include "content/public/browser/notification_observer.h"
11 #include "content/public/browser/notification_registrar.h"
12
13 namespace extensions {
14
15 // The PlatformAppService provides services for platform apps, such as
16 // keeping the browser process alive while they are running.
17 // TODO(benwells): Merge functionality of ShellWindowRegistry into this class.
18 class PlatformAppService : public ProfileKeyedService,
19 public content::NotificationObserver {
20 public:
21 explicit PlatformAppService(Profile* profile);
22 virtual ~PlatformAppService();
23
24 private:
25 // content::NotificationObserver:
26 virtual void Observe(int type,
Andrew T Wilson (Slow) 2012/11/28 10:16:24 nit: this is fine as-is, but typically since we ar
benwells 2012/11/29 06:50:58 Ah. I've been asked to do the opposite before ...
27 const content::NotificationSource& source,
28 const content::NotificationDetails& details) OVERRIDE;
29
30 content::NotificationRegistrar registrar_;
31 };
32
33 } // namespace extensions
34
35 #endif // CHROME_BROWSER_EXTENSIONS_PLATFORM_APP_SERVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698