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

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

Issue 295203002: Fixed sync regression for ephemeral apps (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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_EXTENSIONS_EXTENSION_UTIL_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_UTIL_H_
6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_UTIL_H_ 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_UTIL_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 62
63 // Returns true if |extension_id| can be launched (possibly only after being 63 // Returns true if |extension_id| can be launched (possibly only after being
64 // enabled). 64 // enabled).
65 bool IsAppLaunchable(const std::string& extension_id, 65 bool IsAppLaunchable(const std::string& extension_id,
66 content::BrowserContext* context); 66 content::BrowserContext* context);
67 67
68 // Returns true if |extension_id| can be launched without being enabled first. 68 // Returns true if |extension_id| can be launched without being enabled first.
69 bool IsAppLaunchableWithoutEnabling(const std::string& extension_id, 69 bool IsAppLaunchableWithoutEnabling(const std::string& extension_id,
70 content::BrowserContext* context); 70 content::BrowserContext* context);
71 71
72 // Returns true if |app| should be synced.
73 bool ShouldSyncApp(const Extension* app, content::BrowserContext* context);
74
72 // Returns true if |extension_id| is idle and it is safe to perform actions such 75 // Returns true if |extension_id| is idle and it is safe to perform actions such
73 // as updating. 76 // as updating.
74 bool IsExtensionIdle(const std::string& extension_id, 77 bool IsExtensionIdle(const std::string& extension_id,
75 content::BrowserContext* context); 78 content::BrowserContext* context);
76 79
77 // Returns the site of the |extension_id|, given the associated |context|. 80 // Returns the site of the |extension_id|, given the associated |context|.
78 // Suitable for use with BrowserContext::GetStoragePartitionForSite(). 81 // Suitable for use with BrowserContext::GetStoragePartitionForSite().
79 GURL GetSiteForExtensionId(const std::string& extension_id, 82 GURL GetSiteForExtensionId(const std::string& extension_id,
80 content::BrowserContext* context); 83 content::BrowserContext* context);
81 84
(...skipping 11 matching lines...) Expand all
93 96
94 // Returns the default extension/app icon (for extensions or apps that don't 97 // Returns the default extension/app icon (for extensions or apps that don't
95 // have one). 98 // have one).
96 const gfx::ImageSkia& GetDefaultExtensionIcon(); 99 const gfx::ImageSkia& GetDefaultExtensionIcon();
97 const gfx::ImageSkia& GetDefaultAppIcon(); 100 const gfx::ImageSkia& GetDefaultAppIcon();
98 101
99 } // namespace util 102 } // namespace util
100 } // namespace extensions 103 } // namespace extensions
101 104
102 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_UTIL_H_ 105 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_UTIL_H_
OLDNEW
« no previous file with comments | « chrome/browser/extensions/extension_sync_service.cc ('k') | chrome/browser/extensions/extension_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698