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

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

Issue 5606002: Move:... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 10 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
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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_IDLE_API_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_IDLE_API_H_
6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_IDLE_API_H_ 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_IDLE_API_H_
7 #pragma once 7 #pragma once
8 8
9 #include "chrome/browser/idle.h" 9 #include "chrome/browser/idle.h"
10 #include "chrome/browser/profile.h" 10 #include "chrome/browser/profiles/profile.h"
11 #include "chrome/browser/extensions/extension_function.h" 11 #include "chrome/browser/extensions/extension_function.h"
12 12
13 // Event router class for events related to the idle API. 13 // Event router class for events related to the idle API.
14 class ExtensionIdleEventRouter { 14 class ExtensionIdleEventRouter {
15 public: 15 public:
16 static void OnIdleStateChange(Profile* profile, 16 static void OnIdleStateChange(Profile* profile,
17 IdleState idleState); 17 IdleState idleState);
18 private: 18 private:
19 DISALLOW_COPY_AND_ASSIGN(ExtensionIdleEventRouter); 19 DISALLOW_COPY_AND_ASSIGN(ExtensionIdleEventRouter);
20 }; 20 };
21 21
22 // Implementation of the chrome.idle.queryState API. 22 // Implementation of the chrome.idle.queryState API.
23 class ExtensionIdleQueryStateFunction : public SyncExtensionFunction { 23 class ExtensionIdleQueryStateFunction : public SyncExtensionFunction {
24 public: 24 public:
25 virtual bool RunImpl(); 25 virtual bool RunImpl();
26 DECLARE_EXTENSION_FUNCTION_NAME("idle.queryState") 26 DECLARE_EXTENSION_FUNCTION_NAME("idle.queryState")
27 }; 27 };
28 28
29 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_IDLE_API_H_ 29 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_IDLE_API_H_
OLDNEW
« no previous file with comments | « chrome/browser/extensions/extension_i18n_api.cc ('k') | chrome/browser/extensions/extension_incognito_apitest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698