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

Side by Side Diff: chrome/browser/apps/ephemeral_app_service.h

Issue 297263003: Optimize promotion of ephemeral apps (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 6 years, 7 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 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_APPS_EPHEMERAL_APP_SERVICE_H_ 5 #ifndef CHROME_BROWSER_APPS_EPHEMERAL_APP_SERVICE_H_
6 #define CHROME_BROWSER_APPS_EPHEMERAL_APP_SERVICE_H_ 6 #define CHROME_BROWSER_APPS_EPHEMERAL_APP_SERVICE_H_
7 7
8 #include <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 10
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 // content::NotificationObserver implementation. 54 // content::NotificationObserver implementation.
55 virtual void Observe(int type, 55 virtual void Observe(int type,
56 const content::NotificationSource& source, 56 const content::NotificationSource& source,
57 const content::NotificationDetails& details) OVERRIDE; 57 const content::NotificationDetails& details) OVERRIDE;
58 58
59 // extensions::ExtensionRegistryObserver. 59 // extensions::ExtensionRegistryObserver.
60 virtual void OnExtensionWillBeInstalled( 60 virtual void OnExtensionWillBeInstalled(
61 content::BrowserContext* browser_context, 61 content::BrowserContext* browser_context,
62 const extensions::Extension* extension, 62 const extensions::Extension* extension,
63 bool is_update, 63 bool is_update,
64 bool from_ephemeral,
64 const std::string& old_name) OVERRIDE; 65 const std::string& old_name) OVERRIDE;
65 virtual void OnExtensionUninstalled( 66 virtual void OnExtensionUninstalled(
66 content::BrowserContext* browser_context, 67 content::BrowserContext* browser_context,
67 const extensions::Extension* extension) OVERRIDE; 68 const extensions::Extension* extension) OVERRIDE;
68 69
69 void Init(); 70 void Init();
70 void InitEphemeralAppCount(); 71 void InitEphemeralAppCount();
71 72
72 // Garbage collect ephemeral apps. 73 // Garbage collect ephemeral apps.
73 void TriggerGarbageCollect(const base::TimeDelta& delay); 74 void TriggerGarbageCollect(const base::TimeDelta& delay);
(...skipping 21 matching lines...) Expand all
95 int ephemeral_app_count_; 96 int ephemeral_app_count_;
96 97
97 friend class EphemeralAppBrowserTest; 98 friend class EphemeralAppBrowserTest;
98 friend class EphemeralAppServiceTest; 99 friend class EphemeralAppServiceTest;
99 friend class EphemeralAppServiceBrowserTest; 100 friend class EphemeralAppServiceBrowserTest;
100 101
101 DISALLOW_COPY_AND_ASSIGN(EphemeralAppService); 102 DISALLOW_COPY_AND_ASSIGN(EphemeralAppService);
102 }; 103 };
103 104
104 #endif // CHROME_BROWSER_APPS_EPHEMERAL_APP_SERVICE_H_ 105 #endif // CHROME_BROWSER_APPS_EPHEMERAL_APP_SERVICE_H_
OLDNEW
« no previous file with comments | « chrome/browser/apps/ephemeral_app_browsertest.cc ('k') | chrome/browser/apps/ephemeral_app_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698