OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_WEBSTORE_WEBSTORE_API_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_WEBSTORE_WEBSTORE_API_H_ |
6 #define CHROME_BROWSER_EXTENSIONS_API_WEBSTORE_WEBSTORE_API_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_API_WEBSTORE_WEBSTORE_API_H_ |
7 | 7 |
8 #include <list> | 8 #include <list> |
9 #include <string> | 9 #include <string> |
10 | 10 |
11 #include "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
12 #include "base/scoped_observer.h" | 12 #include "base/scoped_observer.h" |
13 #include "chrome/browser/extensions/install_observer.h" | 13 #include "chrome/browser/extensions/install_observer.h" |
14 #include "chrome/common/extensions/api/webstore/webstore_api_constants.h" | 14 #include "chrome/common/extensions/api/webstore/webstore_api_constants.h" |
15 #include "extensions/browser/browser_context_keyed_api_factory.h" | 15 #include "extensions/browser/browser_context_keyed_api_factory.h" |
16 #include "extensions/browser/event_router.h" | 16 #include "extensions/browser/event_router.h" |
17 | 17 |
18 namespace base { | 18 namespace base { |
19 class ListValue; | 19 class ListValue; |
20 } | 20 } |
21 | 21 |
22 namespace content { | 22 namespace content { |
23 class BrowserContext; | 23 class BrowserContext; |
24 } | 24 } |
25 | 25 |
26 namespace ipc { | 26 namespace IPC { |
27 class Sender; | 27 class Sender; |
28 } | 28 } |
29 | 29 |
30 namespace extensions { | 30 namespace extensions { |
31 class InstallTracker; | 31 class InstallTracker; |
32 | 32 |
33 class WebstoreAPI : public BrowserContextKeyedAPI, | 33 class WebstoreAPI : public BrowserContextKeyedAPI, |
34 public InstallObserver { | 34 public InstallObserver { |
35 public: | 35 public: |
36 explicit WebstoreAPI(content::BrowserContext* browser_context); | 36 explicit WebstoreAPI(content::BrowserContext* browser_context); |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
95 content::BrowserContext* browser_context_; | 95 content::BrowserContext* browser_context_; |
96 scoped_ptr<ScopedObserver<InstallTracker, InstallObserver> > | 96 scoped_ptr<ScopedObserver<InstallTracker, InstallObserver> > |
97 install_observer_; | 97 install_observer_; |
98 | 98 |
99 DISALLOW_COPY_AND_ASSIGN(WebstoreAPI); | 99 DISALLOW_COPY_AND_ASSIGN(WebstoreAPI); |
100 }; | 100 }; |
101 | 101 |
102 } // namespace extensions | 102 } // namespace extensions |
103 | 103 |
104 #endif // CHROME_BROWSER_EXTENSIONS_API_WEBSTORE_WEBSTORE_API_H_ | 104 #endif // CHROME_BROWSER_EXTENSIONS_API_WEBSTORE_WEBSTORE_API_H_ |
OLD | NEW |