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

Unified Diff: chrome/browser/extensions/api/idle/idle_api.h

Issue 10750016: Moved c/b/e/*idle* to c/b/e/api/idle/ (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Sync with trunk Created 8 years, 5 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 | « no previous file | chrome/browser/extensions/api/idle/idle_api.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/api/idle/idle_api.h
diff --git a/chrome/browser/extensions/extension_idle_api.h b/chrome/browser/extensions/api/idle/idle_api.h
similarity index 87%
rename from chrome/browser/extensions/extension_idle_api.h
rename to chrome/browser/extensions/api/idle/idle_api.h
index ef10f12567118618f475f77d35afa96af46de403..fd1f0e439fa83d02289d0c2d935dfa84610a4275 100644
--- a/chrome/browser/extensions/extension_idle_api.h
+++ b/chrome/browser/extensions/api/idle/idle_api.h
@@ -2,14 +2,19 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_IDLE_API_H_
-#define CHROME_BROWSER_EXTENSIONS_EXTENSION_IDLE_API_H_
+#ifndef CHROME_BROWSER_EXTENSIONS_API_IDLE_IDLE_API_H_
+#define CHROME_BROWSER_EXTENSIONS_API_IDLE_IDLE_API_H_
+#include "base/gtest_prod_util.h"
#include "chrome/browser/idle.h"
#include "chrome/browser/extensions/extension_function.h"
class Profile;
+FORWARD_DECLARE_TEST(ExtensionIdleApiTest, CacheTest);
+
+namespace extensions {
+
// Event router class for events related to the idle API.
class ExtensionIdleEventRouter {
public:
@@ -41,7 +46,7 @@ class ExtensionIdleCache {
static void UpdateCache(int threshold, IdleState state);
private:
- FRIEND_TEST_ALL_PREFIXES(ExtensionIdleApiTest, CacheTest);
+ FRIEND_TEST_ALL_PREFIXES(::ExtensionIdleApiTest, CacheTest);
struct CacheData {
// Latest moment in history after which we are certain that there was some
@@ -80,4 +85,6 @@ class ExtensionIdleCache {
static CacheData cached_data;
};
-#endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_IDLE_API_H_
+} // namespace extensions
+
+#endif // CHROME_BROWSER_EXTENSIONS_API_IDLE_IDLE_API_H_
« no previous file with comments | « no previous file | chrome/browser/extensions/api/idle/idle_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698