| OLD | NEW |
| (Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_STREAMS_PRIVATE_STREAMS_PRIVATE_API_H_ |
| 6 #define CHROME_BROWSER_EXTENSIONS_API_STREAMS_PRIVATE_STREAMS_PRIVATE_API_H_ |
| 7 |
| 8 #include <map> |
| 9 #include <string> |
| 10 #include <vector> |
| 11 |
| 12 #include "base/values.h" |
| 13 #include "chrome/browser/extensions/api/profile_keyed_api_factory.h" |
| 14 #include "chrome/browser/extensions/extension_function.h" |
| 15 #include "chrome/browser/profiles/profile_keyed_service.h" |
| 16 #include "chrome/common/extensions/extension.h" |
| 17 #include "content/public/browser/notification_observer.h" |
| 18 #include "content/public/browser/notification_registrar.h" |
| 19 |
| 20 class Profile; |
| 21 |
| 22 namespace extensions { |
| 23 |
| 24 class StreamsPrivateAPI : public ProfileKeyedAPI { |
| 25 public: |
| 26 explicit StreamsPrivateAPI(Profile* profile); |
| 27 virtual ~StreamsPrivateAPI(); |
| 28 |
| 29 // ProfileKeyedAPI implementation. |
| 30 static ProfileKeyedAPIFactory<StreamsPrivateAPI>* GetFactoryInstance(); |
| 31 |
| 32 private: |
| 33 friend class ProfileKeyedAPIFactory<StreamsPrivateAPI>; |
| 34 |
| 35 // ProfileKeyedAPI implementation. |
| 36 static const char* service_name() { |
| 37 return "StreamsPrivateAPI"; |
| 38 } |
| 39 static const bool kServiceIsNULLWhileTesting = true; |
| 40 |
| 41 Profile* const profile_; |
| 42 }; |
| 43 |
| 44 } // namespace extensions |
| 45 |
| 46 #endif // CHROME_BROWSER_EXTENSIONS_API_STREAMS_PRIVATE_STREAMS_PRIVATE_API_H_ |
| OLD | NEW |