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

Side by Side Diff: extensions/browser/api/system_info/system_info_api.h

Issue 389633002: Move system.* family of APIs to extensions/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Better comments Created 6 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 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_API_SYSTEM_INFO_SYSTEM_INFO_API_H_ 5 #ifndef EXTENSIONS_BROWSER_API_SYSTEM_INFO_SYSTEM_INFO_API_H_
6 #define CHROME_BROWSER_EXTENSIONS_API_SYSTEM_INFO_SYSTEM_INFO_API_H_ 6 #define EXTENSIONS_BROWSER_API_SYSTEM_INFO_SYSTEM_INFO_API_H_
7 7
8 #include "extensions/browser/browser_context_keyed_api_factory.h" 8 #include "extensions/browser/browser_context_keyed_api_factory.h"
9 #include "extensions/browser/event_router.h" 9 #include "extensions/browser/event_router.h"
10 10
11 namespace extensions { 11 namespace extensions {
12 12
13 // A Profile-scoped object which is registered as an observer of EventRouter 13 // A Profile-scoped object which is registered as an observer of EventRouter
14 // to observe the systemInfo event listener arrival/removal. 14 // to observe the systemInfo event listener arrival/removal.
15 class SystemInfoAPI : public BrowserContextKeyedAPI, 15 class SystemInfoAPI : public BrowserContextKeyedAPI,
16 public EventRouter::Observer { 16 public EventRouter::Observer {
(...skipping 20 matching lines...) Expand all
37 } 37 }
38 static const bool kServiceIsNULLWhileTesting = true; 38 static const bool kServiceIsNULLWhileTesting = true;
39 39
40 content::BrowserContext* browser_context_; 40 content::BrowserContext* browser_context_;
41 41
42 DISALLOW_COPY_AND_ASSIGN(SystemInfoAPI); 42 DISALLOW_COPY_AND_ASSIGN(SystemInfoAPI);
43 }; 43 };
44 44
45 } // namespace extensions 45 } // namespace extensions
46 46
47 #endif // CHROME_BROWSER_EXTENSIONS_API_SYSTEM_INFO_SYSTEM_INFO_API_H_ 47 #endif // EXTENSIONS_BROWSER_API_SYSTEM_INFO_SYSTEM_INFO_API_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698