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

Unified Diff: apps/app_window_geometry_cache.h

Issue 166573005: Rename apps::ShellWindow to apps::AppWindow (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase, nits (rename) Created 6 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « apps/app_window_contents.cc ('k') | apps/app_window_geometry_cache.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: apps/app_window_geometry_cache.h
diff --git a/apps/shell_window_geometry_cache.h b/apps/app_window_geometry_cache.h
similarity index 85%
rename from apps/shell_window_geometry_cache.h
rename to apps/app_window_geometry_cache.h
index 6af188605ce26e8e2754884cf22813cb60ce6cde..9cf7aebb293975b802509d409c283d3e4103338d 100644
--- a/apps/shell_window_geometry_cache.h
+++ b/apps/app_window_geometry_cache.h
@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef CHROME_BROWSER_EXTENSIONS_SHELL_WINDOW_GEOMETRY_CACHE_H_
-#define CHROME_BROWSER_EXTENSIONS_SHELL_WINDOW_GEOMETRY_CACHE_H_
+#ifndef APPS_APP_WINDOW_GEOMETRY_CACHE_H_
+#define APPS_APP_WINDOW_GEOMETRY_CACHE_H_
#include <map>
#include <set>
@@ -30,20 +30,20 @@ class ExtensionPrefs;
namespace apps {
-// A cache for persisted geometry of shell windows, both to not have to wait
+// A cache for persisted geometry of app windows, both to not have to wait
// for IO when creating a new window, and to not cause IO on every window
// geometry change.
-class ShellWindowGeometryCache
- : public BrowserContextKeyedService,
- public content::NotificationObserver {
+class AppWindowGeometryCache : public BrowserContextKeyedService,
+ public content::NotificationObserver {
public:
class Factory : public BrowserContextKeyedServiceFactory {
public:
- static ShellWindowGeometryCache* GetForContext(
+ static AppWindowGeometryCache* GetForContext(
content::BrowserContext* context,
bool create);
static Factory* GetInstance();
+
private:
friend struct DefaultSingletonTraits<Factory>;
@@ -68,13 +68,12 @@ class ShellWindowGeometryCache
virtual ~Observer() {};
};
- ShellWindowGeometryCache(Profile* profile,
- extensions::ExtensionPrefs* prefs);
+ AppWindowGeometryCache(Profile* profile, extensions::ExtensionPrefs* prefs);
- virtual ~ShellWindowGeometryCache();
+ virtual ~AppWindowGeometryCache();
// Returns the instance for the given browsing context.
- static ShellWindowGeometryCache* Get(content::BrowserContext* context);
+ static AppWindowGeometryCache* Get(content::BrowserContext* context);
// Save the geometry and state associated with |extension_id| and |window_id|.
void SaveGeometry(const std::string& extension_id,
@@ -102,7 +101,7 @@ class ShellWindowGeometryCache
static const size_t kMaxCachedWindows = 100;
protected:
- friend class ShellWindowGeometryCacheTest;
+ friend class AppWindowGeometryCacheTest;
// For tests, this modifies the timeout delay for saving changes from calls
// to SaveGeometry. (Note that even if this is set to 0, you still need to
@@ -142,7 +141,7 @@ class ShellWindowGeometryCache
std::set<std::string> unsynced_extensions_;
// The timer used to save the data
- base::OneShotTimer<ShellWindowGeometryCache> sync_timer_;
+ base::OneShotTimer<AppWindowGeometryCache> sync_timer_;
// The timeout value we'll use for |sync_timer_|.
base::TimeDelta sync_delay_;
@@ -153,4 +152,4 @@ class ShellWindowGeometryCache
} // namespace apps
-#endif // CHROME_BROWSER_EXTENSIONS_SHELL_WINDOW_GEOMETRY_CACHE_H_
+#endif // APPS_APP_WINDOW_GEOMETRY_CACHE_H_
« no previous file with comments | « apps/app_window_contents.cc ('k') | apps/app_window_geometry_cache.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698