OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_API_RESOURCE_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_API_RESOURCE_H_ |
6 #define CHROME_BROWSER_EXTENSIONS_API_API_RESOURCE_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_API_API_RESOURCE_H_ |
7 #pragma once | |
8 | 7 |
9 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
10 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
11 | 10 |
12 namespace extensions { | 11 namespace extensions { |
13 | 12 |
14 class APIResourceController; | 13 class APIResourceController; |
15 class APIResourceEventNotifier; | 14 class APIResourceEventNotifier; |
16 | 15 |
17 // An APIResource represents something that an extension API manages, such as a | 16 // An APIResource represents something that an extension API manages, such as a |
(...skipping 18 matching lines...) Expand all Loading... |
36 APIResourceType api_resource_type_; | 35 APIResourceType api_resource_type_; |
37 scoped_refptr<APIResourceEventNotifier> event_notifier_; | 36 scoped_refptr<APIResourceEventNotifier> event_notifier_; |
38 | 37 |
39 friend class APIResourceController; | 38 friend class APIResourceController; |
40 DISALLOW_COPY_AND_ASSIGN(APIResource); | 39 DISALLOW_COPY_AND_ASSIGN(APIResource); |
41 }; | 40 }; |
42 | 41 |
43 } // namespace extensions | 42 } // namespace extensions |
44 | 43 |
45 #endif // CHROME_BROWSER_EXTENSIONS_API_API_RESOURCE_H_ | 44 #endif // CHROME_BROWSER_EXTENSIONS_API_API_RESOURCE_H_ |
OLD | NEW |